aboutsummaryrefslogtreecommitdiffstats
path: root/core/nonblocking_test.go
diff options
context:
space:
mode:
authorhaoping-ku <haoping.ku@dexon.org>2018-12-05 17:38:03 +0800
committerGitHub <noreply@github.com>2018-12-05 17:38:03 +0800
commit4eb02f1dd96e136b0f7cf7eff792da1e44176713 (patch)
tree3757739bff31ce4b9cb7ff45be572f9858fc19e9 /core/nonblocking_test.go
parent1f48b590f6e9a6d3fd773846a3d8ba1b7f0419e6 (diff)
downloaddexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.gz
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.bz2
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.lz
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.xz
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.zst
dexon-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.zip
Haoping fix simulation (#356)
* simulation: add benchmark features * tmp * simulation: modify Debug interface * Added BlockReceived and BlockReady function to Debug interface. * Added Benchmark features. * fix * fix typos
Diffstat (limited to 'core/nonblocking_test.go')
-rw-r--r--core/nonblocking_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go
index cec1d8d..542382c 100644
--- a/core/nonblocking_test.go
+++ b/core/nonblocking_test.go
@@ -74,6 +74,10 @@ func (app *slowApp) BlockDelivered(blockHash common.Hash,
app.blockDelivered[blockHash] = struct{}{}
}
+func (app *slowApp) BlockReceived(hash common.Hash) {}
+
+func (app *slowApp) BlockReady(hash common.Hash) {}
+
// noDebugApp is to make sure nonBlocking works when Debug interface
// is not implemented by the provided Application instance.
type noDebugApp struct {