Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update MinerReward #187

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading