public void GlobalSetup()
 {
     _blockchainService     = GetRequiredService <IBlockchainService>();
     _blockExecutingService = GetRequiredService <IBlockExecutingService>();
     _blockStateSets        = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
     _osTestHelper          = GetRequiredService <OSTestHelper>();
 }
Exemplo n.º 2
0
 public async Task GlobalSetup()
 {
     _blockchainService        = GetRequiredService <IBlockchainService>();
     _blockExecutingService    = GetRequiredService <IBlockExecutingService>();
     _transactionResultManager = GetRequiredService <ITransactionResultManager>();
     _blockStateSets           = GetRequiredService <INotModifiedCachedStateStore <BlockStateSet> >();
     _osTestHelper             = GetRequiredService <OSTestHelper>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
        }
        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>();
        }
Exemplo n.º 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();
        }
Exemplo n.º 7
0
 public BlockchainExecutedDataManager(IStateStore <VersionedState> versionedStates,
                                      INotModifiedCachedStateStore <BlockStateSet> blockStateSets, IBlockStateSetManger blockStateSetManger) :
     base(versionedStates, blockStateSets)
 {
     _blockStateSetManger = blockStateSetManger;
 }
Exemplo n.º 8
0
 public BlockchainStateManager(IStateStore <VersionedState> versionedStates,
                               INotModifiedCachedStateStore <BlockStateSet> blockStateSets) : base(versionedStates, blockStateSets)
 {
 }
Exemplo n.º 9
0
 public BlockchainStateBaseManager(IStateStore <VersionedState> versionedStates,
                                   INotModifiedCachedStateStore <BlockStateSet> blockStateSets)
 {
     _versionedStates = versionedStates;
     _blockStateSets  = blockStateSets;
 }