From 743983c82b601e200fa53d4aa8973f83ff628d29 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 12 Sep 2018 11:47:27 +0800 Subject: 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. --- core/test/app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/test') 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. -- cgit v1.2.3