Skip to content

Commit

Permalink
Use latest accepted block in testing APIs (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamgoyal42 committed Mar 8, 2024
1 parent 772ea72 commit 62c931a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/evm/orderbook/testing_apis.go
Expand Up @@ -76,5 +76,5 @@ func (api *TestingAPI) GetSnapshot(ctx context.Context) (Snapshot, error) {
}

func getCurrentBlockNumber(backend *eth.EthAPIBackend) uint64 {
return backend.CurrentHeader().Number.Uint64()
return backend.LastAcceptedBlock().NumberU64()
}

0 comments on commit 62c931a

Please sign in to comment.