コード例 #1
0
 public void GlobalSetup()
 {
     _blockchainService     = GetRequiredService <IBlockchainService>();
     _blockExecutingService = GetRequiredService <IBlockExecutingService>();
     _blockStateSets        = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
     _osTestHelper          = GetRequiredService <OSTestHelper>();
 }
コード例 #2
0
 public async Task GlobalSetup()
 {
     _blockchainService        = GetRequiredService <IBlockchainService>();
     _blockExecutingService    = GetRequiredService <IBlockExecutingService>();
     _transactionResultManager = GetRequiredService <ITransactionResultManager>();
     _blockStateSets           = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
     _osTestHelper             = GetRequiredService <OSTestHelper>();
 }
コード例 #3
0
 public BlockStateSetManger(IStateStore <VersionedState> versionedStates,
                            INotModifiedCachedStateStore <BlockStateSet> blockStateSets,
                            IStateStore <ChainStateInfo> chainStateInfoCollection, IOptionsSnapshot <ChainOptions> options)
 {
     _versionedStates          = versionedStates;
     _blockStateSets           = blockStateSets;
     _chainStateInfoCollection = chainStateInfoCollection;
     _chainId = options.Value.ChainId;
 }
コード例 #4
0
        public async Task GlobalSetup()
        {
            _blockchainService      = GetRequiredService <IBlockchainService>();
            _osTestHelper           = GetRequiredService <OSTestHelper>();
            _minerService           = GetRequiredService <IMinerService>();
            _blockStateSets         = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
            _transactionManager     = GetRequiredService <ITransactionManager>();
            _transactionPoolService = GetRequiredService <ITransactionPoolService>();

            _transactions = new List <Transaction>();
            _chain        = await _blockchainService.GetChainAsync();
        }
コード例 #5
0
        public void GlobalSetup()
        {
            _blockchainService     = GetRequiredService <IBlockchainService>();
            _blockExecutingService = GetRequiredService <IBlockExecutingService>();
            _minerService          = GetRequiredService <IMinerService>();
            _blockStateSets        = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
            _osTestHelper          = GetRequiredService <OSTestHelper>();

            _prepareTransactions     = new List <Transaction>();
            _systemTransactions      = new List <Transaction>();
            _cancellableTransactions = new List <Transaction>();
            _keyPairs = new List <ECKeyPair>();
        }
コード例 #6
0
        public async Task GlobalSetup()
        {
            _chains             = GetRequiredService <IBlockchainStore <Chain> >();
            _blockStateSets     = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
            _chainManager       = GetRequiredService <IChainManager>();
            _blockManager       = GetRequiredService <IBlockManager>();
            _blockchainService  = GetRequiredService <IBlockchainService>();
            _blockAttachService = GetRequiredService <IBlockAttachService>();
            _transactionManager = GetRequiredService <ITransactionManager>();
            _osTestHelper       = GetRequiredService <OSTestHelper>();

            _chain = await _blockchainService.GetChainAsync();
        }
コード例 #7
0
 public BlockchainExecutedDataManager(IStateStore <VersionedState> versionedStates,
                                      INotModifiedCachedStateStore <BlockStateSet> blockStateSets, IBlockStateSetManger blockStateSetManger) :
     base(versionedStates, blockStateSets)
 {
     _blockStateSetManger = blockStateSetManger;
 }
コード例 #8
0
 public BlockchainStateManager(IStateStore <VersionedState> versionedStates,
                               INotModifiedCachedStateStore <BlockStateSet> blockStateSets) : base(versionedStates, blockStateSets)
 {
 }
コード例 #9
0
 public BlockchainStateBaseManager(IStateStore <VersionedState> versionedStates,
                                   INotModifiedCachedStateStore <BlockStateSet> blockStateSets)
 {
     _versionedStates = versionedStates;
     _blockStateSets  = blockStateSets;
 }