Skip to content

Commit

Permalink
blockchain: Reject old block vers for pow vote.
Browse files Browse the repository at this point in the history
This updates the latest block version for the upcoming hard fork vote
for DCP0011 and DCP0012 in order to reject old block versions once a
super majority of the network has upgraded.
  • Loading branch information
davecgh committed Jun 8, 2023
1 parent 119fb31 commit 80e1bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/blockchain/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ func isDCP0005Violation(network wire.CurrencyNet, header *wire.BlockHeader, bloc
func (b *BlockChain) isOldBlockVersionByMajority(header *wire.BlockHeader, blockHash *chainhash.Hash, prevNode *blockNode) bool {
// Note that the latest block version for all networks other than the main
// network is one higher.
latestBlockVersion := int32(9)
latestBlockVersion := int32(10)
if b.chainParams.Net != wire.MainNet {
latestBlockVersion++
}
Expand Down

0 comments on commit 80e1bb1

Please sign in to comment.