aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/block.go
diff options
context:
space:
mode:
authorStephenButtolph <stephen@avalabs.org>2020-05-30 14:31:33 -0400
committerStephenButtolph <stephen@avalabs.org>2020-05-30 14:31:33 -0400
commit803878756eafc3f3c86198ad9f5a8893a63cf7df (patch)
treeabd1dfdfa46bfbba49eec29756134b56bf9ebbb6 /plugin/evm/block.go
parentaddb553425e60548a60d45c682d18fc4e78e55de (diff)
Added error handling for the denali releasev0.2.0
Diffstat (limited to 'plugin/evm/block.go')
-rw-r--r--plugin/evm/block.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go
index ec47490..eaa78a5 100644
--- a/plugin/evm/block.go
+++ b/plugin/evm/block.go
@@ -25,15 +25,17 @@ type Block struct {
func (b *Block) ID() ids.ID { return b.id }
// Accept implements the snowman.Block interface
-func (b *Block) Accept() {
+func (b *Block) Accept() error {
b.vm.ctx.Log.Verbo("Block %s is accepted", b.ID())
b.vm.updateStatus(b.ID(), choices.Accepted)
+ return nil
}
// Reject implements the snowman.Block interface
-func (b *Block) Reject() {
+func (b *Block) Reject() error {
b.vm.ctx.Log.Verbo("Block %s is rejected", b.ID())
b.vm.updateStatus(b.ID(), choices.Rejected)
+ return nil
}
// Status implements the snowman.Block interface