From 8af20facc3a5e4b764fec4b8ba529d2d2cc7285f Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Sat, 4 Feb 2017 14:47:51 -0800 Subject: [PATCH] Update plugins for new interface --- plugins/counter/counter.go | 6 +++--- plugins/ibc/ibc.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/counter/counter.go b/plugins/counter/counter.go index 9c115089b..8d78d9b54 100644 --- a/plugins/counter/counter.go +++ b/plugins/counter/counter.go @@ -93,9 +93,9 @@ func (cp *CounterPlugin) RunTx(store types.KVStore, ctx types.CallContext, txByt func (cp *CounterPlugin) InitChain(store types.KVStore, vals []*abci.Validator) { } -func (cp *CounterPlugin) BeginBlock(store types.KVStore, height uint64) { +func (cp *CounterPlugin) BeginBlock(store types.KVStore, hash []byte, header *abci.Header) { } -func (cp *CounterPlugin) EndBlock(store types.KVStore, height uint64) []*abci.Validator { - return nil +func (cp *CounterPlugin) EndBlock(store types.KVStore, height uint64) (res abci.ResponseEndBlock) { + return } diff --git a/plugins/ibc/ibc.go b/plugins/ibc/ibc.go index 8d6e0c389..91b8c5498 100644 --- a/plugins/ibc/ibc.go +++ b/plugins/ibc/ibc.go @@ -374,11 +374,11 @@ func (sm *IBCStateMachine) runPacketPostTx(tx IBCPacketPostTx) { func (ibc *IBCPlugin) InitChain(store types.KVStore, vals []*abci.Validator) { } -func (ibc *IBCPlugin) BeginBlock(store types.KVStore, height uint64) { +func (cp *IBCPlugin) BeginBlock(store types.KVStore, hash []byte, header *abci.Header) { } -func (ibc *IBCPlugin) EndBlock(store types.KVStore, height uint64) []*abci.Validator { - return nil +func (cp *IBCPlugin) EndBlock(store types.KVStore, height uint64) (res abci.ResponseEndBlock) { + return } //--------------------------------------------------------------------------------