mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 05:47:59 -05:00
Move mixInLength below error handling
This commit is contained in:
@@ -148,10 +148,10 @@ func (d *DepositTree) getRoot() [32]byte {
|
||||
//nolint:unused
|
||||
func (d *DepositTree) pushLeaf(leaf [32]byte) error {
|
||||
var err error
|
||||
d.mixInLength++
|
||||
d.tree, err = d.tree.PushLeaf(leaf, DepositContractDepth)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
d.mixInLength++
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user