From 18c6a28ff021c9dc643091b5dc420b51183253cf Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Fri, 31 Aug 2018 13:34:00 +0800 Subject: Add methods to Application interface. (#86) --- core/consensus.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/consensus.go') diff --git a/core/consensus.go b/core/consensus.go index d6b5efd..4d1a386 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -245,6 +245,7 @@ func (con *Consensus) ProcessBlock(b *types.Block) (err error) { if err = con.rbModule.processBlock(b); err != nil { return err } + con.app.BlockConfirmed(b.Clone()) for _, b := range con.rbModule.extractBlocks() { // Notify application layer that some block is strongly acked. con.app.StronglyAcked(b.Hash) -- cgit v1.2.3