diff options
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 364f2da..4376742 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -30,6 +30,12 @@ type Application interface { // PreparePayload is called when consensus core is preparing a block. PreparePayloads(shardID, chainID, height uint64) [][]byte + // VerifyPayloads verifies if the payloads are valid. + VerifyPayloads(payloads [][]byte) bool + + // BlockConfirmed is called when a block is confirmed and added to lattice. + BlockConfirmed(block *types.Block) + // StronglyAcked is called when a block is strongly acked. StronglyAcked(blockHash common.Hash) |