mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Persist data columns to store (#6255)
* Persist data columns (from das PR #5196)
This commit is contained in:
@@ -3661,16 +3661,15 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(_data_columns) = data_columns {
|
||||
// TODO(das): depends on https://github.com/sigp/lighthouse/pull/6073
|
||||
// if !data_columns.is_empty() {
|
||||
// debug!(
|
||||
// self.log, "Writing data_columns to store";
|
||||
// "block_root" => %block_root,
|
||||
// "count" => data_columns.len(),
|
||||
// );
|
||||
// ops.push(StoreOp::PutDataColumns(block_root, data_columns));
|
||||
// }
|
||||
if let Some(data_columns) = data_columns {
|
||||
if !data_columns.is_empty() {
|
||||
debug!(
|
||||
self.log, "Writing data_columns to store";
|
||||
"block_root" => %block_root,
|
||||
"count" => data_columns.len(),
|
||||
);
|
||||
ops.push(StoreOp::PutDataColumns(block_root, data_columns));
|
||||
}
|
||||
}
|
||||
|
||||
let txn_lock = self.store.hot_db.begin_rw_transaction();
|
||||
|
||||
Reference in New Issue
Block a user