mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
Remove txid normalization.
Since any transaction with all segregated-witness inputs is non-malleable, and all our transactions are that, we can remove normalized txids. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -876,7 +876,7 @@ static void watch_commit_outputs(struct peer *peer, const struct bitcoin_tx *tx)
|
||||
varint_t i;
|
||||
struct sha256_double txid;
|
||||
|
||||
normalized_txid(tx, &txid);
|
||||
bitcoin_txid(tx, &txid);
|
||||
for (i = 0; i < tx->output_count; i++) {
|
||||
watch_txo(peer, peer, &txid, i, our_commit_spent,
|
||||
peer->us.commit);
|
||||
|
||||
Reference in New Issue
Block a user