From 149e918f4fc78632483bf549dd8f5ffe55366e18 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Thu, 4 Oct 2018 14:56:00 +0800 Subject: core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. (#170) --- core/nonblocking_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/nonblocking_test.go') diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go index 8c3cda9..7599456 100644 --- a/core/nonblocking_test.go +++ b/core/nonblocking_test.go @@ -45,8 +45,12 @@ func newSlowApp(sleep time.Duration) *slowApp { } } -func (app *slowApp) PrepareBlock(_ types.Position) ([]byte, []byte) { - return []byte{}, []byte{} +func (app *slowApp) PreparePayload(_ types.Position) []byte { + return []byte{} +} + +func (app *slowApp) PrepareWitness(_ uint64) types.Witness { + return types.Witness{} } func (app *slowApp) VerifyBlock(_ *types.Block) bool { -- cgit v1.2.3