public HttpSafeMonitor(Safe safe, int addressCount) : base(safe.Network) { AssertNetwork(safe.Network); AddressCount = addressCount; BaseSafe = safe; Safe = new HttpSafe(this); _qBitNinjaWalletClient = Client.GetWalletClient(QBitNinjaWalletName); _qBitNinjaWalletClient.CreateIfNotExists().Wait(); StartInitializingQBitNinjaWallet(); }
public HttpKeyRingMonitor(string baseAddress, KeyRing keyRing, int addressCount) : base(baseAddress, keyRing.Network) { AssertNetwork(keyRing.Network); AddressCount = addressCount; BaseKeyRing = keyRing; KeyRing = new HttpKeyRing(this); _periodicUpdate = new PeriodicUpdate(() => { if (_syncProgressPercent == 100) { UpdateKeyRingHistoryAndBalanceInfo(); } }); _qBitNinjaWalletClient = Client.GetWalletClient(QBitNinjaWalletName); _qBitNinjaWalletClient.CreateIfNotExists().Wait(); StartInitializingQBitNinjaWallet(); }