I chose to avoid modifying the FromBytes and ToBytes trait implementation on Message for now and instead read the ID bytes twice to keep special casing simple but I'd be happy to implement a decode_le that takes in the ID as well.
Can be merged once the corresponding PRs in VM are in.
Note, I've split the lock file changes out of the first commit for easier rebasing (originally by @d0cd, lmk if you have an email I can credit you with in the new commit).
Enforces the
MAX_TRANSACTION_SIZE
on the decode half of the router codec for unconfirmed transactions. See https://github.com/AleoHQ/snarkVM/pull/2437#discussion_r1570512045 and the corresponding PR in VM: https://github.com/AleoHQ/snarkVM/pull/2438 for context.I chose to avoid modifying the
FromBytes
andToBytes
trait implementation onMessage
for now and instead read the ID bytes twice to keep special casing simple but I'd be happy to implement adecode_le
that takes in the ID as well.Can be merged once the corresponding PRs in VM are in.