diff --git a/Plugins/BTCPayServer.Plugins.NIP05/BTCPayServer.Plugins.NIP05.csproj b/Plugins/BTCPayServer.Plugins.NIP05/BTCPayServer.Plugins.NIP05.csproj index 732a5a2..0506f8c 100644 --- a/Plugins/BTCPayServer.Plugins.NIP05/BTCPayServer.Plugins.NIP05.csproj +++ b/Plugins/BTCPayServer.Plugins.NIP05/BTCPayServer.Plugins.NIP05.csproj @@ -11,7 +11,7 @@ Nostr Allows you to verify your nostr account with NIP5 and zap like the rest of the crazies - 1.1.0 + 1.1.1 diff --git a/Plugins/BTCPayServer.Plugins.NIP05/Views/Nip5/Edit.cshtml b/Plugins/BTCPayServer.Plugins.NIP05/Views/Nip5/Edit.cshtml index 5836bce..b1e8a74 100644 --- a/Plugins/BTCPayServer.Plugins.NIP05/Views/Nip5/Edit.cshtml +++ b/Plugins/BTCPayServer.Plugins.NIP05/Views/Nip5/Edit.cshtml @@ -36,7 +36,7 @@
- +

OPTIONALLY, provide the private key to your pubkey so that zaps are signed directly by you as proof of receipt. Supports hex and nsec. Will be converted to hex once saved.

diff --git a/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs b/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs index ee6a490..249978d 100644 --- a/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs +++ b/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs @@ -136,27 +136,31 @@ public class Zapper : IHostedService } - var waitingToken = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - waitingToken.CancelAfter(TimeSpan.FromMinutes(2)); - while (!waitingToken.IsCancellationRequested) - { - if (_pendingZapEvents.Count > 10) - { - waitingToken.Cancel(); - } - else - { - try - { - await Task.Delay(100, waitingToken.Token); - } - catch (TaskCanceledException e) - { - break; - } - } - } + await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken); + //we used to have some waiting logic so that we dont open a websocket to every relay for every individual zap only. + //but people need their instant gratification so we removed it. + // var waitingToken = CancellationTokenSource.CreateLinkedTokenSource(); + // waitingToken.CancelAfter(TimeSpan.FromSeconds(5)); + // while (!waitingToken.IsCancellationRequested) + // { + // if (_pendingZapEvents.Count > 10) + // { + // waitingToken.Cancel(); + // } + // else + // { + // try + // { + // + // await Task.Delay(100, waitingToken.Token); + // } + // catch (TaskCanceledException e) + // { + // break; + // } + // } + // } } }