Skip to content

Commit

Permalink
Fix cannot determine context bytes for unrecognized object
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Feb 12, 2025
1 parent 2f3b84e commit 0ccb06f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beacon-chain/sync/rpc_chunked_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func WriteBlockChunk(stream libp2pcore.Stream, tor blockchain.TemporalOracle, en
return err
}
obtainedCtx = digest[:]
case version.EPBS:
digest, err := forks.ForkDigestFromEpoch(params.BeaconConfig().EPBSForkEpoch, valRoot[:])
if err != nil {
return err
}
obtainedCtx = digest[:]
default:
return errors.Wrapf(ErrUnrecognizedVersion, "block version %d is not recognized", blk.Version())
}
Expand Down

0 comments on commit 0ccb06f

Please sign in to comment.