Fix conflicts rebasing eip4844
This commit is contained in:
parent
b2abec5d35
commit
56c84178f2
@ -3024,7 +3024,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
|||||||
// Only store blobs at the data availability boundary, minus any configured epochs
|
// Only store blobs at the data availability boundary, minus any configured epochs
|
||||||
// margin, or younger (of higher epoch number).
|
// margin, or younger (of higher epoch number).
|
||||||
if block_epoch >= import_boundary {
|
if block_epoch >= import_boundary {
|
||||||
if let Some(blobs) = blobs? {
|
if let Some(blobs) = blobs {
|
||||||
if blobs.blobs.len() > 0 {
|
if blobs.blobs.len() > 0 {
|
||||||
//FIXME(sean) using this for debugging for now
|
//FIXME(sean) using this for debugging for now
|
||||||
info!(self.log, "Writing blobs to store"; "block_root" => ?block_root);
|
info!(self.log, "Writing blobs to store"; "block_root" => ?block_root);
|
||||||
|
@ -688,12 +688,10 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
let serve_blobs_from_slot = if start_epoch < data_availability_boundary {
|
let serve_blobs_from_slot = if start_epoch < data_availability_boundary {
|
||||||
// Attempt to serve from the earliest block in our database, falling back to the data
|
// Attempt to serve from the earliest block in our database, falling back to the data
|
||||||
// availability boundary
|
// availability boundary
|
||||||
let oldest_blob_slot = self
|
let oldest_blob_slot =
|
||||||
.chain
|
self.chain.store.get_blob_info().oldest_blob_slot.unwrap_or(
|
||||||
.store
|
data_availability_boundary.start_slot(T::EthSpec::slots_per_epoch()),
|
||||||
.get_blob_info()
|
);
|
||||||
.map(|blob_info| blob_info.oldest_blob_slot)
|
|
||||||
.unwrap_or(data_availability_boundary.start_slot(T::EthSpec::slots_per_epoch()));
|
|
||||||
|
|
||||||
debug!(
|
debug!(
|
||||||
self.log,
|
self.log,
|
||||||
|
Loading…
Reference in New Issue
Block a user