diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-19 18:48:41 +0800 |
---|---|---|
committer | missionliao <38416648+missionliao@users.noreply.github.com> | 2018-09-19 18:48:41 +0800 |
commit | 22e70f6da486ed6796a493f25e04679b9afa1439 (patch) | |
tree | 41998daa892812957daa58d7fe84d6fd06f4327c /core/interfaces.go | |
parent | a2a733e6f98018cb2ecc4b3982386be8892d7433 (diff) | |
download | tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.gz tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.zst tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.zip |
core: rename Notary (Acks) to Witness (#118)
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 0a8ca8f..3fae590 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -46,8 +46,8 @@ type Application interface { // DeliverBlock is called when a block is add to the compaction chain. DeliverBlock(blockHash common.Hash, timestamp time.Time) - // NotaryAckDeliver is called when a notary ack is created. - NotaryAckDeliver(notaryAck *types.NotaryAck) + // WitnessAckDeliver is called when a witness ack is created. + WitnessAckDeliver(witnessAck *types.WitnessAck) } // Network describs the network interface that interacts with DEXON consensus @@ -59,8 +59,8 @@ type Network interface { // BroadcastBlock broadcasts block to all nodes in DEXON network. BroadcastBlock(block *types.Block) - // BroadcastNotaryAck broadcasts notaryAck to all nodes in DEXON network. - BroadcastNotaryAck(notaryAck *types.NotaryAck) + // BroadcastWitnessAck broadcasts witnessAck to all nodes in DEXON network. + BroadcastWitnessAck(witnessAck *types.WitnessAck) // SendDKGPrivateShare sends PrivateShare to a DKG participant. SendDKGPrivateShare(recv types.ValidatorID, prvShare *types.DKGPrivateShare) |