Delete `TxOut::NULL`

We've stopped using `TxOut::NULL` in the code and we want to restrict
`Amount` to 21M BTC, so we are now deleting this constant without
deprecation. Deprecation can be backported if needed.
This commit is contained in:
Martin Habovstiak 2025-01-29 22:33:47 +01:00
parent a9ffb1571c
commit dd2df2bf10
1 changed files with 0 additions and 7 deletions

View File

@ -350,13 +350,6 @@ pub struct TxOut {
pub script_pubkey: ScriptBuf,
}
#[cfg(feature = "alloc")]
impl TxOut {
/// This is used as a "null txout" in consensus signing code.
pub const NULL: Self =
TxOut { value: Amount::from_sat(0xffffffffffffffff), script_pubkey: ScriptBuf::new() };
}
/// A reference to a transaction output.
///
/// ### Bitcoin Core References