diff --git a/chain/sminer.go b/chain/sminer.go index c7e4f2c..e8bc89e 100755 --- a/chain/sminer.go +++ b/chain/sminer.go @@ -191,7 +191,6 @@ func (c *chainClient) QueryRewards(puk []byte) (pattern.RewardsType, error) { reward.Total = rewards.TotalReward.String() reward.Claimed = rewards.RewardIssued.String() - reward.Available = rewards.CurrentlyAvailableReward.String() return reward, nil } diff --git a/core/pattern/pattern.go b/core/pattern/pattern.go index e0abf33..38acae2 100755 --- a/core/pattern/pattern.go +++ b/core/pattern/pattern.go @@ -304,14 +304,18 @@ type SpaceProofInfo struct { } type MinerReward struct { - TotalReward types.U128 - RewardIssued types.U128 - CurrentlyAvailableReward types.U128 - OrderList []RewardOrder + TotalReward types.U128 + RewardIssued types.U128 + OrderList []RewardOrder } type RewardOrder struct { - OrderReward types.U128 + ReceiveCount types.U8 + MaxCount types.U8 + Atonce types.Bool + OrderReward types.U128 + EachAmount types.U128 + LastReceiveBlock types.U32 } type FileMetadata struct { @@ -518,9 +522,8 @@ type TeeInfo struct { } type RewardsType struct { - Total string - Claimed string - Available string + Total string + Claimed string } type SegmentDataInfo struct {