Skip to content

Update to rust-bitcoin v0.15 #249

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

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

stevenroose
Copy link
Contributor

There is a strange failure in one test that I can't figure out:

https://gist.github.com/stevenroose/8a1ad0a1b4eaf29f35d41c8aa0d7bd96

@ariard
Copy link

ariard commented Nov 12, 2018

Issue is into create_chan_between_nodes_with_value_init, https://github.com/rust-bitcoin/rust-lightning/blob/a932fb3ab0315a7eddc6b1f11adb3d4fbd3f70f1/src/ln/channelmanager.rs#L3521, we return a Transaction but register an OutPoint generated from tx serialization. Txids differ from then, not the case with 0.14
Seems to me that's coming from the set of changes on serialization stuff in rust-bitcoin 0.15

@stevenroose
Copy link
Contributor Author

Can't you use tx.bitcoin_hash() there? Might be related to including segwit data.

@stevenroose stevenroose force-pushed the bitcoin-0.15 branch 2 times, most recently from 65c8e83 to 95f8362 Compare November 12, 2018 00:59
@stevenroose
Copy link
Contributor Author

Using .txid() solved it.

@stevenroose stevenroose changed the title [WIP] Update to rust-bitcoin v0.15 Update to rust-bitcoin v0.15 Nov 12, 2018
@apoelstra
Copy link

Test failures are likely caused by rust-bitcoin/rust-bitcoin#153 which change to use segwit serialization for 0-input transactions. But this code was always incorrect for any transaction with witnesses.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Thanks!

@stevenroose stevenroose force-pushed the bitcoin-0.15 branch 2 times, most recently from ceb3957 to 7ff7561 Compare November 14, 2018 11:42
@stevenroose
Copy link
Contributor Author

fixed and rebased

@TheBlueMatt TheBlueMatt merged commit 2258d2b into lightningdevkit:master Nov 15, 2018
@stevenroose stevenroose deleted the bitcoin-0.15 branch November 15, 2018 19: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