aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authoraaronbuchwald <[email protected]>2020-12-11 17:36:00 -0500
committerGitHub <[email protected]>2020-12-11 17:36:00 -0500
commit1a2684b86bb613c9c08b8d55915fc1d082e70f88 (patch)
tree3048cc86756d1f64ed5f98cf3002f109e352b967 /plugin
parentf79cb6c5079f5e3edf7a4b15657203c197fef7d2 (diff)
parent96653ef8838a85a0dcf85484a54b77fa4c53a396 (diff)
Merge pull request #68 from ava-labs/block-height
Add Height to block interface
Diffstat (limited to 'plugin')
-rw-r--r--plugin/evm/block.go5
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