Skip to content

test: failing regression tests for #160 — RGB effects before peer msg… - #165

Open
rmn-boiko wants to merge 2 commits into
RGB-Tools:masterfrom
rmn-boiko:test/160-effects-before-verify
Open

rmn-boiko wants to merge 2 commits into
RGB-Tools:masterfrom
rmn-boiko:test/160-effects-before-verify

Conversation

@rmn-boiko

Copy link
Copy Markdown

Adds tests that reproduce issue #160:
during channel funding, the acceptor applies RGB and wallet side effects before the peer
message that triggered them is verified. A peer can send a well-formed but invalid
funding_created (unrelated consignment, unsupported assignment variant, out-of-range asset
push) and the node has already imported a consignment and mutated its RGB wallet by the time the
check fails — with no rollback. Some late checks are unreachable!() or an unchecked
subtraction, so peer input can panic the message handler instead of cleanly closing the channel.

@rmn-boiko
rmn-boiko force-pushed the test/160-effects-before-verify branch from a7b828e to 0b29e1e Compare September 2, 2026 18:59
@rmn-boiko
rmn-boiko marked this pull request as ready for review September 2, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant