aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice_test.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 /core/lattice_test.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 'core/lattice_test.go')
-rw-r--r--core/lattice_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lattice_test.go b/core/lattice_test.go
index ca3cfbb..b469565 100644
--- a/core/lattice_test.go
+++ b/core/lattice_test.go
@@ -80,7 +80,7 @@ func (mgr *testLatticeMgr) processBlock(b *types.Block) (err error) {
if err = mgr.db.Update(*b); err != nil {
return
}
- mgr.app.BlockDelivered(b.Hash, b.Finalization)
+ mgr.app.BlockDelivered(b.Hash, b.Position, b.Finalization)
}
if err = mgr.lattice.PurgeBlocks(delivered); err != nil {
return