Skip to content

Commit

Permalink
Merge pull request #5999 from filecoin-project/opt/add-PendingOwnerAd…
Browse files Browse the repository at this point in the history
…dress

opt: MinerInfo adds the PendingOwnerAddress field
  • Loading branch information
diwufeiwen authored Jun 2, 2023
2 parents 0a3ca90 + c440722 commit 1e7b022
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/submodule/chain/miner_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func (msa *minerStateAPI) StateMinerInfo(ctx context.Context, maddr address.Addr
SectorSize: minfo.SectorSize,
WindowPoStPartitionSectors: minfo.WindowPoStPartitionSectors,
ConsensusFaultElapsed: minfo.ConsensusFaultElapsed,
PendingOwnerAddress: minfo.PendingOwnerAddress,
Beneficiary: minfo.Beneficiary,
BeneficiaryTerm: &minfo.BeneficiaryTerm,
PendingBeneficiaryTerm: minfo.PendingBeneficiaryTerm,
Expand Down
1 change: 1 addition & 0 deletions venus-shared/api/chain/v0/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -3632,6 +3632,7 @@ Response:
"SectorSize": 34359738368,
"WindowPoStPartitionSectors": 42,
"ConsensusFaultElapsed": 10101,
"PendingOwnerAddress": "f01234",
"Beneficiary": "f01234",
"BeneficiaryTerm": {
"Quota": "0",
Expand Down
1 change: 1 addition & 0 deletions venus-shared/api/chain/v1/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -4891,6 +4891,7 @@ Response:
"SectorSize": 34359738368,
"WindowPoStPartitionSectors": 42,
"ConsensusFaultElapsed": 10101,
"PendingOwnerAddress": "f01234",
"Beneficiary": "f01234",
"BeneficiaryTerm": {
"Quota": "0",
Expand Down
2 changes: 2 additions & 0 deletions venus-shared/compatible-checks/api-diff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ github.com/filecoin-project/venus/venus-shared/api/chain/v0.FullNode <> github.c
- StateGetRandomnessFromBeacon
- StateGetRandomnessFromTickets
- StateListMessages
> StateMinerInfo {[func(context.Context, address.Address, types.TipSetKey) (types.MinerInfo, error) <> func(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error)] base=func out type: #0 input; nested={[types.MinerInfo <> api.MinerInfo] base=struct field; nested={[types.MinerInfo <> api.MinerInfo] base=exported fields count: 15 != 14; nested=nil}}}
+ StateMinerSectorSize
+ StateMinerWorkerAddress
- StateReadState
Expand Down Expand Up @@ -223,6 +224,7 @@ github.com/filecoin-project/venus/venus-shared/api/chain/v1.FullNode <> github.c
+ SetPassword
- Shutdown
> StateGetNetworkParams {[func(context.Context) (*types.NetworkParams, error) <> func(context.Context) (*api.NetworkParams, error)] base=func out type: #0 input; nested={[*types.NetworkParams <> *api.NetworkParams] base=pointed type; nested={[types.NetworkParams <> api.NetworkParams] base=struct field; nested={[types.NetworkParams <> api.NetworkParams] base=exported fields count: 7 != 6; nested=nil}}}}
> StateMinerInfo {[func(context.Context, address.Address, types.TipSetKey) (types.MinerInfo, error) <> func(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error)] base=func out type: #0 input; nested={[types.MinerInfo <> api.MinerInfo] base=struct field; nested={[types.MinerInfo <> api.MinerInfo] base=exported fields count: 15 != 14; nested=nil}}}
+ StateMinerSectorSize
+ StateMinerWorkerAddress
- SyncCheckBad
Expand Down
1 change: 1 addition & 0 deletions venus-shared/types/api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ type MinerInfo struct {
SectorSize abi.SectorSize
WindowPoStPartitionSectors uint64
ConsensusFaultElapsed abi.ChainEpoch
PendingOwnerAddress *address.Address
Beneficiary address.Address
BeneficiaryTerm *BeneficiaryTerm
PendingBeneficiaryTerm *PendingBeneficiaryChange
Expand Down

0 comments on commit 1e7b022

Please sign in to comment.