aboutsummaryrefslogtreecommitdiffstats
path: root/core/interfaces.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-13 15:01:16 +0800
committerGitHub <noreply@github.com>2018-09-13 15:01:16 +0800
commit41f4c2fd789d6b58ca076e675b2ce931aaedb37b (patch)
tree6a1c1309ef27a82e8e20c65f76268511e1bfe0df /core/interfaces.go
parente9e0793a7191fb422e5458174d97c84a1f02f26a (diff)
downloadtangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar.gz
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar.bz2
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar.lz
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar.xz
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.tar.zst
tangerine-consensus-41f4c2fd789d6b58ca076e675b2ce931aaedb37b.zip
core: fix VerifyPayload argument (#103)
Since we are using a byte slice for storing payload. VerifyPayload() should also accepts a byte slice.
Diffstat (limited to 'core/interfaces.go')
-rw-r--r--core/interfaces.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/interfaces.go b/core/interfaces.go
index c8f57e9..d4ace51 100644
--- a/core/interfaces.go
+++ b/core/interfaces.go
@@ -33,7 +33,7 @@ type Application interface {
PreparePayload(position types.Position) []byte
// VerifyPayloads verifies if the payloads are valid.
- VerifyPayloads(payloads [][]byte) bool
+ VerifyPayloads(payloads []byte) bool
// BlockConfirmed is called when a block is confirmed and added to lattice.
BlockConfirmed(block *types.Block)