mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
Do Not Copy State During Upgrade (#10102)
* no copy * no copy Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
52f1190b17
commit
af06bb9737
@ -95,7 +95,7 @@ func UpgradeToAltair(ctx context.Context, state state.BeaconState) (state.Beacon
|
|||||||
InactivityScores: make([]uint64, numValidators),
|
InactivityScores: make([]uint64, numValidators),
|
||||||
}
|
}
|
||||||
|
|
||||||
newState, err := statealtair.InitializeFromProto(s)
|
newState, err := statealtair.InitializeFromProtoUnsafe(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -82,5 +82,5 @@ func UpgradeToMerge(ctx context.Context, state state.BeaconState) (state.BeaconS
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return v3.InitializeFromProto(s)
|
return v3.InitializeFromProtoUnsafe(s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user