mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 07:34:26 +01:00
Do not publish NewTransactionEvent if GetValidOutputs did not match with the network's.
This commit is contained in:
@@ -145,8 +145,10 @@ namespace BTCPayServer.Payments.Bitcoin
|
||||
if (evt.DerivationStrategy != null)
|
||||
{
|
||||
wallet.InvalidateCache(evt.DerivationStrategy);
|
||||
|
||||
foreach (var output in network.GetValidOutputs(evt))
|
||||
var validOutputs = network.GetValidOutputs(evt).ToList();
|
||||
if (!validOutputs.Any())
|
||||
break;
|
||||
foreach (var output in validOutputs)
|
||||
{
|
||||
var key = output.Item1.ScriptPubKey.Hash + "#" +
|
||||
network.CryptoCode.ToUpperInvariant();
|
||||
|
||||
Reference in New Issue
Block a user