Skip to content

Commit

Permalink
fix removal for pos (not ACP99 yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Mar 1, 2025
1 parent b7da868 commit bb1beb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/blockchaincmd/remove_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func removeValidatorSOV(
aggregatorAllowPrivatePeers,
aggregatorLogger,
validatorManagerAddress,
sc.UseACP99,
sc.PoA() && sc.UseACP99,
)
if err != nil {
return err
Expand Down
6 changes: 3 additions & 3 deletions pkg/validatormanager/removal.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func InitValidatorRemoval(
aggregatorExtraPeerEndpoints []info.Peer,
aggregatorAllowPrivatePeers bool,
aggregatorLogger logging.Logger,
initWithPos bool,
isPoS bool,
uptimeSec uint64,
force bool,
validatorManagerAddressStr string,
Expand Down Expand Up @@ -196,7 +196,7 @@ func InitValidatorRemoval(
}

signedUptimeProof := &warp.Message{}
if initWithPos {
if isPoS {
if uptimeSec == 0 {
uptimeSec, err = utils.GetL1ValidatorUptimeSeconds(rpcURL, nodeID)
if err != nil {
Expand Down Expand Up @@ -226,7 +226,7 @@ func InitValidatorRemoval(
ownerAddress,
ownerPrivateKey,
validationID,
initWithPos,
isPoS,
signedUptimeProof, // is empty for non-PoS
force,
useACP99,
Expand Down

0 comments on commit bb1beb5

Please sign in to comment.