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 /core/consensus_test.go | |
parent | f3e9eb613c7e8dec6b8c6b1b0a20ddbec4e91a9c (diff) | |
download | dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.gz dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.zst dexon-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 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index 6163e6a..1b03321 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -195,7 +195,7 @@ func (s *ConsensusTestSuite) TestSimpleDeliverBlock() { broadcast := func(b *types.Block) { for _, obj := range objs { h := common.NewRandomHash() - b.Randomness = h[:] + b.Finalization.Randomness = h[:] obj.con.ccModule.registerBlock(b) req.Nil(obj.con.processBlock(b)) } |