Skip to content

Commit 1036009

Browse files
authored
Merge pull request #534 from ethpandaops/pk910/publish-releases
publish releases
2 parents 688fafa + 9a446e4 commit 1036009

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
8383
id: create_release
8484
with:
85-
draft: true
85+
draft: false
8686
prerelease: false
8787
release_name: "v${{ inputs.version }}"
8888
tag_name: "v${{ inputs.version }}"

handlers/index.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,11 @@ func buildIndexPageData() (*models.IndexPageData, time.Duration) {
303303
bpoIdx++
304304

305305
bpoEpoch := phase0.Epoch(0)
306+
bpoTime := blobSchedule.Timestamp
306307
if blobSchedule.Timestamp.After(networkGenesis.GenesisTime) {
307308
bpoEpoch = chainState.EpochOfSlot(chainState.TimeToSlot(blobSchedule.Timestamp))
309+
} else {
310+
bpoTime = networkGenesis.GenesisTime
308311
}
309312

310313
forkVersion := chainState.GetForkVersionAtEpoch(bpoEpoch)
@@ -318,7 +321,7 @@ func buildIndexPageData() (*models.IndexPageData, time.Duration) {
318321
Name: fmt.Sprintf("BPO%d", bpoIdx),
319322
Epoch: uint64(bpoEpoch),
320323
Version: nil,
321-
Time: uint64(blobSchedule.Timestamp.Unix()),
324+
Time: uint64(bpoTime.Unix()),
322325
Active: currentEpoch >= bpoEpoch,
323326
Type: "bpo",
324327
MaxBlobsPerBlock: &blobSchedule.Schedule.Max,

0 commit comments

Comments
 (0)