Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
0
 public async Task <Block <DumbAction> > MineBlockEmpty()
 {
     return(await _blockChain.MineBlock(_fx.Address1));
 }
Ejemplo n.º 4
0
 public Block <DumbAction> MineBlockEmpty()
 {
     return(_blockChain.MineBlock(_fx.Address1));
 }
Ejemplo n.º 5
0
 public async Task <Block <DumbAction> > MineBlockEmpty()
 {
     return(await _blockChain.MineBlock(_privateKey));
 }