Skip to content

Commit

Permalink
removing dir change in logic
Browse files Browse the repository at this point in the history
  • Loading branch information
fighting-dreamer committed Oct 21, 2024
1 parent 4f7938a commit 163416c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions shared/services/config/stadernode-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,11 @@ func (cfg *StaderNodeConfig) GetSpRewardCyclePath(cycle int64, daemon bool) stri
}

func (cfg *StaderNodeConfig) GetFeeRecipientFilePath() string {
validatorDirName := "validators"
if cfg.parent.IsSSVMode {
validatorDirName = "presign"
}
if !cfg.parent.IsNativeMode {
return filepath.Join(DaemonDataPath, validatorDirName, FeeRecipientFilename)
return filepath.Join(DaemonDataPath, "validators", FeeRecipientFilename)
}

return filepath.Join(cfg.DataPath.Value.(string), validatorDirName, NativeFeeRecipientFilename)
return filepath.Join(cfg.DataPath.Value.(string), "validators", NativeFeeRecipientFilename)
}

func (cfg *StaderNodeConfig) GetClaimData(cycles []*big.Int) ([]*big.Int, []*big.Int, [][][32]byte, error) {
Expand Down

0 comments on commit 163416c

Please sign in to comment.