Search in sources :

Example 1 with NodeBlockProcessor

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

the class WorldDslProcessor method processBlockProcessCommand.

private void processBlockProcessCommand(DslCommand cmd) {
    NodeBlockProcessor blockProcessor = world.getBlockProcessor();
    int nblocks = cmd.getArity();
    for (int k = 0; k < nblocks; k++) {
        String name = cmd.getArgument(k);
        Block block = world.getBlockByName(name);
        blockProcessor.processBlock(null, block);
    }
}
Also used : NodeBlockProcessor(co.rsk.net.NodeBlockProcessor) Block(org.ethereum.core.Block)

Aggregations

NodeBlockProcessor (co.rsk.net.NodeBlockProcessor)1 Block (org.ethereum.core.Block)1