Skip to content

Move ProtocolVersion to the Consensus class#126

Merged
dangershony merged 6 commits intomasterfrom
feature/remove-pv1
May 20, 2020
Merged

Move ProtocolVersion to the Consensus class#126
dangershony merged 6 commits intomasterfrom
feature/remove-pv1

Conversation

@dangershony
Copy link
Copy Markdown
Member

The idea behind this PR is to make ProtocolVersion available per chain (right now versions of different chains are mixed together)
Also ProtocolVersion was defined in the Settings class which is incorrect as its a property of consensus the protocol.

Copy link
Copy Markdown
Member

@sondreb sondreb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall very good change to get into the codebase. Did a quick look through the changes, not a deep review. Running all tests locally now and have done an initial verification that the City Node can connect to network.

Comment thread src/Blockcore/Configuration/NodeSettings.cs
@@ -54,7 +54,7 @@ public interface INetworkPeer : IDisposable
/// <summary>
/// The negotiated protocol version (minimum of supported version between <see cref="MyVersion"/> and the <see cref="PeerVersion"/>).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"See ref" in documentation is now wrong.

Comment thread src/Blockcore/P2P/Protocol/Message.cs
Comment thread src/External/NBitcoin/ConsensusFactory.cs
}

#endregion
#endregion ICoinSelector Members
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regions are evil, always removed them.

Comment thread src/Networks/Bitcoin/Blockcore.Networks.Bitcoin/BitcoinMain.cs
@dangershony dangershony merged commit 11eeb36 into master May 20, 2020
@dangershony dangershony deleted the feature/remove-pv1 branch May 20, 2020 00:33
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.

2 participants