Skip to content

Commit 6fedbb0

Browse files
authored
Merge pull request #380 from hack-a-chain-software/develop
Main Deploy
2 parents c9cfbb1 + 0fa85a7 commit 6fedbb0

File tree

65 files changed

+2107
-2675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2107
-2675
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![Lint](https://github.com/hack-a-chain-software/indexer-kadena/actions/workflows/lint.yml/badge.svg)](https://github.com/hack-a-chain-software/indexer-kadena/actions/workflows/lint.yml)
55

66
- [`@kadena-indexer/indexer`](indexer/README.md): The indexer package, which is responsible for scanning and storing blocks for Kadena blockchain.
7-
- [`@kadena-indexer/terraform`](terraform/README.md): The Terraform configuration for provisioning the infrastructure required to run the indexer and the node.
87
- [`@kadena-indexer/backfill`](backfill/README.md): The backfill package, which is responsible for backfilling the indexer data.
98

109
## Requirements

backfill/Dockerfile.creationtime

Lines changed: 0 additions & 11 deletions
This file was deleted.

backfill/Dockerfile.indexes

Lines changed: 0 additions & 11 deletions
This file was deleted.

backfill/Dockerfile.middle-backfill

Lines changed: 0 additions & 11 deletions
This file was deleted.

backfill/Dockerfile.migrator

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM golang:1.23.3 AS builder
2+
WORKDIR /app
3+
COPY . .
4+
RUN go mod download
5+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o db-migrator ./db-migrator/db-migrator.go
6+
7+
FROM scratch
8+
WORKDIR /app
9+
COPY ./global-bundle.pem ./global-bundle.pem
10+
COPY --from=builder /app/db-migrator .
11+
CMD ["./db-migrator"]
File renamed without changes.

backfill/fix-creationtime/fix-creationtime.go

Lines changed: 0 additions & 114 deletions
This file was deleted.

backfill/fix-order-index/fix-order-index.go

Lines changed: 0 additions & 142 deletions
This file was deleted.

backfill/main.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ func main() {
1919
go config.StartMemoryMonitoring()
2020
cut := fetch.FetchCut()
2121
ChainId := env.ChainId
22-
minHeights := config.GetMinHeights(env.Network)
23-
SyncMinHeight := minHeights[ChainId]
24-
process.StartBackfill(cut.Height, cut.Hash, ChainId, SyncMinHeight, pool)
22+
23+
var effectiveSyncMinHeight int
24+
if env.SyncMinHeight > 0 {
25+
effectiveSyncMinHeight = env.SyncMinHeight
26+
} else {
27+
chainGenesisHeights := config.GetMinHeights(env.Network)
28+
effectiveSyncMinHeight = chainGenesisHeights[ChainId]
29+
}
30+
31+
process.StartBackfill(cut.Height, cut.Hash, ChainId, effectiveSyncMinHeight, pool)
2532
}

0 commit comments

Comments
 (0)