aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/app_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-11 19:33:25 +0800
committerGitHub <noreply@github.com>2018-10-11 19:33:25 +0800
commit490fa1e9ce2b661e4c8b612bd53f20123346353b (patch)
tree2ef4a4fabb1e21d46ef3e47538dadfeecdf2cf4d /core/test/app_test.go
parentf3e9eb613c7e8dec6b8c6b1b0a20ddbec4e91a9c (diff)
downloadtangerine-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.gz
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 'core/test/app_test.go')
-rw-r--r--core/test/app_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/test/app_test.go b/core/test/app_test.go
index 21d4e24..a70fc82 100644
--- a/core/test/app_test.go
+++ b/core/test/app_test.go
@@ -80,9 +80,8 @@ func (s *AppTestSuite) deliverBlockWithTimeFromSequenceLength(
func (s *AppTestSuite) deliverBlock(
app *App, hash common.Hash, timestamp time.Time) {
- app.BlockDelivered(types.Block{
- Hash: hash,
- ConsensusTimestamp: timestamp,
+ app.BlockDelivered(hash, types.FinalizationResult{
+ Timestamp: timestamp,
})
}