aboutsummaryrefslogtreecommitdiffstats
path: root/core/test
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/test
parent1f48b590f6e9a6d3fd773846a3d8ba1b7f0419e6 (diff)
downloadtangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar
tangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.gz
tangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.bz2
tangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.lz
tangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.xz
tangerine-consensus-4eb02f1dd96e136b0f7cf7eff792da1e44176713.tar.zst
tangerine-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/test')
-rw-r--r--core/test/app.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/test/app.go b/core/test/app.go
index 9f030e9..d26784e 100644
--- a/core/test/app.go
+++ b/core/test/app.go
@@ -280,6 +280,12 @@ Loop:
return nil
}
+// BlockReceived implements interface Debug.
+func (app *App) BlockReceived(hash common.Hash) {}
+
+// BlockReady implements interface Debug.
+func (app *App) BlockReady(hash common.Hash) {}
+
// WithLock provides a backdoor to check status of App with reader lock.
func (app *App) WithLock(function func(*App)) {
app.confirmedLock.RLock()