aboutsummaryrefslogtreecommitdiffstats
path: root/core/interfaces.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/interfaces.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/interfaces.go')
-rw-r--r--core/interfaces.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/interfaces.go b/core/interfaces.go
index 75a2fdf..3a9c075 100644
--- a/core/interfaces.go
+++ b/core/interfaces.go
@@ -42,7 +42,8 @@ type Application interface {
BlockConfirmed(block types.Block)
// BlockDelivered is called when a block is add to the compaction chain.
- BlockDelivered(blockHash common.Hash, result types.FinalizationResult)
+ BlockDelivered(blockHash common.Hash,
+ blockPosition types.Position, result types.FinalizationResult)
}
// Debug describes the application interface that requires