aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/app.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 /simulation/app.go
parentbd5e5b4c79d990d65823b3630c0f76d21af9b52d (diff)
downloaddexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar
dexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.gz
dexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.bz2
dexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.lz
dexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.xz
dexon-consensus-5170bff5f5332fd7782f300cb4a1d63f3cd3664c.tar.zst
dexon-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 'simulation/app.go')
-rw-r--r--simulation/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/app.go b/simulation/app.go
index d544a59..89657a7 100644
--- a/simulation/app.go
+++ b/simulation/app.go
@@ -132,7 +132,7 @@ func (a *simApp) TotalOrderingDelivered(
// BlockDelivered is called when a block in compaction chain is delivered.
func (a *simApp) BlockDelivered(
- blockHash common.Hash, result types.FinalizationResult) {
+ blockHash common.Hash, _ types.Position, result types.FinalizationResult) {
if len(result.Randomness) == 0 && func() bool {
if block, exist := a.blockByHash[blockHash]; exist {
if block.Position.Round == 0 {