Move and rename TxOut default trait to a const called NULL#1838
Move and rename TxOut default trait to a const called NULL#1838apoelstra merged 1 commit intorust-bitcoin:masterfrom
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 |
apoelstra
left a comment
There was a problem hiding this comment.
ACK 933f06014e4bd55924a327d6cc8b16763c023871
|
Updated CHANGELOG.md |
tcharding
left a comment
There was a problem hiding this comment.
ACK cff5c302cdf8ad56971110a65e867f8e320aaa37
02ea7c3 to
f33445a
Compare
apoelstra
left a comment
There was a problem hiding this comment.
ACK f33445a7d930a97157d85c1ebf45cb51dd53ac89
|
Note that if we change |
Kixunil
left a comment
There was a problem hiding this comment.
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. |
tcharding
left a comment
There was a problem hiding this comment.
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. |
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
|
ACK :) |
Create an associated constant
const TxOut::NULLfor 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::NULLisconst,ScriptBuf::new()needed to be changed toconst fn.