Skip to content
Snippets Groups Projects
Unverified Commit 635b9f66 authored by Levente Pap's avatar Levente Pap
Browse files

Change maxPayloadSize to 65157 bytes

With multiple (max 8) parents, there is less space for payloads.
parent 28f9e2e9
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,10 @@ import (
// TODO: need to adjust the max size of the payload if we want to keep a message to 64 KB
// MaxSize defines the maximum allowed size of a marshaled Payload (in bytes).
const MaxSize = 65288
// MaxPayloadSize = MaxMessageSize -
// (version(1) + parentsCount(1) + parentsType(1) + maxParents(8) * 32 + issuerPK(32) +
// issuanceTime(8) + seqNum(8) + nonce(8) + signature(64) = MaxMessageSize - 379 bytes = 65157
const MaxSize = 65157
// Payload represents the generic interface for an object that can be embedded in Messages of the Tangle.
type Payload interface {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment