routing: deep copy any transaciton we obtain from GetBlock call.

This commit is contained in:
Mohamed Awnallah
2024-01-11 17:51:09 +02:00
parent 2f04ce7c6e
commit 99908ed2dc
11 changed files with 20 additions and 16 deletions

View File

@@ -165,7 +165,7 @@ func (l *Lookout) processEpoch(epoch *chainntnfs.BlockEpoch,
hint := blob.NewBreachHintFromHash(&hash)
txHints = append(txHints, hint)
hintToTx[hint] = tx
hintToTx[hint] = tx.Copy()
}
// Query the database to see if any of the breach hints cause a match