This commit is contained in:
Kukks
2023-05-24 13:21:08 +02:00
parent 3f2d0aeb7b
commit 1d2811a71f
2 changed files with 4 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
<PropertyGroup>
<Product>Wabisabi Coinjoin</Product>
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
<Version>1.0.43</Version>
<Version>1.0.44</Version>
</PropertyGroup>
<!-- Plugin development properties -->

View File

@@ -95,20 +95,19 @@ public class Nostr
new NostrSubscriptionFilter()
{
Kinds = new[] {Kind},
Since = DateTimeOffset.UtcNow.Subtract(TimeSpan.FromHours(1)),
ExtensionData = new Dictionary<string, JsonElement>()
{
["#type"] = JsonSerializer.SerializeToElement(new[] {TypeTagValue}),
["#network"] = JsonSerializer.SerializeToElement(new[] {network})
}
},
Limit = 1000
}
}, true, cts.Token).ToListAsync(cancellationToken);
nostrClient.Dispose();
return result.Where(@event =>
@event.PublicKey != ourPubKey &&
@event.CreatedAt >= DateTimeOffset.UtcNow.Subtract(TimeSpan.FromHours(1)) &&
@event.PublicKey != ourPubKey &&
@event.Verify() &&
@event.Tags.Any(tag =>
tag.TagIdentifier == EndpointTagIdentifier &&