aboutsummaryrefslogtreecommitdiffstats
path: root/core/test
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 /core/test
parent0e8fda250804b9c46232287a18af05e7ccf5bf72 (diff)
downloadtangerine-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/test')
-rw-r--r--core/test/app.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/test/app.go b/core/test/app.go
index 60b74ac..76f1a10 100644
--- a/core/test/app.go
+++ b/core/test/app.go
@@ -102,9 +102,9 @@ func NewApp() *App {
}
}
-// PreparePayloads implements Application interface.
-func (app *App) PreparePayloads(position types.Position) [][]byte {
- return [][]byte{}
+// PreparePayload implements Application interface.
+func (app *App) PreparePayload(position types.Position) []byte {
+ return []byte{}
}
// VerifyPayloads implements Application.