We used to have beautiful, optimal code which fed the tx parts directly * into sha256_update(). But that was before libwally; but now we don't have * to maintain our own transaction code, so there's that. */
| 504 | * into sha256_update(). But that was before libwally; but now we don't have |
| 505 | * to maintain our own transaction code, so there's that. */ |
| 506 | void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid) |
| 507 | { |
| 508 | wally_txid(tx->wtx, txid); |
| 509 | } |
| 510 | |
| 511 | /* Use the bitcoin_tx destructor to also free the wally_tx */ |
| 512 | static void bitcoin_tx_destroy(struct bitcoin_tx *tx) |
no test coverage detected