From 59bae2c3373f926ffd89723694a5bcba32e81771 Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 26 Mar 2020 12:41:32 +0100 Subject: [PATCH] ToHashSet --- BTCPayServer/Controllers/WalletsController.PSBT.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/WalletsController.PSBT.cs b/BTCPayServer/Controllers/WalletsController.PSBT.cs index 3ef04b66c..d91ff9850 100644 --- a/BTCPayServer/Controllers/WalletsController.PSBT.cs +++ b/BTCPayServer/Controllers/WalletsController.PSBT.cs @@ -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);