From 96653ef8838a85a0dcf85484a54b77fa4c53a396 Mon Sep 17 00:00:00 2001 From: Aaron Buchwald Date: Fri, 11 Dec 2020 17:31:05 -0500 Subject: Add Height to block interface --- plugin/evm/block.go | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3