diff options
author | Aaron Buchwald <[email protected]> | 2020-12-11 17:31:05 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-12-11 17:31:05 -0500 |
commit | 96653ef8838a85a0dcf85484a54b77fa4c53a396 (patch) | |
tree | 3048cc86756d1f64ed5f98cf3002f109e352b967 /plugin/evm | |
parent | f79cb6c5079f5e3edf7a4b15657203c197fef7d2 (diff) |
Add Height to block interface
Diffstat (limited to 'plugin/evm')
-rw-r--r-- | plugin/evm/block.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go index 7c23c17..5a0d377 100644 --- a/plugin/evm/block.go +++ b/plugin/evm/block.go @@ -75,6 +75,11 @@ func (b *Block) Parent() snowman.Block { return &missing.Block{BlkID: parentID} } +// Height implements the snowman.Block interface +func (b *Block) Height() uint64 { + return b.ethBlock.Number().Uint64() +} + // Verify implements the snowman.Block interface func (b *Block) Verify() error { // Only enforce a minimum fee when bootstrapping has finished |