Search in sources :

Example 1 with StorableBlock

use of com.codingchili.ethereumingest.model.StorableBlock in project ethereum-ingest by codingchili.

the class BlockService method startImport.

private CompositeFuture startImport(EthBlock fullBlock) {
    StorableBlock block = new StorableBlock(fullBlock.getBlock());
    listener.onImportStarted(block.getHash(), block.getNumber());
    return CompositeFuture.all(importBlocks(block), importTx(block, getTransactionList(fullBlock)));
}
Also used : StorableBlock(com.codingchili.ethereumingest.model.StorableBlock)

Aggregations

StorableBlock (com.codingchili.ethereumingest.model.StorableBlock)1