protected override async Task AddBlocksOnStart() { EthereumEcdsa ecdsa = new EthereumEcdsa(ChainSpec.ChainId, LimboLogs.Instance); await AddBlock( SignTransactions(ecdsa, TestItem.PrivateKeyA, 1, TxPriorityContract.SetPriority(TestItem.AddressA, FnSignature2, UInt256.One), TxPriorityContract.SetPriority(TestItem.AddressB, FnSignature, 10), TxPriorityContract.SetPriority(TestItem.AddressB, FnSignature2, 4), TxPriorityContract.SetMinGasPrice(TestItem.AddressB, FnSignature, 10), TxPriorityContract.SetMinGasPrice(TestItem.AddressB, FnSignature2, 4), TxPriorityContract.SetSendersWhitelist(TestItem.AddressA, TestItem.AddressB)) ); await AddBlock( SignTransactions(ecdsa, TestItem.PrivateKeyA, State.GetNonce(TestItem.PrivateKeyA.Address), // overrides for some of previous block values: TxPriorityContract.SetPriority(TestItem.AddressB, FnSignature, 3), TxPriorityContract.SetMinGasPrice(TestItem.AddressB, FnSignature, 2), TxPriorityContract.SetSendersWhitelist(TestItem.AddressA, TestItem.AddressC)) ); }
protected override Task AddBlocksOnStart() { EthereumEcdsa ecdsa = new EthereumEcdsa(ChainSpec.ChainId, LimboLogs.Instance); return(AddBlock( SignTransactions(ecdsa, TestItem.PrivateKeyA, TxPriorityContract.SetPriority(TestItem.AddressA, TxPriorityContract.Destination.FnSignatureEmpty, UInt256.One), TxPriorityContract.SetPriority(TestItem.AddressB, FnSignature, 3), TxPriorityContract.SetMinGasPrice(TestItem.AddressB, FnSignature, 2), TxPriorityContract.SetMinGasPrice(TestItem.AddressB, FnSignature, 4), TxPriorityContract.SetSendersWhitelist(TestItem.AddressA, TestItem.AddressB), TxPriorityContract.SetSendersWhitelist(TestItem.AddressA, TestItem.AddressC)) )); }