BlockProcessor.storeBlock: write blobs to DB (#4854)

This commit is contained in:
henridf 2023-04-25 12:55:35 +02:00 committed by GitHub
parent 9b2c07c118
commit da6169bfe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from ../consensus_object_pools/blob_quarantine import
from ../validators/validator_monitor import
MsgSource, ValidatorMonitor, registerAttestationInBlock, registerBeaconBlock,
registerSyncAggregateInBlock
from ../beacon_chain_db import putBlobSidecar
export sszdump, signatures_batch
@ -493,7 +494,9 @@ proc storeBlock*(
# If the EL responded at all, we don't need to try again for a while
self[].lastPayload = signedBlock.message.slot
# TODO: store blobs in db
# write blobs now that block has been written.
for b in blobs:
self.consensusManager.dag.db.putBlobSidecar(b[])
let storeBlockTick = Moment.now()