Skip to content

Commit

Permalink
Remove Banff check from mempool verifier (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrubabasu committed Nov 23, 2023
1 parent 62df19c commit 6ad31d6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions vms/platformvm/txs/executor/tx_mempool_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ func (v *MempoolTxVerifier) standardTx(tx txs.UnsignedTx) error {
return err
}

// Upon Banff activation, txs are not verified against current chain time
// but against the block timestamp. [baseTime] calculates
// the right timestamp to be used to mempool tx verification
func (v *MempoolTxVerifier) standardBaseState() (state.Diff, error) {
state, err := state.NewDiff(v.ParentID, v.StateVersions)
if err != nil {
Expand All @@ -116,14 +113,6 @@ func (v *MempoolTxVerifier) standardBaseState() (state.Diff, error) {
return nil, err
}

if !v.Backend.Config.IsBanffActivated(nextBlkTime) {
// next tx would be included into an Apricot block
// so we verify it against current chain state
return state, nil
}

// next tx would be included into a Banff block
// so we verify it against duly updated chain state
changes, err := AdvanceTimeTo(v.Backend, state, nextBlkTime)
if err != nil {
return nil, err
Expand Down

0 comments on commit 6ad31d6

Please sign in to comment.