From d844c339a128322dff180a6ccc6e6b241e917546 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Tue, 25 Sep 2018 17:19:00 +0800 Subject: Fix naming of methods (#134) - BlockDeliver -> BlockDelivered - TotalOrderingDeliver -> TotalOrderingDelivered - WitnessAckDeliver -> WitnessAckDelivered - VerifyPayload -> VerifyPayloads --- core/interfaces.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/interfaces.go') diff --git a/core/interfaces.go b/core/interfaces.go index 03caa63..4e0b4cc 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -30,18 +30,18 @@ type Application interface { // PreparePayload is called when consensus core is preparing a block. PreparePayload(position types.Position) []byte - // VerifyPayloads verifies if the payloads are valid. - VerifyPayloads(payloads []byte) bool + // VerifyPayload verifies if the payloads are valid. + VerifyPayload(payloads []byte) bool - // BlockDeliver is called when a block is add to the compaction chain. - BlockDeliver(block types.Block) + // BlockDelivered is called when a block is add to the compaction chain. + BlockDelivered(block types.Block) // BlockProcessedChan returns a channel to receive the block hashes that have // finished processing by the application. BlockProcessedChan() <-chan types.WitnessResult - // WitnessAckDeliver is called when a witness ack is created. - WitnessAckDeliver(witnessAck *types.WitnessAck) + // WitnessAckDelivered is called when a witness ack is created. + WitnessAckDelivered(witnessAck *types.WitnessAck) } // Debug describes the application interface that requires @@ -53,9 +53,9 @@ type Debug interface { // StronglyAcked is called when a block is strongly acked. StronglyAcked(blockHash common.Hash) - // TotalOrderingDeliver is called when the total ordering algorithm deliver + // TotalOrderingDelivered is called when the total ordering algorithm deliver // a set of block. - TotalOrderingDeliver(blockHashes common.Hashes, early bool) + TotalOrderingDelivered(blockHashes common.Hashes, early bool) } // Network describs the network interface that interacts with DEXON consensus -- cgit v1.2.3