jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

ADMIN permission? #288

Closed jaros1 closed 6 years ago

jaros1 commented 6 years ago

Problem with hanging fileGet operations for optional files. Wallet sites (W2) should use optional files when ZeroNet port is open and should user normal files when ZeroNet port is closed for money transactions. But port check is done with serverInfo (requires no permissions) and ip_external info maybe old (enabling/disabling vpn). Should re-check port after running info problems with hanging fileGet operations. Other users on ZeroNet are waiting for one of my optional files. Must do a serverPortcheck to refresh ip_external info. Required ADMIN in data/sites.json. And fallback to normal file communication when ZeroNet port is closed.

ADMIN permission opens for all ADMIN API operations. Better to let MoneyNetwork ask for ADMIN permission than MoneyNetwork wallet sites. But best not to used ADMIN permission.

Raised a question in ZeroNet: https://github.com/HelloZeroNet/ZeroNet/issues/1196

jaros1 commented 6 years ago

Dropped. Have added waiting_for_file message as workaround in MoneyNetworkAPI