Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port closed - use normal files for W2W communication #17

Closed
jaros1 opened this issue Oct 25, 2017 · 2 comments
Closed

port closed - use normal files for W2W communication #17

jaros1 opened this issue Oct 25, 2017 · 2 comments

Comments

@jaros1
Copy link
Owner

jaros1 commented Oct 25, 2017

Now using optional files in MoneyNetworkAPI for wallet to wallet communication.
Other wallet fileGet operation will hang forever in case of closed ZeroNet port.
Use normal files for wallet to wallet communication in case of closed port.
Must be very small and very few files (normal files are replicated to all ZeroNet clients).

@jaros1
Copy link
Owner Author

jaros1 commented Oct 30, 2017

Simple solution.
Client X cannot read optional file b. X adds filename to missing files array in wallet.json + publish.
Client Y with file b sees request from X, deletes optional files and writes b as a normal file + publish.
Client X reads normal while b, removes b from missing files + publish
Client Y with file b sees that file b has been removed from missing files and deletes normal file b.
Rest of communication for this wallet to wallet session should be done with normal files instead of optional files.

Add a filetype to money transaction filenames:
{session filename}.{timestamp} = normal file (always distributed)
{session filename}-i.{timestamp} = internal optional files (no distribution help needed)
{session filename}-e.{timestamp} = external optional files (distribution help would be nice)
{session filename}-o.{timestamp} = offline transaction (external optional files and distribution help would be nice)

jaros1 pushed a commit to jaros1/Money-Network that referenced this issue Nov 3, 2017
#259
Too many problems with special file with timestamps for offline transactions.
Changed filenames for money transactions.
{session filename}.{timestamp} = normal file (always distributed)
{session filename}-i.{timestamp} = internal optional files (no distribution help needed)
{session filename}-e.{timestamp} = external optional files (distribution help would be nice)
{session filename}-o.{timestamp} = offline transaction (external optional files and distribution help would be nice)
Many changes to MoneyNetworkAPI
@jaros1
Copy link
Owner Author

jaros1 commented Nov 23, 2017

  • Could be a send_message option. change "-o" offline to "." in case of closed port.
  • could be a check box in W2 UI. Detected closed zeroNet port. Use normal files for money transactions. Changed max_size for normal files from 300000 to 50000 (about 30 money transaction files).
  • could be special wallet data hubs for people with zeronet port closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant