aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-12 11:47:27 +0800
committerGitHub <noreply@github.com>2018-09-12 11:47:27 +0800
commit743983c82b601e200fa53d4aa8973f83ff628d29 (patch)
tree25ba7f6974233e062e8a8824ac702ac2c715f5a9 /simulation
parent0e8fda250804b9c46232287a18af05e7ccf5bf72 (diff)
downloaddexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar
dexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.gz
dexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.bz2
dexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.lz
dexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.xz
dexon-consensus-743983c82b601e200fa53d4aa8973f83ff628d29.tar.zst
dexon-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 'simulation')
-rw-r--r--simulation/app.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/simulation/app.go b/simulation/app.go
index c312204..40aa32b 100644
--- a/simulation/app.go
+++ b/simulation/app.go
@@ -94,9 +94,9 @@ func (a *simApp) getAckedBlocks(ackHash common.Hash) (output common.Hashes) {
return
}
-// PreparePayloads implements core.Application.
-func (a *simApp) PreparePayloads(position types.Position) [][]byte {
- return [][]byte{}
+// PreparePayload implements core.Application.
+func (a *simApp) PreparePayload(position types.Position) []byte {
+ return []byte{}
}
// StronglyAcked is called when a block is strongly acked by DEXON