public IotaApi(IriApi iriApi, INonceSeeker nonceSeeker) { if (iriApi == null) { throw new ArgumentNullException(nameof(iriApi)); } if (nonceSeeker == null) { throw new ArgumentNullException(nameof(nonceSeeker)); } this.iriApi = iriApi; this.MaxAddressIndex = 500; this.Depth = 9; this.RebroadcastMaximumPowTime = 20000; this.NonceSeeker = nonceSeeker; }
public IotaApi(IriApi iriApi) : this(iriApi, new LocalNonceSeeker(iriApi.MinWeightMagnitude)) { }