Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Future fork conditions #43

Closed
wants to merge 9 commits into from
Closed

Future fork conditions #43

wants to merge 9 commits into from

Conversation

mammix2
Copy link
Contributor

@mammix2 mammix2 commented Jun 14, 2018

Coded a chain fork condition based on nTime, which moves the minimum protocol check to a new constant. Suggest once the fork in complete in the future we remove this code and revert back to using the standard MIN_PEER_PROTO_VERSION checks

Also bear in mind this only work when peers connect to the user wallet. If there are already the max amount of peers connected then the wallet wont be listening for any new ones so the check wont be invoked.
Once the fork nTime has passed i sugest telling all users to restart their wallets, Then all new connections will be checked for the new minimum protocol version

@mammix2 mammix2 requested a review from shbli June 14, 2018 11:29
@wisp3r
Copy link

wisp3r commented Jun 17, 2018

You could consider checking the protocol version when a ping message (or even when any message) comes in, and dropping the peer if it doesn't meet the new minimum. That would be equivalent to getting users to restart their wallets, without them actually having to.

@aliascash
Copy link
Collaborator

To be reviewed and a new method to be tested

@aliascash aliascash closed this Jun 20, 2018
@mammix2
Copy link
Contributor Author

mammix2 commented Jun 20, 2018

as discussed we'll work on a different approach

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

Successfully merging this pull request may close these issues.

None yet

3 participants