aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto_test.go
diff options
context:
space:
mode:
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)