-
Notifications
You must be signed in to change notification settings - Fork 831
Move and rename TxOut default trait to a const called NULL #1838
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
Conversation
This change is a followup from #1811 |
0530c83
to
933f060
Compare
Address sanitizer test fail seems unrelated |
Yeah, asan failure looks like it's some nighly-related thing. You are correct that there is no way to deprecate a |
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.
ACK 933f06014e4bd55924a327d6cc8b16763c023871
Updated CHANGELOG.md |
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.
ACK cff5c302cdf8ad56971110a65e867f8e320aaa37
02ea7c3
to
f33445a
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.
ACK f33445a7d930a97157d85c1ebf45cb51dd53ac89
Note that if we change |
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.
Other than incorrect changelog, this is good.
So, it basically can't "go away" since it's used in the legacy sighashing algorithm. We'd have to think carefully about that. |
It can by refactoring that single piece of code that uses it to serialize directly into hasher rather than creating intermediate transaction - which would also improve speed so it's nice to do regardless. |
Ok, yeah, I agree with that. Though I also think this PR is a step in the right direction. |
We sometimes use an "unreleased" section at the top of the changlog, you can always add that if you'd like to make sure your PRs get a mention, saves me having to decide if something is mention-worthy also which is great :) |
I re-requested review to remove your "approve" @apoelstra since I was momentarily confused by the approve but the changlog thing stlil there. |
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.
With changelog fix: ACK f33445a7d930a97157d85c1ebf45cb51dd53ac89
A different version of nightly is now available 1.71 07-05 which is causing a test failure for nightly now. |
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.
ACK 75b3f19
639c548 docs: Add doc comments for external crates (yancy) Pull request description: A new version of rust nightly is causing a test failure for external crates that are not documented. This is currently causing a failure on my branch here: #1838 As a side note, it feels like this should be locked to a specific version of nightly in the CI tests and then updated as a choir instead of having it create a new problem in a branch that's not related. ACKs for top commit: apoelstra: ACK 639c548 tcharding: ACK 639c548 Tree-SHA512: 764999edc448bff88013301bef287b16ac750af560931470257f2b4475747d52546e73d7fd9a7bdf2cedb18178f370150351e40f176f3da929edf686f02f5c1a
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.
ACK 75b3f19
ACK :) |
Create an associated constant
const TxOut::NULL
for consensus signing code and remove the default trait. Note I tried to deprecate thedefault()
fn instead of just removing it but it doesn't seem to be possible. Also becauseTxOut::NULL
isconst
,ScriptBuf::new()
needed to be changed toconst fn
.