Skip to content

Commit

Permalink
update MinerReward (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Jan 30, 2024
1 parent d58fb4d commit 98edbac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion chain/sminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
19 changes: 11 additions & 8 deletions core/pattern/pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -518,9 +522,8 @@ type TeeInfo struct {
}

type RewardsType struct {
Total string
Claimed string
Available string
Total string
Claimed string
}

type SegmentDataInfo struct {
Expand Down

0 comments on commit 98edbac

Please sign in to comment.