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/test/app_test.go | |
parent | a2a733e6f98018cb2ecc4b3982386be8892d7433 (diff) | |
download | tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.gz tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.bz2 tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.lz tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.xz tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.zst tangerine-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.zip |
core: rename Notary (Acks) to Witness (#118)
Diffstat (limited to 'core/test/app_test.go')
-rw-r--r-- | core/test/app_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/test/app_test.go b/core/test/app_test.go index 6966de5..0003852 100644 --- a/core/test/app_test.go +++ b/core/test/app_test.go @@ -153,14 +153,14 @@ func (s *AppTestSuite) TestVerify() { app4.StronglyAcked(hash) app4.TotalOrderingDeliver(common.Hashes{hash}, false) s.deliverBlockWithTimeFromSequenceLength(app4, hash) - // Notary ack on unknown block. + // Witness ack on unknown block. app5 := NewApp() s.setupAppByTotalOrderDeliver(app5, s.to1) - app5.NotaryAckDeliver(&types.NotaryAck{ - Hash: common.NewRandomHash(), - NotaryBlockHash: common.NewRandomHash(), + app5.WitnessAckDeliver(&types.WitnessAck{ + Hash: common.NewRandomHash(), + WitnessBlockHash: common.NewRandomHash(), }) - req.Equal(ErrNotaryAckUnknownBlock, app5.Verify()) + req.Equal(ErrWitnessAckUnknownBlock, app5.Verify()) } func TestApp(t *testing.T) { |