Example #1
0
            protected override async Task AddBlocksOnStart()
            {
                await AddBlock();

                GeneratedTransaction tx = Nethermind.Core.Test.Builders.Build.A.GeneratedTransaction.WithData(new byte[] { 0, 1 })
                                          .SignedAndResolved(GetPrivateKey(1)).WithChainId(105).WithGasPrice(0).WithValue(0).TestObject;

                await AddBlock(tx);
                await AddBlock(BuildSimpleTransaction.WithNonce(1).TestObject, BuildSimpleTransaction.WithNonce(2).TestObject);
            }
Example #2
0
 protected virtual async Task AddBlocksOnStart()
 {
     await AddBlock();
     await AddBlock(BuildSimpleTransaction.WithNonce(0).TestObject);
     await AddBlock(BuildSimpleTransaction.WithNonce(1).TestObject, BuildSimpleTransaction.WithNonce(2).TestObject);
 }