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

control: remove the signature check logic, use revault_tx instead #284

Merged
merged 1 commit into from
Oct 23, 2021

Conversation

darosior
Copy link
Member

@darosior darosior commented Oct 22, 2021

Yay for code removal!

Fixes #253

@darosior
Copy link
Member Author

The tests were great, but it's even better to have nothing to test :)

Copy link
Collaborator

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5d51920 - unit and functional tests are passing locally

@darosior darosior merged commit 32d571f into revault:master Oct 23, 2021
@darosior darosior deleted the remove_signature_check branch October 23, 2021 17:32
darosior added a commit that referenced this pull request Nov 2, 2021
1d26384 ci: reduce parallelization (Antoine Poinsot)
a1b42dd control: pass a slice of DbTransaction to share signatures to the coord (Antoine Poinsot)
444af2e db: separate RevaultTx helpers in a new bitcointx mod (Antoine Poinsot)
31951a0 Presigned txs signatures update overhaul (Antoine Poinsot)
e99ebe1 sigfetcher: only fetch incomplete txs for vaults with expected statuses (Antoine Poinsot)
668e7f8 sigfetcher: fetch vaults in db only once (Antoine Poinsot)
d621b8c tests: update coordinatord to latest master (Antoine Poinsot)

Pull request description:

  This is a complete refactor of our signature update for in-DB transactions. With the upcoming watchtower integration, it was not reasonable to pile on top of the intricate logic of `db_update_presigned_tx` in the coordinator poller thread.

  This cleans up the signature update logic in the signature fetcher thread and as a consequence refactors the data structure used to represent the in-DB presigned transactions and the update of those via RPC.

  It's a pretty invasive refactoring, but with some upsides as it fixes #284 and partially tackles #145 . Refer to the commit messages for more details.

ACKs for top commit:
  darosior:
    re-ACK 1d26384

Tree-SHA512: e8ec4decf76156364ea7144c77599109acfca129677392f9e969d8fdda9b877eb3152c68368b23894d628b9a0d51cebbab8a21405ad2fe8eaa56cc18776b8bbd
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.

check_spend_signatures should (probably) use add_signature in a fresh SpendTransaction
2 participants