Skip to content

Commit 56208aa

Browse files
authored
Add more verbosity to fork digest mismatch (#14968)
1 parent b866a2c commit 56208aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

beacon-chain/sync/rpc_status.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (s *Service) validateStatusMessage(ctx context.Context, msg *pb.Status) err
295295
return err
296296
}
297297
if !bytes.Equal(forkDigest[:], msg.ForkDigest) {
298-
return p2ptypes.ErrWrongForkDigestVersion
298+
return fmt.Errorf("mismatch fork digest: expected %#x, got %#x: %w", forkDigest[:], msg.ForkDigest, p2ptypes.ErrWrongForkDigestVersion)
299299
}
300300
genesis := s.cfg.clock.GenesisTime()
301301
cp := s.cfg.chain.FinalizedCheckpt()

changelog/tt_fork_digest.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Ignored
2+
3+
- Add more debugging information to mismatch fork digest error message

0 commit comments

Comments
 (0)