Skip to content

Commit

Permalink
Makes the fork activation to happen exactly on the defined block number.
Browse files Browse the repository at this point in the history
  • Loading branch information
web3coach committed Sep 9, 2021
1 parent 9af5c6c commit 9595411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (s *State) ChangeMiningDifficulty(newDifficulty uint) {
}

func (s *State) IsTIP1Fork() bool {
return s.LatestBlock().Header.Number >= s.forkTIP1
return s.NextBlockNumber() >= s.forkTIP1
}

func (s *State) Copy() State {
Expand Down

0 comments on commit 9595411

Please sign in to comment.