public BlockPersister( IBlockRepository blockRepository, IBlockchainContext blockchainContext, IBlockHeaderPersister blockHeaderPersister, ITransactionPersister <Transaction> transactionPersister) { _blockRepository = blockRepository; _blockchainContext = blockchainContext; _blockHeaderPersister = blockHeaderPersister; _transactionPersister = transactionPersister; }
public BlockHeadersMessageHandler ( IBlockchainContext blockchainContext, IBlockHeaderPersister blockHeaderPersister, ILogger <BlockHeadersMessageHandler> logger ) { _blockchainContext = blockchainContext ?? throw new ArgumentNullException(nameof(blockchainContext)); _blockHeaderPersister = blockHeaderPersister ?? throw new ArgumentNullException(nameof(blockHeaderPersister)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }