public FullNodeTrustedBroadcastService(IBroadcastService innerBroadcast, IBlockExplorerService explorer, IRepository repository, FullNodeWalletCache cache, Tracker tracker, TumblingState tumblingState) { if (innerBroadcast == null) { throw new ArgumentNullException(nameof(innerBroadcast)); } if (repository == null) { throw new ArgumentNullException(nameof(repository)); } if (explorer == null) { throw new ArgumentNullException(nameof(explorer)); } if (tracker == null) { throw new ArgumentNullException(nameof(tracker)); } if (cache == null) { throw new ArgumentNullException(nameof(cache)); } if (tumblingState == null) { throw new ArgumentNullException(nameof(tumblingState)); } _Repository = repository; _Broadcaster = innerBroadcast; TrackPreviousScriptPubKey = true; _BlockExplorer = explorer; _Tracker = tracker; _Cache = cache; this.tumblingState = tumblingState; }
public FullNodeWalletCache(IRepository repository, TumblingState tumblingState) { if (repository == null) { throw new ArgumentNullException("repository"); } if (tumblingState == null) { throw new ArgumentNullException("tumblingState"); } _Repo = repository; this.tumblingState = tumblingState; }
public FullNodeTrustedBroadcastService( IBroadcastService innerBroadcaster, IBlockExplorerService explorer, IRepository repository, FullNodeWalletCache cache, Tracker tracker, TumblingState tumblingState) { Broadcaster = innerBroadcaster ?? throw new ArgumentNullException(nameof(innerBroadcaster)); BlockExplorer = explorer ?? throw new ArgumentNullException(nameof(explorer)); Repository = repository ?? throw new ArgumentNullException(nameof(repository)); Cache = cache ?? throw new ArgumentNullException(nameof(cache)); Tracker = tracker ?? throw new ArgumentNullException(nameof(tracker)); TumblingState = tumblingState ?? throw new ArgumentNullException(nameof(tumblingState)); TrackPreviousScriptPubKey = true; }
public FullNodeBlockExplorerService(FullNodeWalletCache cache, IRepository repo, TumblingState tumblingState) { if (repo == null) { throw new ArgumentNullException("repo"); } if (cache == null) { throw new ArgumentNullException("cache"); } if (tumblingState == null) { throw new ArgumentNullException("tumblingState"); } _Repo = repo; _Cache = cache; this.tumblingState = tumblingState; }
public FullNodeBroadcastService(FullNodeWalletCache cache, IRepository repository, TumblingState tumblingState) { Cache = cache ?? throw new ArgumentNullException(nameof(cache)); Repository = repository ?? throw new ArgumentNullException(nameof(repository)); TumblingState = tumblingState ?? throw new ArgumentNullException(nameof(tumblingState)); BlockExplorerService = new FullNodeBlockExplorerService(cache, tumblingState); }
public FullNodeWalletService(TumblingState tumblingState) { TumblingState = tumblingState ?? throw new ArgumentNullException(nameof(tumblingState)); }
public FullNodeBlockExplorerService(FullNodeWalletCache cache, TumblingState tumblingState) { Cache = cache ?? throw new ArgumentNullException(nameof(cache)); TumblingState = tumblingState ?? throw new ArgumentNullException(nameof(tumblingState)); }
public FullNodeWalletService(TumblingState tumblingState, string walletName, string accountName) { this.tumblingState = tumblingState; this.walletName = walletName; this.accountName = accountName; }
public FullNodeBroadcastService(FullNodeWalletCache cache, IRepository repository, TumblingState tumblingState) { if (repository == null) { throw new ArgumentNullException(nameof(repository)); } if (tumblingState == null) { throw new ArgumentNullException(nameof(tumblingState)); } _Repository = repository; _Cache = cache; _BlockExplorerService = new FullNodeBlockExplorerService(cache, repository, tumblingState); }