aboutsummaryrefslogtreecommitdiffstats
path: root/core/application.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-10 13:40:57 +0800
committerGitHub <noreply@github.com>2018-08-10 13:40:57 +0800
commitb88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538 (patch)
tree9595ccf912234c24674138705d2cc2b463212905 /core/application.go
parent99d9591e5f0af54bf06f41cfd2658cfcc9ee6436 (diff)
downloadtangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.gz
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.bz2
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.lz
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.xz
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.zst
tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.zip
core: Deliver only Hash to Application. (#43)
Diffstat (limited to 'core/application.go')
-rw-r--r--core/application.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/application.go b/core/application.go
index 763954d..5bd325c 100644
--- a/core/application.go
+++ b/core/application.go
@@ -21,7 +21,6 @@ import (
"time"
"github.com/dexon-foundation/dexon-consensus-core/common"
- "github.com/dexon-foundation/dexon-consensus-core/core/types"
)
// Application describes the application interface that interacts with DEXON
@@ -31,7 +30,7 @@ type Application interface {
StronglyAcked(blockHash common.Hash)
// TotalOrderingDeliver is called when the total ordering algorithm deliver // a set of block.
- TotalOrderingDeliver(blocks []*types.Block, early bool)
+ TotalOrderingDeliver(blockHashes common.Hashes, early bool)
// DeliverBlock is called when a block is add to the compaction chain.
DeliverBlock(blockHash common.Hash, timestamp time.Time)