Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

MAM message (bundle) length limit 638036 Bytes, bug or by design? #68

Open
zhengxiaochen opened this issue Mar 20, 2020 · 0 comments
Open

Comments

@zhengxiaochen
Copy link

Hi, is there a limit for the length of 'trytes' in MAM.create(mamState, trytes)?
I encoded a string to str Trytes with trytes = iota.utils.toTrytes(str) , then passed the encoded 'trytes' to the MAM.create() to create a message. It worked well with a string less than 638036 Bytes, but caused the following error with even one more byte (638037).

fatal runtime error: allocator memory exhausted
trap!
trap!
abort("trap!"). Build with -s ASSERTIONS=1 for more info.

Is this a bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant