From 417480ffa8584e5582173ef10719bb629cd6136b Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Sun, 26 Jan 2020 01:19:50 +0800 Subject: [PATCH] fix bug (#4650) --- shared/stateutil/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/stateutil/validators.go b/shared/stateutil/validators.go index d5cac252359..d936defeb60 100644 --- a/shared/stateutil/validators.go +++ b/shared/stateutil/validators.go @@ -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 {