Exemple #1
0
 public void SetupChain()
 {
     _fx         = new DefaultStoreFixture();
     _blockChain = new BlockChain <DumbAction>(new NullPolicy <DumbAction>(), _fx.Store);
     for (var i = 0; i < 500; i++)
     {
         _blockChain.MineBlock(_fx.Address1).Wait();
     }
 }
Exemple #2
0
        public void SetupChain()
        {
            _fx         = new DefaultStoreFixture();
            _blockChain = new BlockChain <DumbAction>(
                new NullBlockPolicy <DumbAction>(),
                new VolatileStagePolicy <DumbAction>(),
                _fx.Store,
                _fx.StateStore,
                _fx.GenesisBlock);
            var key = new PrivateKey();

            for (var i = 0; i < 500; i++)
            {
                _blockChain.MineBlock(key).Wait();
            }
        }
Exemple #3
0
 public async Task <Block <DumbAction> > MineBlockEmpty()
 {
     return(await _blockChain.MineBlock(_fx.Address1));
 }
Exemple #4
0
 public Block <DumbAction> MineBlockEmpty()
 {
     return(_blockChain.MineBlock(_fx.Address1));
 }
Exemple #5
0
 public async Task <Block <DumbAction> > MineBlockEmpty()
 {
     return(await _blockChain.MineBlock(_privateKey));
 }