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:
Rusty Russell
2016-04-24 20:01:52 +09:30
parent 7ac29241ee
commit f24b73124a
6 changed files with 3 additions and 29 deletions

View File

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