Search in sources :

Example 1 with BlockProcessor

use of co.rsk.net.BlockProcessor in project rskj by rsksmart.

the class TxBuilderTest method createAndBroadcastTransaction.

@Test
public void createAndBroadcastTransaction() {
    SimpleEthereum rsk = new SimpleEthereum();
    BlockProcessor blockProcessor = Mockito.mock(BlockProcessor.class);
    TxBuilder builder = new TxBuilder(config, rsk, blockProcessor, (Repository) rsk.repository);
    BigInteger nonce = BigInteger.TEN;
    try {
        builder.createNewTx(nonce);
    } catch (InterruptedException ex) {
        Assert.fail();
    }
}
Also used : BlockProcessor(co.rsk.net.BlockProcessor) BigInteger(java.math.BigInteger) SimpleEthereum(org.ethereum.rpc.Simples.SimpleEthereum) Test(org.junit.Test)

Aggregations

BlockProcessor (co.rsk.net.BlockProcessor)1 BigInteger (java.math.BigInteger)1 SimpleEthereum (org.ethereum.rpc.Simples.SimpleEthereum)1 Test (org.junit.Test)1