コード例 #1
0
 public WalletWorker(Context context, WalletStore walletStore, WalletService walletService, MinerService minerService) : base(context)
 {
     this.walletStore   = walletStore;
     this.walletService = walletService;
     this.minerService  = minerService;
     this.blocksToCheck = new BlockingCollection <Block>(new ConcurrentQueue <Block>());
     this.Pubkeys       = new Lazy <Dictionary <PubKey, BitcoinPubKeyAddress> >(GetPubKeys);
 }
コード例 #2
0
        public WalletService(Context context, WalletStore walletStore, MinerService minerService) : base(context)
        {
            this.walletStore  = walletStore;
            this.minerService = minerService;
            this.chainIndex   = context.ChainIndex;

            // Set reserve amount not participating in network protection
            // If no parameters provided current setting is printed
            this.reserveBalance    = 0;
            this.coinbaseMaturity  = 50;
            this.minimumInputValue = 0;
        }
コード例 #3
0
 public BlockMiner(Context context, NodeConnectionService nodeConnectionService,
                   BlockSyncHub blockSyncHub, ChainService chainSyncService, WalletService walletService, WalletWorker walletWorker,
                   BlockReceiver blockReceiver, MinerService minerService) : base(context)
 {
     this.nodeConnectionService       = nodeConnectionService;
     this.chainIndex                  = context.ChainIndex;
     this.chainSyncService            = chainSyncService;
     this.walletService               = walletService;
     this.walletWorker                = walletWorker;
     this.blockReceiver               = blockReceiver;
     this.minerService                = minerService;
     this.BlockSyncHub                = blockSyncHub;
     this.minerSleep                  = 500; // GetArg("-minersleep", 500);
     this.LastCoinStakeSearchInterval = 0;
     this.LastCoinStakeSearchTime     = DateTime.UtcNow.ToUnixTimestamp();
 }
コード例 #4
0
 public GetDataReceiver(Context context, BlockSyncHub blockSyncHub, MinerService minerService) : base(context)
 {
     this.minerService = minerService;
     this.BlockSyncHub = blockSyncHub;
     this.chainIndex   = context.ChainIndex;
 }