-
Notifications
You must be signed in to change notification settings - Fork 124
fix: backport mainnet hotfix to Bitcoin TSS keysign failure #3509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: backport mainnet hotfix to Bitcoin TSS keysign failure #3509
Conversation
📝 WalkthroughWalkthroughThe changelog has been updated to document new features, fixes, and refactoring. Notably, a scheduling mechanism has been introduced for the Bitcoin TSS keysign to prevent spam, and the Changes
Sequence Diagram(s)sequenceDiagram
participant Obs as Observer
participant BC as BitcoinChain
Obs->>BC: Call scheduleCCTX()
BC->>BC: Derive scheduleInterval from outbound chain parameters
BC->>BC: Evaluate condition (nonce mod scheduleInterval == zetaHeight mod scheduleInterval)
alt Condition met
BC->>BC: Invoke TryProcessOutbound()
else Condition not met
BC-->>BC: Skip processing
end
Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3509 +/- ##
===========================================
- Coverage 65.42% 65.42% -0.01%
===========================================
Files 442 442
Lines 30527 30531 +4
===========================================
+ Hits 19972 19974 +2
- Misses 9700 9702 +2
Partials 855 855
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
changelog.md
(1 hunks)zetaclient/chains/bitcoin/bitcoin.go
(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.go`: Review the Go code, point out issues relative to ...
**/*.go
: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
zetaclient/chains/bitcoin/bitcoin.go
🪛 GitHub Check: codecov/patch
zetaclient/chains/bitcoin/bitcoin.go
[warning] 184-192: zetaclient/chains/bitcoin/bitcoin.go#L184-L192
Added lines #L184 - L192 were not covered by tests
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: start-e2e-test / e2e
- GitHub Check: build-and-test
🔇 Additional comments (2)
zetaclient/chains/bitcoin/bitcoin.go (1)
136-137
: LGTM: Clear variable declaration with security comment.The scheduleInterval variable is properly derived from chain parameters with a security comment to indicate it's always positive.
changelog.md (1)
18-18
: LGTM: Clear and concise changelog entry.The changelog entry accurately describes the change and its purpose.
Description
Schedule Bitcoin TSS keysign on configured interval in chain parameter. Based on what we observed on mainnet, signing Bitcoin outbound on every ZetaChain block could desync the signers.
The original hotfix: #3505
How Has This Been Tested?
Summary by CodeRabbit