fix for put operations
This commit is contained in:
parent
b6e89eb7e3
commit
1ba8948466
|
@ -819,17 +819,17 @@ proc putDataColumnSidecar*(
|
||||||
db: BeaconChainDB,
|
db: BeaconChainDB,
|
||||||
value: DataColumnSidecar) =
|
value: DataColumnSidecar) =
|
||||||
let block_root = hash_tree_root(value.signed_block_header.message)
|
let block_root = hash_tree_root(value.signed_block_header.message)
|
||||||
db.blobs.putSZSSZ(columnkey(block_root, value.index), value)
|
db.columns.putSZSSZ(columnkey(block_root, value.index), value)
|
||||||
|
|
||||||
proc delBlobSidecar*(
|
proc delBlobSidecar*(
|
||||||
db: BeaconChainDB,
|
db: BeaconChainDB,
|
||||||
root: Eth2Digest, index: BlobIndex): bool =
|
root: Eth2Digest, index: BlobIndex): bool =
|
||||||
db.blobs.del(blobkey(root, index)).expectDb()
|
db.columns.del(blobkey(root, index)).expectDb()
|
||||||
|
|
||||||
proc delDataColumnSidecar*(
|
proc delDataColumnSidecar*(
|
||||||
db: BeaconChainDB,
|
db: BeaconChainDB,
|
||||||
root: Eth2Digest, index: ColumnIndex): bool =
|
root: Eth2Digest, index: ColumnIndex): bool =
|
||||||
db.blobs.del(columnkey(root, index)).expectDb()
|
db.columns.del(columnkey(root, index)).expectDb()
|
||||||
|
|
||||||
proc updateImmutableValidators*(
|
proc updateImmutableValidators*(
|
||||||
db: BeaconChainDB, validators: openArray[Validator]) =
|
db: BeaconChainDB, validators: openArray[Validator]) =
|
||||||
|
|
Loading…
Reference in New Issue