Skip to content

Commit 907681b

Browse files
committed
fix
1 parent 3833be5 commit 907681b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func TestAddFlags(t *testing.T) {
112112
assertFlagValue(t, flags, FlagRPCEnableDAVisualization, DefaultConfig().RPC.EnableDAVisualization)
113113

114114
// Count the number of flags we're explicitly checking
115-
expectedFlagCount := 65 // Update this number if you add more flag checks above
115+
expectedFlagCount := 66 // Update this number if you add more flag checks above
116116

117117
// Get the actual number of flags (both regular and persistent)
118118
actualFlagCount := 0

pkg/sync/sync_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func (syncService *SyncService[H]) fetchAndVerifyTrustedHeader(ctx context.Conte
441441

442442
// Verify the hash matches
443443
actualHash := trusted.Hash().String()
444-
if actualHash != syncService.trustedHeaderHash || actualHash != syncService.trustedDataHash {
444+
if actualHash != syncService.trustedHeaderHash && actualHash != syncService.trustedDataHash {
445445
return fmt.Errorf("trusted header hash mismatch at height %d: expected %s or %s, got %s",
446446
syncService.trustedHeight, syncService.trustedHeaderHash, syncService.trustedDataHash, actualHash)
447447
}

0 commit comments

Comments
 (0)