From dd2df2bf101f4857a4aa563cd4fc05ccc1f52388 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Wed, 29 Jan 2025 22:33:47 +0100 Subject: [PATCH] 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. --- primitives/src/transaction.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/primitives/src/transaction.rs b/primitives/src/transaction.rs index bb4005798..e91540e55 100644 --- a/primitives/src/transaction.rs +++ b/primitives/src/transaction.rs @@ -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