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:
parent
a9ffb1571c
commit
dd2df2bf10
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue