tuweni / org.apache.tuweni.eth.repository / BlockchainRepository / init

init

suspend fun init(blockBodyStore: KeyValueStore<Bytes, Bytes>, blockHeaderStore: KeyValueStore<Bytes, Bytes>, chainMetadata: KeyValueStore<Bytes, Bytes>, transactionReceiptsStore: KeyValueStore<Bytes, Bytes>, transactionStore: KeyValueStore<Bytes, Bytes>, stateStore: KeyValueStore<Bytes, Bytes>, blockchainIndex: BlockchainIndex, genesisBlock: Block, meter: Meter? = null): BlockchainRepository (source)

Initializes a blockchain repository with metadata, placing it in key-value stores.

Return
a new blockchain repository made from the metadata passed in parameter.