Remove getheaderheight function from walletwrapper
MODIFY
HiddenWallet.Daemon/DaemonHub.cs
HiddenWallet.Daemon/DaemonHub.cs
@@ -16,8 +16,8 @@ namespace HiddenWallet.Daemon
public async Task GetHeaderHeightAsync()
{
- int hh = await Global.WalletWrapper.GetHeaderHeightAsync();
- NotificationBroadcaster.Instance.BroadcastHeaderHeight(hh.ToString());
+ var (Success, Height) = await Global.WalletWrapper.WalletJob.TryGetHeaderHeightAsync();
+ NotificationBroadcaster.Instance.BroadcastHeaderHeight(Height.Value.ToString());
}
public void TumblerStatusBroadcastRequest()

MODIFY
HiddenWallet.Daemon/Wrappers/WalletWrapper.cs
HiddenWallet.Daemon/Wrappers/WalletWrapper.cs
@@ -496,23 +496,5 @@ namespace HiddenWallet.Daemon.Wrappers
}
else return new FailureResponse { Message = "Wrong account" };
}
-
- public async Task<int> GetHeaderHeightAsync()
- {
- int hh = 0;
- if (WalletJob != null)
- {
- var result = await WalletJob.TryGetHeaderHeightAsync();
- var headerHeight = result.Height;
- if (result.Success)
- {
- if (headerHeight.Type == HeightType.Chain)
- {
- hh = headerHeight.Value;
- }
- }
- }
- return hh;
- }
}
}

Remove getheaderheight function from walletwrapper