Create a separate TxOut impl block

Everything except the associated const is going to stay here in
`bitcoin` when we move `TxOut` to `primitives`.
This commit is contained in:
Tobin C. Harding 2024-08-27 16:34:36 +10:00
parent d7ac6af5b4
commit fa946796eb
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 0 deletions

View File

@ -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