lightninglabs / taproot-assets

A layer 1 daemon, for the Taproot Assets Protocol specification, written in Go (golang)
MIT License
439 stars 106 forks source link

tapchannelmsg: increase channel data reader max record size #959

Closed ffranr closed 1 week ago

ffranr commented 1 week ago

Testing indicated that when using large but valid asset amounts the channel custom records buffer size was greater than tlv.MaxRecordSize.

This commit introduces a new greater constant which will be used as the channel data max record size.

Addresses bug reported here: https://github.com/lightninglabs/taproot-assets/issues/942#issuecomment-2174129269

What is the correct value for this new constant?

NOTE: I haven't finished investigating why the record takes up more memory.