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:
11 files changed
+20
-16
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user