Exemplo 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;
        }
Exemplo n.º 2
0
 public IotaApi(IriApi iriApi)
     : this(iriApi, new LocalNonceSeeker(iriApi.MinWeightMagnitude))
 {
 }