Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Tip 🎯 Customize your risk assessments
✅ Automatic approvals, with your rules
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
7c5f8ff to
5698f0d
Compare
5698f0d to
2778394
Compare
2778394 to
664f086
Compare
664f086 to
590ddf3
Compare
76ba625 to
d06ef4b
Compare
29e5d83 to
7f75fbc
Compare
7f75fbc to
430199b
Compare
430199b to
1e02d99
Compare
1e02d99 to
a441660
Compare
Scheduling no longer pre-signs settlement notifications. The remaining accept and set-stage transaction builders still obtained their signer from Magic Program's process-wide keypair, even though the outbox client already has access to Engine. Build those instructions with an explicit authority pubkey and sign the transactions in the outbox client using Engine's borrowed signer and blockhash. Preserve the existing RPC retries and confirmation handling. Remove the global keypair, its accessors and initialization, and the leader startup call that populated it. Delete the signed instruction wrappers and the unused transaction helper. Builtin authority and signer checks continue using Engine's thread-local public identity. Move test authority setup into test_utils, initializing only a pubkey when the current thread has none. Remove obsolete committor test setup, update existing builder callers, and verify that closing an outbox works with an explicitly supplied authority. Move Magic Program's keypair, signer, and transaction dependencies to dev-dependencies. Validation: - cargo fmt --check and git diff --check - cargo check --tests for Magic Program, committor, and validator - cargo clippy --workspace --all-targets -- -D warnings - cargo test --workspace: 516 tests and 2 doctests passed RedSuite qualification has not been run. Refs #1535
a441660 to
6bd636f
Compare
What changed
Removes Magic Program's global validator keypair and startup initialization. Accept and set-stage transactions now use Engine's borrowed signer; builtin authority checks continue using Engine's thread-local pubkey. Test helpers initialize only a pubkey.
Partially addresses #1535.
Remaining work for #1535
The leader still copies the authority keypair into the callback service, committor, and Chainlink, and clones Engine's signer for fee-vault funding. The committor execution context still owns a
Keypair. Those paths must use Engine's signer without owning copies before Engine is the sole keypair owner.The stack's receipt coverage uses RedSuite PR #302.