diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-12 19:36:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 19:36:32 +0800 |
commit | 09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94 (patch) | |
tree | 61eb287e8119f0de7670cb7a98dfa35cd431cc82 /core/nonblocking_test.go | |
parent | 48f5fdb27e3218e2476b27ae99bcf242533b3bc3 (diff) | |
download | dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar.gz dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar.bz2 dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar.lz dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar.xz dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.tar.zst dexon-consensus-09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94.zip |
core: modify interface (#194)
* Add a new method to notify full node about round cutting.
* Modify interface to return error when preparing block
Diffstat (limited to 'core/nonblocking_test.go')
-rw-r--r-- | core/nonblocking_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go index 8cd42d0..50f580a 100644 --- a/core/nonblocking_test.go +++ b/core/nonblocking_test.go @@ -45,12 +45,12 @@ func newSlowApp(sleep time.Duration) *slowApp { } } -func (app *slowApp) PreparePayload(_ types.Position) []byte { - return []byte{} +func (app *slowApp) PreparePayload(_ types.Position) ([]byte, error) { + return []byte{}, nil } -func (app *slowApp) PrepareWitness(_ uint64) types.Witness { - return types.Witness{} +func (app *slowApp) PrepareWitness(_ uint64) (types.Witness, error) { + return types.Witness{}, nil } func (app *slowApp) VerifyBlock(_ *types.Block) bool { |