aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/block.go
diff options
context:
space:
mode:
authorStephenButtolph <[email protected]>2020-08-12 22:50:17 -0400
committerStephenButtolph <[email protected]>2020-08-12 22:50:17 -0400
commit4945ae1427399d9a0f6b3561306f50f360011613 (patch)
tree77ed83421aa04bc3e423067cfd063f047c586068 /plugin/evm/block.go
parent4beccc4f5ddb8a7f7366d036156ec06d7378fa6d (diff)
read blocks with cachingv0.2.8-rc.3
Diffstat (limited to 'plugin/evm/block.go')
-rw-r--r--plugin/evm/block.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go
index eaa78a5..2912d2c 100644
--- a/plugin/evm/block.go
+++ b/plugin/evm/block.go
@@ -50,11 +50,7 @@ func (b *Block) Status() choices.Status {
// Parent implements the snowman.Block interface
func (b *Block) Parent() snowman.Block {
parentID := ids.NewID(b.ethBlock.ParentHash())
- block := &Block{
- id: parentID,
- ethBlock: b.vm.getCachedBlock(parentID),
- vm: b.vm,
- }
+ block := b.vm.getBlock(parentID)
b.vm.ctx.Log.Verbo("Parent(%s) has status: %s", block.ID(), block.Status())
return block
}