tuweni / org.apache.tuweni.eth.repository / BlockchainIndex / index

index

fun index(indexer: (BlockchainIndexWriter) -> Unit): Unit (source)

Provides a function to index elements and committing them. If an exception is thrown in the function, the write is rolled back.

Parameters

indexer - function indexing data to be committed