aboutsummaryrefslogtreecommitdiffstats
path: root/core/blocklattice.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-07-31 22:39:05 +0800
committerGitHub <noreply@github.com>2018-07-31 22:39:05 +0800
commitea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c (patch)
tree19de3fe44b3c4822f78bd2405f99c07c1130cdd8 /core/blocklattice.go
parent3778e956013cad171cd5954686831e2598de3045 (diff)
downloadtangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar.gz
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar.bz2
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar.lz
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar.xz
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.tar.zst
tangerine-consensus-ea2d10b0c7874e6c1d3dd1cf2487ad2525ebb59c.zip
core: refine Application interface and add Governance interface (#24)
Add a new Governance interface for interaction with the governance contract. Also remove the ValidateBlock call in application interface as the application should validate it before putting it into the consensus module. A new BlockConverter interface is also added. The consensus module should accept the BlockConverter interface in future implementation, and use the Block() function to get the underlying block info.
Diffstat (limited to 'core/blocklattice.go')
-rw-r--r--core/blocklattice.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blocklattice.go b/core/blocklattice.go
index e4a76cc..1f12474 100644
--- a/core/blocklattice.go
+++ b/core/blocklattice.go
@@ -532,7 +532,7 @@ func (l *BlockLattice) totalOrdering(b *types.Block) {
sort.Sort(types.ByHash(output))
if len(output) > 0 {
- l.app.Deliver(output, earlyDelivery)
+ l.app.TotalOrderingDeliver(output, earlyDelivery)
}
// Rescan pending blocks to add into candidate set.