aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test/node.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-02 16:01:35 +0800
committerGitHub <noreply@github.com>2018-11-02 16:01:35 +0800
commit5170bff5f5332fd7782f300cb4a1d63f3cd3664c (patch)
treec2c345bfc5553741e34165c8df13186ebb849084 /integration_test/node.go
parentbd5e5b4c79d990d65823b3630c0f76d21af9b52d (diff)
downloadtangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.gz
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.bz2
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.lz
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.xz
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.zst
tangerine-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.zip
core: block deliver with position (#289)
This info is required when application layer needs to do something related to the underlying DAG, not just compaction chain.
Diffstat (limited to 'integration_test/node.go')
-rw-r--r--integration_test/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go
index 0eb5345..ff58860 100644
--- a/integration_test/node.go
+++ b/integration_test/node.go
@@ -257,7 +257,7 @@ func (n *Node) processBlock(b *types.Block) (events []*test.Event, err error) {
}
b.Finalization.Height = n.prevFinalHeight + 1
b.Finalization.ParentHash = n.prevHash
- n.appModule.BlockDelivered(b.Hash, b.Finalization)
+ n.appModule.BlockDelivered(b.Hash, b.Position, b.Finalization)
n.prevFinalHeight++
n.prevHash = b.Hash
events = append(events, n.checkRoundSwitch(b)...)