File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -443,14 +443,19 @@ u8 *linearize_wtx(const tal_t *ctx, const struct wally_tx *wtx)
443
443
return arr ;
444
444
}
445
445
446
- size_t bitcoin_tx_weight (const struct bitcoin_tx * tx )
446
+ size_t wally_tx_weight (const struct wally_tx * wtx )
447
447
{
448
448
size_t weight ;
449
- int ret = wally_tx_get_weight (tx -> wtx , & weight );
449
+ int ret = wally_tx_get_weight (wtx , & weight );
450
450
assert (ret == WALLY_OK );
451
451
return weight ;
452
452
}
453
453
454
+ size_t bitcoin_tx_weight (const struct bitcoin_tx * tx )
455
+ {
456
+ return wally_tx_weight (tx -> wtx );
457
+ }
458
+
454
459
void wally_txid (const struct wally_tx * wtx , struct bitcoin_txid * txid )
455
460
{
456
461
u8 * arr ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ u8 *linearize_wtx(const tal_t *ctx, const struct wally_tx *wtx);
59
59
60
60
/* Get weight of tx in Sipa. */
61
61
size_t bitcoin_tx_weight (const struct bitcoin_tx * tx );
62
+ size_t wally_tx_weight (const struct wally_tx * wtx );
62
63
63
64
/* Allocate a tx: you just need to fill in inputs and outputs (they're
64
65
* zeroed with inputs' sequence_number set to FFFFFFFF) */
You can’t perform that action at this time.
0 commit comments