diff --git a/nimbus/p2p/chain.nim b/nimbus/p2p/chain.nim index df054ec1d..600a76993 100644 --- a/nimbus/p2p/chain.nim +++ b/nimbus/p2p/chain.nim @@ -63,3 +63,7 @@ method persistBlocks*(c: Chain, headers: openarray[BlockHeader], bodies: openarr c.db.persistReceipts(vmState.receipts) transaction.commit() + +method getStateDb*(c: Chain): TrieDatabaseRef {.gcsafe.} = + c.db.db +