ToHashSet

This commit is contained in:
Kukks 2020-03-26 12:41:32 +01:00
parent 89d9793692
commit 59bae2c337

View File

@ -181,7 +181,7 @@ namespace BTCPayServer.Controllers
{
//check that all the inputs we provided are still there and that there is at least one new(signed) input.
bool valid = false;
var existingInputs = psbt.Inputs.Select(input => input.PrevOut).ToList();
var existingInputs = psbt.Inputs.Select(input => input.PrevOut).ToHashSet();
foreach (var input in newPSBT.Inputs)
{
var existingInput = existingInputs.SingleOrDefault(point => point == input.PrevOut);