diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-11 19:33:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 19:33:25 +0800 |
commit | 490fa1e9ce2b661e4c8b612bd53f20123346353b (patch) | |
tree | 2ef4a4fabb1e21d46ef3e47538dadfeecdf2cf4d /integration_test/node.go | |
parent | f3e9eb613c7e8dec6b8c6b1b0a20ddbec4e91a9c (diff) | |
download | tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.gz tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.bz2 tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.lz tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.xz tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.zst tangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.zip |
core: change interface (#193)
* Extract types.FinalizationResult
* Change interface:
- Application.BlockConfirmed returns whole block.
- Application.BlockDelivered returns partial result.
Diffstat (limited to 'integration_test/node.go')
-rw-r--r-- | integration_test/node.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go index 555142d..d75f1ae 100644 --- a/integration_test/node.go +++ b/integration_test/node.go @@ -206,7 +206,7 @@ func (n *Node) processBlock(b *types.Block) (err error) { if err = n.db.Put(*b); err != nil { return } - n.app.BlockDelivered(*b) + n.app.BlockDelivered(b.Hash, b.Finalization) } if err = n.lattice.PurgeBlocks(delivered); err != nil { return |