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/interfaces.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/interfaces.go')
-rw-r--r-- | core/interfaces.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 080db20..c8f57e9 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -30,7 +30,7 @@ import ( // consensus core. type Application interface { // PreparePayload is called when consensus core is preparing a block. - PreparePayloads(position types.Position) [][]byte + PreparePayload(position types.Position) []byte // VerifyPayloads verifies if the payloads are valid. VerifyPayloads(payloads [][]byte) bool |