bump version (0.7.2), KOMODO_VERSION (0.7.2) and copyright year#543
bump version (0.7.2), KOMODO_VERSION (0.7.2) and copyright year#543ca333 merged 4 commits intoGLEECBTC:devfrom
Conversation
|
Remember, I am attending my first Komodo hardfork, so excuse my naivete. Should the protocol requirement be implemented at installation, or at hardfork time? Taking a brief look at the code, changing the I realize that moving it to after the hardfork height/time means already connected but upraded/non-upgraded nodes could start rejecting blocks, forking, etc. I am just foreseeing doing it at installation time would cause a mad rush for every node to upgrade because everyone has to do it at the same time. Am I mistaken? |
|
John is absolutely right. The minimum must be 170010. |
Why we need to allow nodes with 170010 proto and only S5 pubkeys exists in mainnet? What's the purpose of this? They anyway will not able to accept blocks produced by S6 notaries. So, they will be useless anyway. Non-upgraded nodes (without S6 pubkeys) are useless for network, so, it would be reasonable to cut them off (reject at connection establishment stage) at the protocol level. |
The problem is not the protocol version, but the timing. It would be hard to have everyone upgrade at once. IMO we should enforce the new protocol version, but only after the HF height/time. This is a pain to code, but allows a "buffer" time for nodes to upgrade before being kicked off the network. Think of it this way: You are the first to upgrade. Who will be your peers? No one. Update: ZCash has a mechanism that we could append to. See NetworkUpgrade and NetworkUpgradeInfo structs. Untested, but an example of how it could work (requires the s6 hardfork height in PR #540): DeckerSU/komodo@patch-s6-version...jmjatlanta:jmj_hf22 Q: how would this work for hardfork-date-based asset chains? Researching... |
|
@jmjatlanta Ok ... let's imagine we don't enforce min. proto version upgrade. In other words we allow non-updated nodes exist in mainnet and connect to other nodes. What's the benefit of this? First block after
64 notaries at least, and other nodes which already will be exist in DNS seeders, bcz they will update before |
|
@jmjatlanta @Alrighttt 98f7b87 - added, indeed to make "transition period" (time from p.s. My delusion was in i somehow assumed that nodes will start to upgrade only closer to HF date or after. Of course, with restriction to connect only with |
|
The reversion of As for the change in As a side note, Bitcoin de-duped the client version number stuff. See https://github.com/bitcoin/bitcoin/pull/10155/files |
src/version.h
Outdated
| //! disconnect from peers older than this proto version | ||
| static const int MIN_PEER_PROTO_VERSION = 170009; | ||
| static const int STAKEDMIN_PEER_PROTO_VERSION = 170008; | ||
| static const int MIN_PEER_PROTO_VERSION = 170011; |
There was a problem hiding this comment.
| static const int MIN_PEER_PROTO_VERSION = 170011; | |
| static const int MIN_PEER_PROTO_VERSION = 170010; |
src/version.h
Outdated
| static const int MIN_PEER_PROTO_VERSION = 170009; | ||
| static const int STAKEDMIN_PEER_PROTO_VERSION = 170008; | ||
| static const int MIN_PEER_PROTO_VERSION = 170011; | ||
| static const int STAKEDMIN_PEER_PROTO_VERSION = 170011; |
There was a problem hiding this comment.
| static const int STAKEDMIN_PEER_PROTO_VERSION = 170011; | |
| static const int STAKEDMIN_PEER_PROTO_VERSION = 170010; |
|
For activating the required min peer version at the hardfork moment I vote for the existing params.vUpgrades[] framework which already has the nProtocolVersion field and there is already code to disconnect not upgraded nodes. It suits only for the KMD chain though |
- bitcoin/bitcoin#10155 - GLEECBTC/komodo-daemon#543 (comment) thanks to @jmjatlanta for mention de-dupe commit in bitcoin upstream.
Release v1.1.1-1
No description provided.