Skip to content

Commit b004d3b

Browse files
authored
Merge pull request #6 from heliaxdev/tiago/update-indexer-version
allow 1.2.0 or 1.2.1 masp indexers
2 parents 2918336 + fa1fdbd commit b004d3b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

masp_indexer_client.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,19 @@ func (m *MaspIndexerClient) ValidateVersion(invalidCommitNotErr bool) error {
7575
return err
7676
}
7777

78-
if health.Commit != "38093aca7bc8cd3bb03ef06ce139fe4e672b20ff" {
78+
if health.Commit != "38093aca7bc8cd3bb03ef06ce139fe4e672b20ff" &&
79+
health.Commit != "6d6d022588a56f7c836e485de257e93646cd7847" {
7980
if !invalidCommitNotErr {
8081
return fmt.Errorf(
81-
"using invalid commit %q, expected 38093aca7bc8cd3bb03ef06ce139fe4e672b20ff (1.2.0)",
82+
"using invalid masp indexer commit %q, expected 38093ac (1.2.0) or 6d6d022 (1.2.1)",
8283
health.Commit,
8384
)
8485
}
8586
if health.Commit == "" {
8687
health.Commit = "<unknown-commit>"
8788
}
8889
log.Println(
89-
"warning: masp indexer commit does not match release 1.2.0,",
90+
"warning: masp indexer commit does not match release 1.2.0 or 1.2.1,",
9091
m.maspIndexerApiV1,
9192
"is using",
9293
health.Commit,

migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (ctx *migrateEventsSyncCtx) migrateHeightTask(
560560

561561
if len(oldMaspDataRefs) != len(newMaspDataRefs) {
562562
ctx.reportErr(fmt.Errorf(
563-
"old masp data refs count (%d) does not match migrated refs count (%d), make sure your masp indexer endpoint is running 1.2.0",
563+
"old masp data refs count (%d) does not match migrated refs count (%d), make sure your masp indexer endpoint is running 1.2.x",
564564
len(oldMaspDataRefs),
565565
len(newMaspDataRefs),
566566
))

0 commit comments

Comments
 (0)