Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
635b9f66
Unverified
Commit
635b9f66
authored
4 years ago
by
Levente Pap
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/tangle/payload/payload.go
+4
-1
4 additions, 1 deletion
packages/tangle/payload/payload.go
with
4 additions
and
1 deletion
packages/tangle/payload/payload.go
+
4
−
1
View file @
635b9f66
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment