Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public IotaApi(string url, INonceSeeker nonceSeeker, int minWeightMagnitude = 14)
     : this(new IriApi(url) { MinWeightMagnitude = minWeightMagnitude }, nonceSeeker)
 {
 }