diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-12 11:47:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 11:47:27 +0800 |
commit | 743983c82b601e200fa53d4aa8973f83ff628d29 (patch) | |
tree | 25ba7f6974233e062e8a8824ac702ac2c715f5a9 /core/crypto.go | |
parent | 0e8fda250804b9c46232287a18af05e7ccf5bf72 (diff) | |
download | tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.gz tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.bz2 tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.lz tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.xz tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.zst tangerine-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.zip |
core: types: use []byte for block Payload type (#101)
Change payload type to []byte instead of [][]byte to make it more
generic. The user of the consensus core should marshal the payload into
a byte slice by themselves.
Diffstat (limited to 'core/crypto.go')
-rw-r--r-- | core/crypto.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/crypto.go b/core/crypto.go index 656dd74..3fe39ac 100644 --- a/core/crypto.go +++ b/core/crypto.go @@ -66,7 +66,7 @@ func hashBlock(block *types.Block) (common.Hash, error) { if err != nil { return common.Hash{}, err } - payloadHash := crypto.Keccak256Hash(block.Payloads...) + payloadHash := crypto.Keccak256Hash(block.Payload) hash := crypto.Keccak256Hash( block.ProposerID.Hash[:], |