This commit is contained in:
Nishant Das
2020-01-26 01:19:50 +08:00
committed by terence tsao
parent dd5a3fe80d
commit 417480ffa8

View File

@@ -129,7 +129,7 @@ func (h *stateRootHasher) validatorRoot(validator *ethpb.Validator) ([32]byte, e
withdrawalBuf := make([]byte, 8)
binary.LittleEndian.PutUint64(withdrawalBuf, validator.WithdrawableEpoch)
copy(enc[113:121], exitBuf)
copy(enc[113:121], withdrawalBuf)
// Check if it exists in cache:
if h.rootsCache != nil {