mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-20 16:48:32 +02:00
create_slatepack always serialized to V5, so every slatepack went out V5 and V4-only peers could not read it. Emit V4 unless the slate carries a payment proof: only the (opt-in) proof needs the V5-only fields (timestamp/memo) that V4 cannot represent. The slate's declared version is set to match the emitted structure so readers select the right variant. - packer: V5 when payment_proof is present, else V4. - test: a proof slate round-trips as V5 (memo preserved); a no-proof slate as V4. Addresses PR #754 review (packer.rs).