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: demo branch fixes #920

Merged
merged 36 commits into from
Nov 25, 2024
Merged

fix: demo branch fixes #920

merged 36 commits into from
Nov 25, 2024

Conversation

matteojug
Copy link
Collaborator

Description

Closes: #?

Changes

Testing Information

Checklist:

  • I have performed a self-review of my code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@cylewitruk cylewitruk marked this pull request as ready for review November 25, 2024 12:34
@cylewitruk cylewitruk self-requested a review November 25, 2024 12:34
Copy link
Contributor

@djordon djordon left a comment

Choose a reason for hiding this comment

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

Had a few questions and comments.

signer/src/main.rs Outdated Show resolved Hide resolved
signer/src/network/libp2p/event_loop.rs Show resolved Hide resolved
signer/src/transaction_signer.rs Outdated Show resolved Hide resolved
signer/src/transaction_signer.rs Outdated Show resolved Hide resolved
signer/src/transaction_signer.rs Outdated Show resolved Hide resolved
signer/Cargo.toml Outdated Show resolved Hide resolved
signer/src/main.rs Show resolved Hide resolved
signer/src/main.rs Show resolved Hide resolved
contracts/contracts/sbtc-registry.clar Outdated Show resolved Hide resolved
signer/src/transaction_signer.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@djordon djordon left a comment

Choose a reason for hiding this comment

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

Looks good!

signer/src/emily_client.rs Show resolved Hide resolved
@djordon djordon merged commit 4c95323 into main Nov 25, 2024
4 checks passed
Jiloc added a commit that referenced this pull request Nov 25, 2024
#905)

* Remove locking and just use an ID for
keeping track of the signer in the new WanNetwork

* Add some more comments

* Fix up after changes

* Add code to transform the TerminationHandle
into a BroadcastStream.

* Add a new function to the MessageTransfer trait,
implement it for the types that implement the trait

* Add a new function to the Context trait that
has a default implementation that combines
all streams that a signer may be interested in

* Use the new streams in our event loops

* Add in an enum variant

* Fix up after using the new types

* updates after using the new stream

* Temporarily ignore some tests

* Minor changes in the TxSigner

* minor test update

* Fix the WSTS bug

* Ignore tests that are ignored in later updates

* unnecessary

* Ignore another test

* fix the test

* This one can be fixed now

* No more aborting

* this test is already fixed

* Add a new request decider event loop

* Add a new signer event type

* Make sure to use the right events

* Small refactor

* Move the sleep to before the chain tip lookup

* move it back

* revert

* cargo fmt

* Add in the new event loop and remove
unnecessary field from the tx-signer

* wip

* save txs sighashes on db

* recreate wstscoordinato at each sign round

* rename BitcoinBlockSbtcRequests, reuse signers_key

* add fees to the BitcoinBlockSbtcRequests

* update function name

* add wait timer after sending requests context

* re-create coordinator state machine at each signing round

* rename SbtcRequestsContextMessage

* fix linter warning

* fix function naming

* add test

* update test

* address review comments

* fix test. address comments. make sighash the pk

* wait for signers acks after sending bitcoin pre request

* fix: demo branch fixes (#920)

* update logging so we know what wsts messages came from where
* remove duplicate multisig addr check in sbtc-registry
* explicitly add/remove peers to kademlia
* strip p2p info from peer addresses for kademlia
* more logging
* periodically log p2p peers
* use autonat v2
* Smarter filtering of messages in the tx-signer.
* Add an optional sleep after receiving DkgBegin messages

---------

Co-authored-by: Joey Yandle <[email protected]>
Co-authored-by: Cyle Witruk <[email protected]>

* Revert "wait for signers acks after sending bitcoin pre request"

This reverts commit 468153f.

* drop the database at the end

* feat: add back the target field in our logs (#950)

* add back the target

* 794 save bitcoin sighashes to db (#877)

* WIP

* Add an outpoint type

* WIP

* WIP

* Rename the enum

* Change the validation output

* More refactoring

* fake docs

* Add documentation

* This is unnecessary

* Fix up more comments

* Add todos for more work for validation

* add sighashes tables

* fix enum name

* add bitcoin_withdrawals_outputs table and new queries

* fix tests. add new batch queries

* add integration tests. fix prevout_type type in the query

* add block_hash to bitcoin_withdrawals_outputs primary key

* address review comments

* Comment update

* Remove unnecessary cruft

* Add a will sign field in case we want to
make the query super simple

* add prevout_type back

* Add some more comments, cargo fmt

* Remove the withdrawal check in the
prevalidation function

* Make sure the people cannot have fees
assessments that are greater than the deposit amount

* Allow the max-fee to be configurable

* Simplify the block observer

* fix typo

* Remove the construction version

* Add integration tests and test fixtures

* fix validation tests

* update schemas to remove version

* test the amount fee thingy

* bump the timeout

* fix test that was randomly failing

* Add another test

* Another test

* Finish adding tests

* That was silly

* fix typo

* get_bitcoin_tx_sighash -> will_sign_bitcoin_tx_sighas

* change queries signature to accept slices

* address review comments

* Feat/add is unique implementation for request packages (#888)

* add is_unique logic

* fix lint warning

* add missing import

* fix test

* move new tables into new migration file

* Fix up the new tables

---------

Co-authored-by: djordon <[email protected]>

---------

Co-authored-by: djordon <[email protected]>
Co-authored-by: Matteo Almanza <[email protected]>
Co-authored-by: Joey Yandle <[email protected]>
Co-authored-by: Cyle Witruk <[email protected]>
Co-authored-by: Daniel Jordon <[email protected]>
@matteojug matteojug deleted the fix/demo-fix branch December 15, 2024 15:33
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.

4 participants