aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test/node.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-09-25 14:10:16 +0800
committerWei-Ning Huang <aitjcize@gmail.com>2018-09-25 14:10:16 +0800
commit6c8d26d2e797e8420fc3de4b15e4c556f968aba0 (patch)
tree22beecc01da7a9ce5cac36135a89010d6d4ed4f2 /integration_test/node.go
parentca935bdbac190766f29fb73433a82ee5806bc8f9 (diff)
downloadtangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar.gz
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar.bz2
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar.lz
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar.xz
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.tar.zst
tangerine-consensus-6c8d26d2e797e8420fc3de4b15e4c556f968aba0.zip
core: add debug (#133)
* Split interface * Rename nonblocking-application to nonblocking Parts needs nonblocking gets more. * Implement core.nonBlocking based on interface split * Fix: the witness parent hash could be parent on compaction chain. * Rename Application.DeliverBlock to BlockDeliver To sync with naming of other methods. * Change methods' fingerprint - BlockConfirmed provides block hash only. - BlockDeliver provde a whole block.
Diffstat (limited to 'integration_test/node.go')
-rw-r--r--integration_test/node.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go
index 3193d99..2280b18 100644
--- a/integration_test/node.go
+++ b/integration_test/node.go
@@ -118,6 +118,7 @@ func NewNode(
privateKey,
eth.SigToPub,
app,
+ app,
db),
}
}
@@ -203,7 +204,7 @@ func (n *Node) processBlock(b *types.Block) (err error) {
if err = n.db.Update(*b); err != nil {
return
}
- n.app.DeliverBlock(b.Hash, b.Witness.Timestamp)
+ n.app.BlockDeliver(*b)
}
// Update pending blocks for verified block (pass sanity check).
pendings = append(pendings, verified...)