diff options
author | aaronbuchwald <[email protected]> | 2020-12-17 17:13:04 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-17 17:13:04 -0500 |
commit | 374b401198759f23bac435a78c5b1fa2c516aad9 (patch) | |
tree | f3d33fa99fc7d46dd2836bef500d8a1cf445e094 /plugin/evm/block.go | |
parent | c765f9b5b38d3e4b5f4261d3c4ab776dd9c3c97a (diff) | |
parent | 72f10d245f5514de4f586ca97784d599d00cc8f3 (diff) |
Dev
Diffstat (limited to 'plugin/evm/block.go')
-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 |