Skip to content

Commit

Permalink
set default values
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqjasoria committed Jan 14, 2025
1 parent c7dc5bf commit 1580311
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,21 @@ private void SetMaxAndTargetBlobCount(ChainSpec chainSpec, ReleaseSpec spec, ulo
{
spec.TargetBlobCount = blobCount.Target;
spec.MaxBlobCount = blobCount.Max;
spec.BlobBaseFeeUpdateFraction = blobCount.BaseFeeUpdateFraction;
if (blobCount.BaseFeeUpdateFraction == 0)
{
if (fork.Name == "Cancun")
{
spec.BlobBaseFeeUpdateFraction = Eip4844Constants.BlobGasPriceUpdateFractionCancun;
} else if (fork.Name == "Prague")
{
spec.BlobBaseFeeUpdateFraction = Eip4844Constants.BlobGasPriceUpdateFractionPrague;
}
}
else
{
spec.BlobBaseFeeUpdateFraction = blobCount.BaseFeeUpdateFraction;
}

}
else
{
Expand Down

0 comments on commit 1580311

Please sign in to comment.