Skip to content

add regression test for leader-broadcast silent-drop bug#311

Merged
jonasmartin merged 1 commit into
devfrom
regression-test
May 7, 2026
Merged

add regression test for leader-broadcast silent-drop bug#311
jonasmartin merged 1 commit into
devfrom
regression-test

Conversation

@jonasmartin
Copy link
Copy Markdown
Contributor

When a BroadcastedMessage arrives before the leader's VerificationKey, process_broadcasted_message silently skips the embedded OriginalMessage (see leader_broadcast.rs:404-410). The data is lost, and the keys step cannot complete.

The regression test processes a Broadcasted envelope before storing the leader's verification key in the receiving BitVMX instance's storage, then asserts that the previously skipped OriginalMessage can be recovered. A companion control test covers the case where the verification key is already present.

The failing test captures the missing behavior. Both tests are #[ignore]d and use prepare_bitcoin_guarded to launch bitcoind.

When a BroadcastedMessage arrives before the leader's VerificationKey,
process_broadcasted_message silently skips the embedded OriginalMessage
(see leader_broadcast.rs:404-410). The data is lost, and the keys step
cannot complete.

The regression test processes a Broadcasted envelope before storing the
leader's verification key in the receiving BitVMX instance's storage,
then asserts that the previously skipped OriginalMessage can be recovered.
A companion control test covers the case where the verification key is
already present.

The failing test captures the missing behavior. Both tests are #[ignore]d
and use prepare_bitcoin_guarded to launch bitcoind.
@jonasmartin jonasmartin merged commit 7552013 into dev May 7, 2026
1 check failed
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.

2 participants