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

chore: upgrade bitcoin rpc dependency #490

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

sander2
Copy link
Member

@sander2 sander2 commented Jul 13, 2023

No description provided.

@sander2 sander2 force-pushed the chore/upgrade-bitcoincore-rpc branch 4 times, most recently from 96ff778 to 59b771d Compare July 19, 2023 14:12
@sander2 sander2 force-pushed the chore/upgrade-bitcoincore-rpc branch 4 times, most recently from fb8b227 to 758cba2 Compare July 20, 2023 13:11
@sander2 sander2 marked this pull request as ready for review July 20, 2023 14:01
Copy link
Member

@gregdhill gregdhill left a comment

Choose a reason for hiding this comment

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

Some very minor nits, otherwise LGTM

@@ -215,7 +216,7 @@ impl ElectrsClient {
let txid = self
.cli
.post(url)
.body(serialize(&tx).to_hex())
.body(hex::encode(serialize(&tx)))
Copy link
Member

Choose a reason for hiding this comment

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

What happened to ToHex?

Copy link
Member Author

@sander2 sander2 Jul 24, 2023

Choose a reason for hiding this comment

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

It was giving me errors, I think because upstream made some changes, see rust-bitcoin/rust-bitcoincore-rpc#88

bitcoin/src/lib.rs Outdated Show resolved Hide resolved
bitcoin/src/lib.rs Outdated Show resolved Hide resolved
bitcoin/src/lib.rs Outdated Show resolved Hide resolved
}?;
let script_code = prev_out
.script_pubkey
.p2wpkh_script_code()
Copy link
Member

Choose a reason for hiding this comment

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

Nice to have this implemented for us

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea the bitcoin crate has a lot of utilities, there is probably more code we can replace, but I wanted to keep the pr as minimal as possible

@sander2 sander2 force-pushed the chore/upgrade-bitcoincore-rpc branch from 758cba2 to b7e4f64 Compare July 24, 2023 16:11
@sander2 sander2 force-pushed the chore/upgrade-bitcoincore-rpc branch from b7e4f64 to 8439892 Compare July 25, 2023 08:12
@sander2 sander2 merged commit f8ebf7c into interlay:master Jul 25, 2023
6 checks passed
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.

2 participants