Merge pull request #9440 from filecoin-project/gstuart/fix-miner-info-for-beneficiary
fix: state: Return beneficiary info from miner state Info()
This commit is contained in:
commit
fc59d2b48b
@ -413,6 +413,10 @@ func (s *state{{.v}}) Info() (MinerInfo, error) {
|
|||||||
SectorSize: info.SectorSize,
|
SectorSize: info.SectorSize,
|
||||||
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
|
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
|
||||||
ConsensusFaultElapsed: {{if (ge .v 2)}}info.ConsensusFaultElapsed{{else}}-1{{end}},
|
ConsensusFaultElapsed: {{if (ge .v 2)}}info.ConsensusFaultElapsed{{else}}-1{{end}},
|
||||||
|
{{if (ge .v 9)}}
|
||||||
|
Beneficiary: info.Beneficiary,
|
||||||
|
BeneficiaryTerm: info.BeneficiaryTerm,
|
||||||
|
PendingBeneficiaryTerm: info.PendingBeneficiaryTerm,{{end}}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mi, nil
|
return mi, nil
|
||||||
|
@ -382,6 +382,10 @@ func (s *state9) Info() (MinerInfo, error) {
|
|||||||
SectorSize: info.SectorSize,
|
SectorSize: info.SectorSize,
|
||||||
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
|
WindowPoStPartitionSectors: info.WindowPoStPartitionSectors,
|
||||||
ConsensusFaultElapsed: info.ConsensusFaultElapsed,
|
ConsensusFaultElapsed: info.ConsensusFaultElapsed,
|
||||||
|
|
||||||
|
Beneficiary: info.Beneficiary,
|
||||||
|
BeneficiaryTerm: info.BeneficiaryTerm,
|
||||||
|
PendingBeneficiaryTerm: info.PendingBeneficiaryTerm,
|
||||||
}
|
}
|
||||||
|
|
||||||
return mi, nil
|
return mi, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user