-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move withdrawal code to grpc (payout tx creator) and enable withdrawal tests #505
Conversation
…_with_thread_name macro.
0d139d4
to
95fc4e2
Compare
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.
LGTM
core/src/test_utils.rs
Outdated
.add_input( | ||
NormalSignatureKind::NotStored, | ||
txin, | ||
SpendPath::Unknown, |
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.
this will fail when signing
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.
Should be fixed in ade8477.
…esn't include users_intent_outpoint.
…hdrawal_transaction_and_signature macro.
// &user_xonly_pk, | ||
// )?; | ||
let txid_response = &response[2..66]; | ||
let txid = hex::decode(txid_response).map_err(|e| BridgeError::Error(e.to_string()))?; |
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.
What does this do exactly? can we add some comments? Referring to a gist with function nmes is not clear enough
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.
This is an old code that copied as is. Can be documented in this PR, though.
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.
Looking at it again, this was about Citrea and not about us. There was a single reference, which is that gist link. Relevant issue: #314
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.
thanks a lot for finding that issue, can we write it into the code as a comment? I don't think we need a fully-fledged crate, but a documented function that calls to Citrea and handles errors properly is definitely needed here. Maybe we could get some help from the Citrea team?
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.
I misused crate keyword there, meant module. But looks like we can get away with function(s) somewhere like in utils
module. When we decide to do this, we might need more help from Citrea team (gist is from them). Currently, we don't even utilize this code in tests because we don't have any connection to a Citrea instance, in tests. When we add Clementine support for https://github.com/chainwayxyz/citrea-e2e, we can do that.
Comment added in 8a22a4b
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.
I'm OK with a merge right now, the comments are nitpicks and can be ignored
…ate_payout_txhandler.
018a13f
to
df5a4be
Compare
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.
LGTM
Description
Extras
Linked Issues