start and stop blocknotifier on the backend
MODIFY
WalletWasabi.Backend/Global.cs
WalletWasabi.Backend/Global.cs
@@ -140,6 +140,8 @@ namespace WalletWasabi.Backend
var node = await Node.ConnectAsync(network, endPoint, nodeConnectionParameters);
// We have to find it, because it's cloned by the node and not perfectly cloned (event handlers cannot be cloned.)
BlockNotifier = new BlockNotifier(TimeSpan.FromSeconds(7), RpcClient, node.Behaviors.Find<TrustedNodeNotifyingBehavior>());
+ BlockNotifier.Start();
+
try
{
Logger.LogInfo("TCP Connection succeeded, handshaking...");

MODIFY
WalletWasabi.Backend/Startup.cs
WalletWasabi.Backend/Startup.cs
@@ -103,6 +103,12 @@ namespace WalletWasabi.Backend
Logger.LogInfo($"{nameof(global.IndexBuilderService)} is disposed.");
}
+ if (global.BlockNotifier != null)
+ {
+ await global.BlockNotifier.StopAsync();
+ Logger.LogInfo($"{nameof(global.BlockNotifier)} is disposed.");
+ }
+
if (global.RoundConfigWatcher != null)
{
await global.RoundConfigWatcher.StopAsync();

start and stop blocknotifier on the backend