diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-04 14:56:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 14:56:00 +0800 |
commit | 149e918f4fc78632483bf549dd8f5ffe55366e18 (patch) | |
tree | feabcb67103d76cc829ea81a1d57735e71db23d8 /core/nonblocking_test.go | |
parent | 519cc8a734a510f44463b8dd175b7505f0308a22 (diff) | |
download | dexon-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.gz dexon-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.zst dexon-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.zip |
core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. (#170)
Diffstat (limited to 'core/nonblocking_test.go')
-rw-r--r-- | core/nonblocking_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
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 { |