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

Add transaction exchange #111

Merged
merged 9 commits into from
Feb 25, 2018
Merged

Add transaction exchange #111

merged 9 commits into from
Feb 25, 2018

Conversation

awfm9
Copy link
Owner

@awfm9 awfm9 commented Feb 25, 2018

This PR allows peers to exchange transactions in the memory pool efficiently.

It's currently triggered once with each peer upon connection, because all other transactions should in theory be propagated properly. It makes sense to think about implementing some regular resynchronization with each peer, as the mechanism really doesn't need much.

It's described in #107, which can be used for a real specification.

In order to avoid filling the queue for outgoing messages on each peer by sending each transaction one by one on request, we should implement batch as explained in #110.

However, a more complete fix is to implement a proper separation between being informed of unknown transactions by a peer and requesting them. The IDs should basically go into a pending list and we should download batch after batch from peers where they are available, as described in #105.

@awfm9 awfm9 merged commit f7a647b into awfm9:master Feb 25, 2018
@awfm9 awfm9 deleted the add-transaction-exchange branch March 14, 2018 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant