filecoin-project / eudico

lotus, but also other things
Other
19 stars 14 forks source link

Validator struct cleanup #256

Closed sergefdrv closed 2 years ago

sergefdrv commented 2 years ago

Related Issues

none

Proposed Changes

The Subnet field in the Validator structure contains duplicate information that can be easily obtained from the context. Since this structure in used as a part of the subnet actor state, it seems desirable to get rid of that duplication.

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

sergefdrv commented 2 years ago

@dnkolegov I decided to keep the validator string format as is because the code will anyway be re-implemented in Lotus.

dnkolegov commented 2 years ago

@dnkolegov I decided to keep the validator string format as is because the code will anyway be re-implemented in Lotus.

But the string contains "/root" subnet name and the Validator type doesn't. So it is not clear for a new reader. At least, let's add a comment.

sergefdrv commented 2 years ago

@dnkolegov I decided to keep the validator string format as is because the code will anyway be re-implemented in Lotus.

But the string contains "/root" subnet name and the Validator type doesn't. So it is not clear for a new reader. At least, let's add a comment.

Well, I better remove the subnet part from the string format then.