From fa946796ebd9c0d42afaac9b8b2169cb6f851af0 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 27 Aug 2024 16:34:36 +1000 Subject: [PATCH] Create a separate TxOut impl block Everything except the associated const is going to stay here in `bitcoin` when we move `TxOut` to `primitives`. --- bitcoin/src/blockdata/transaction.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index a2a8e671a..c4a4600dd 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -352,7 +352,9 @@ 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() }; +} +impl TxOut { /// The weight of this output. /// /// Keep in mind that when adding a [`TxOut`] to a [`Transaction`] the total weight of the