aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-10 17:32:47 +0800
committerGitHub <noreply@github.com>2018-08-10 17:32:47 +0800
commitf4690458abc24a0a3877f4facb0947c31d29e8cb (patch)
tree34ab0f3e13d4360b911832bd2fc943a7a2d2736c /core/crypto_test.go
parent09a0ab086cdafcb27b74e6346efdc8e96ca8145d (diff)
downloaddexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.gz
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.bz2
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.lz
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.xz
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.zst
dexon-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.zip
core: Modify Consensus interface (#45)
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r--core/crypto_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go
index be130e2..06f4905 100644
--- a/core/crypto_test.go
+++ b/core/crypto_test.go
@@ -42,10 +42,14 @@ func (sb *simpleBlock) Block() *types.Block {
return sb.block
}
-func (sb *simpleBlock) GetPayloads() [][]byte {
+func (sb *simpleBlock) Payloads() [][]byte {
return [][]byte{}
}
+func (sb *simpleBlock) SetBlock(block *types.Block) {
+ *sb.block = *block
+}
+
func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block {
acks := make(map[common.Hash]struct{})
timestamps := make(map[types.ValidatorID]time.Time)