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

server: Force PoW upgrade to v10. #3137

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ func (s *server) handleBlockchainNotification(notification *blockchain.Notificat
// namely blocks 101, 102, 103, 104, 105, and 106.
//
// Additionally, a notification will NOT be sent for mainnet once block
// height 635775 has been reached and the block version is prior to 9.
// height 777240 has been reached and the block version is prior to 10.
// The intent is for future code to perform this type of check more
// dynamically so it happens for all upgrades after a certain time frame
// is provided for upgrades to occur, but it is hard coded for now in
Expand All @@ -2587,7 +2587,7 @@ func (s *server) handleBlockchainNotification(notification *blockchain.Notificat
blockHeight := int64(blockHeader.Height)
reorgDepth := bestHeight - (blockHeight - band.ForkLen)
isOldMainnetBlock := s.chainParams.Net == wire.MainNet &&
blockHeight >= 635775 && blockHeader.Version < 9
blockHeight >= 777240 && blockHeader.Version < 10
if s.rpcServer != nil &&
blockHeight >= s.chainParams.StakeValidationHeight-1 &&
reorgDepth < maxReorgDepthNotify &&
Expand Down