コード例 #1
0
 public VotingService(BlockchainContext dbContext, WalletService walletService, MinerService minerService,
                      P2PNetwork p2PNetwork)
 {
     _dbContext     = dbContext;
     _walletService = walletService;
     _minerService  = minerService;
     _p2PNetwork    = p2PNetwork;
 }
コード例 #2
0
 public MinerService(BlockChainService blockChainService,
                     TransactionPoolService transactionPoolService,
                     WalletService walletService,
                     TransactionService transactionService,
                     P2PNetwork p2PNetwork)
 {
     _blockChainService      = blockChainService;
     _transactionPoolService = transactionPoolService;
     _transactionService     = transactionService;
     _walletService          = walletService;
     _p2pNetwork             = p2PNetwork;
 }