Skip to content
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: remove sweep transaction message #1060

Merged
merged 13 commits into from
Dec 9, 2024
Merged

fix: remove sweep transaction message #1060

merged 13 commits into from
Dec 9, 2024

Conversation

djordon
Copy link
Collaborator

@djordon djordon commented Dec 7, 2024

Description

Closes #1057

Changes

  • Remove the SweepTransactionInfo message.
  • Remove internal Sweep* types that fed into SweepTransactionInfo messages.
  • Remove the functions that read or write to the sweep_* tables.
  • Replace use of sweep_* tables with bitcoin_tx_* in the queries. This changes the queries in get_swept_deposit_requests and get_pending_accepted_deposit_requests.
  • Drop the sweep_* tables.

Testing Information

This is a (large) refactor. The signers no longer broadcast a message and rely on other tables for sweep information.

Checklist:

  • I have performed a self-review of my code

@djordon djordon added bug Something isn't working sbtc signer binary The sBTC Bootstrap Signer. signer communication Communication across sBTC bootstrap signers. labels Dec 7, 2024
@djordon djordon added this to the sBTC Release Ready milestone Dec 7, 2024
@djordon djordon self-assigned this Dec 7, 2024
@cylewitruk
Copy link
Member

cylewitruk commented Dec 9, 2024

This is protocol-breaking, right? Since non-upgraded signers will still try use this information but won't receive it from upgraded coordinators?

The upgraded signers should just log an error i guess when receiving the (now removed) messages from older coordinators?

@djordon djordon added breaking-local Breaking changes for the local signer (i.e. config, db) breaking-protocol Breaking protocol changes and removed breaking-local Breaking changes for the local signer (i.e. config, db) labels Dec 9, 2024
signer/src/storage/postgres.rs Outdated Show resolved Hide resolved
signer/tests/integration/postgres.rs Outdated Show resolved Hide resolved
don't need to. Instead we need to store the
stacks genesis block
@djordon djordon merged commit 63fcdb9 into main Dec 9, 2024
4 checks passed
@djordon djordon deleted the remove-sweep-tables branch December 9, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-protocol Breaking protocol changes bug Something isn't working sbtc signer binary The sBTC Bootstrap Signer. signer communication Communication across sBTC bootstrap signers.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Remove sweep transaction messages
3 participants