Search in sources :

Example 6 with TransactionPoolAddResult

use of org.ethereum.core.TransactionPoolAddResult in project rskj by rsksmart.

the class TransactionGatewayTest method receiveTransaction_newTransaction_shouldAddAndBroadcast.

@Test
public void receiveTransaction_newTransaction_shouldAddAndBroadcast() {
    TransactionPoolAddResult transactionPoolAddResult = TransactionPoolAddResult.okPendingTransactions(Collections.singletonList(tx));
    receiveTransactionAndVerifyCalls(transactionPoolAddResult, 1);
}
Also used : TransactionPoolAddResult(org.ethereum.core.TransactionPoolAddResult) Test(org.junit.Test)

Aggregations

TransactionPoolAddResult (org.ethereum.core.TransactionPoolAddResult)6 Transaction (org.ethereum.core.Transaction)4 Test (org.junit.Test)4 RskAddress (co.rsk.core.RskAddress)3 Wallet (co.rsk.core.Wallet)2 ImmutableTransaction (org.ethereum.core.ImmutableTransaction)2 HashMapDB (org.ethereum.datasource.HashMapDB)2 CallArguments (org.ethereum.rpc.CallArguments)2 BridgeConstants (co.rsk.config.BridgeConstants)1 TestSystemProperties (co.rsk.config.TestSystemProperties)1 TransactionGateway (co.rsk.net.TransactionGateway)1 Constants (org.ethereum.config.Constants)1 Account (org.ethereum.core.Account)1 TransactionArguments (org.ethereum.core.TransactionArguments)1 TransactionPool (org.ethereum.core.TransactionPool)1 Ethereum (org.ethereum.facade.Ethereum)1