Skip to content

Commit

Permalink
Fork20231016: remove check ChainID == vocdoni-stage-8, just check Cur…
Browse files Browse the repository at this point in the history
…rentHeight
  • Loading branch information
altergui committed Oct 17, 2023
1 parent b324e0c commit 1636dd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vochain/transaction/election_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,8 @@ func (t *TransactionHandler) txElectionCostFromProcessPreFork20231016(process *m
func (t *TransactionHandler) isBeforeFork20231016() bool {
// when vocdoni-stage-8 was ~200000 blocks old, we found a bug in txElectionCostFromProcess
// that needed a soft-fork. we agreed on fixing it (changing the behavior) at block 212000
return t.state.ChainID() == "vocdoni-stage-8" && t.state.CurrentHeight() < Fork20231016Block
//
// this should also check for t.state.ChainID() == "vocdoni-stage-8"
// but that doesn't work due to https://github.com/vocdoni/vocdoni-node/issues/1149
return t.state.CurrentHeight() < Fork20231016Block
}

0 comments on commit 1636dd3

Please sign in to comment.