Merge pull request #8372 from mohamedawnallah/deep-copy-transactions-GetBlock

routing: deep copy any transaction we obtain from `GetBlock` call.
This commit is contained in:
Yong authored and GitHub committed 2024-01-15 20:13:00 +08:00
commit 26c466aa80
11 files changed
+20 -16

No files matched your search

+1 -1
View File
@@ -1894,7 +1894,7 @@ func (r *ChannelRouter) fetchFundingTx(
chanID.TxIndex, numTxns-1, chanID)
}
return fundingBlock.Transactions[chanID.TxIndex], nil
return fundingBlock.Transactions[chanID.TxIndex].Copy(), nil
}
// routingMsg couples a routing related routing topology update to the