diff --git a/src/Netstr/Views/Home/Index.cshtml b/src/Netstr/Views/Home/Index.cshtml
index daa0497..ee92264 100644
--- a/src/Netstr/Views/Home/Index.cshtml
+++ b/src/Netstr/Views/Home/Index.cshtml
@@ -41,10 +41,13 @@
Software |
@Model.RelayInformation.Software |
-
- Environment |
- @Model.Environment |
-
+ @if (!string.IsNullOrEmpty(Model.Environment))
+ {
+
+ Environment |
+ @Model.Environment |
+
+ }
diff --git a/src/Netstr/appsettings.json b/src/Netstr/appsettings.json
index 94d8a0e..2e6c109 100644
--- a/src/Netstr/appsettings.json
+++ b/src/Netstr/appsettings.json
@@ -29,10 +29,10 @@
},
"Limits": {
"MaxPayloadSize": 524288,
- "MaxInitialLimit": 100,
+ "MaxInitialLimit": 1000,
"MinPowDifficulty": 0,
"MaxFilters": 20,
- "MaxSubscriptions": 30,
+ "MaxSubscriptions": 50,
"MaxSubscriptionIdLength": 128,
"MaxSubscriptionLimit": 1000,
"MaxEventTags": 1000,
@@ -46,7 +46,7 @@
"RelayInformation": {
"Name": "netstr.io",
"Description": "A nostr relay",
- "PublicKey": "npub1q84c9lheynjl33u6ha5ulfdd25yw0p90w2zqx6f23w6cjrn7w76s373p35",
+ "PublicKey": "01eb82fef924e5f8c79abf69cfa5ad5508e784af728403692a8bb5890e7e77b5",
"Contact": "bezysoftware@outlook.com",
"SupportedNips": [ 1, 2, 4, 9, 11, 13, 17, 40, 42, 45, 70 ],
"Version": "v0.0.0"
diff --git a/src/Netstr/wwwroot/favicon.ico b/src/Netstr/wwwroot/favicon.ico
new file mode 100644
index 0000000..c341ffa
Binary files /dev/null and b/src/Netstr/wwwroot/favicon.ico differ
diff --git a/test/Netstr.Tests/NIPs/01.feature b/test/Netstr.Tests/NIPs/01.feature
index 724e5d6..40b80e9 100644
--- a/test/Netstr.Tests/NIPs/01.feature
+++ b/test/Netstr.Tests/NIPs/01.feature
@@ -1,4 +1,4 @@
-Feature: NIP-01
+Feature: NIP-01
Defines the basic protocol that should be implemented by everybody.
Background:
@@ -20,21 +20,21 @@ Scenario: Invalid messages are discarded, valid ones accepted
| Kinds |
| 1 |
And Bob publishes events
- | Id | Content | Kind | CreatedAt | Signature | Tags |
- | ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | Hello 1 | 1 | 1722337838 | | |
- | a6d166e834e78827af0770f31f15b13a772f281ad880f43ce12c24d4e3d0e346 | Hello 1 | 1 | 1722337838 | Invalid | |
- | 9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296 | Hi ' \" \b \t \r \n | 1 | 1722337838 | | |
- | 50ed63c449df67d89e9964a27a26abbf214ca155b03915067a5a0f75618802bb | Hello | 1 | 1722337838 | | [[]] |
+ | Id | Content | Kind | CreatedAt | Signature | Tags |
+ | ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | Hello 1 | 1 | 1722337838 | | |
+ | a6d166e834e78827af0770f31f15b13a772f281ad880f43ce12c24d4e3d0e346 | Hello 1 | 1 | 1722337838 | Invalid | |
+ | bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396 | Hi ' \" \b \t \r \n 🎉 #nostr | 1 | 1722337838 | | |
+ | 50ed63c449df67d89e9964a27a26abbf214ca155b03915067a5a0f75618802bb | Hello | 1 | 1722337838 | | [[]] |
Then Bob receives messages
| Type | Id | Success |
| OK | ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | false |
| OK | a6d166e834e78827af0770f31f15b13a772f281ad880f43ce12c24d4e3d0e346 | false |
- | OK | 9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296 | true |
+ | OK | bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396 | true |
| OK | 50ed63c449df67d89e9964a27a26abbf214ca155b03915067a5a0f75618802bb | false |
And Alice receives a message
| Type | Id | EventId |
| EOSE | abcd | |
- | EVENT | abcd | 9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296 |
+ | EVENT | abcd | bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396 |
Scenario: Newly subscribed client receives matching events, EOSE and future events
Bob publishes events which are stored by the relay before any subscription exists.
diff --git a/test/Netstr.Tests/NIPs/01.feature.cs b/test/Netstr.Tests/NIPs/01.feature.cs
index 292e76d..9a840ba 100644
--- a/test/Netstr.Tests/NIPs/01.feature.cs
+++ b/test/Netstr.Tests/NIPs/01.feature.cs
@@ -168,8 +168,8 @@ public void InvalidMessagesAreDiscardedValidOnesAccepted()
"Invalid",
""});
table5.AddRow(new string[] {
- "9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296",
- "Hi \' \\\" \\b \\t \\r \n",
+ "bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396",
+ "Hi \' \\\" \\b \\t \\r \n 🎉 #nostr",
"1",
"1722337838",
"",
@@ -198,7 +198,7 @@ public void InvalidMessagesAreDiscardedValidOnesAccepted()
"false"});
table6.AddRow(new string[] {
"OK",
- "9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296",
+ "bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396",
"true"});
table6.AddRow(new string[] {
"OK",
@@ -218,7 +218,7 @@ public void InvalidMessagesAreDiscardedValidOnesAccepted()
table7.AddRow(new string[] {
"EVENT",
"abcd",
- "9a6b4cefcd17f3bf7fb03c02da044c628836a118c47d5b92503c1d2bdb796296"});
+ "bb5d2fe5b2c16c676d87ef446fa38581b9fa45e2e50ba89568664abf4e1d1396"});
#line 34
testRunner.And("Alice receives a message", ((string)(null)), table7, "And ");
#line hidden
diff --git a/test/Netstr.Tests/NIPs/Types.cs b/test/Netstr.Tests/NIPs/Types.cs
index d3d6191..afa1229 100644
--- a/test/Netstr.Tests/NIPs/Types.cs
+++ b/test/Netstr.Tests/NIPs/Types.cs
@@ -1,4 +1,4 @@
-using Netstr.Extensions;
+using Netstr.Json;
using Netstr.Messaging.Models;
using System.Net.WebSockets;
using System.Text.Json;