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

Include plotNFT rewards in get_farmed_amount #19245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wallentx
Copy link
Contributor

@wallentx wallentx commented Feb 9, 2025

Purpose:

chia get farm summary currently only returns values for OG plots.
Since the majority of people have long since switched to plotNFT plots, I'm not sure why pooling wallets are being excluded from this calculation.

Current Behavior:

chia rpc wallet get_farmed_amount

{
  "blocks_won": 114,
  "farmed_amount": 96752754128478,
  "farmer_reward_amount": 28500000000000,
  "fee_amount": 2754128478,
  "last_height_farmed": 3810216,
  "last_time_farmed": 1686871581,
  "pool_reward_amount": 68250000000000,
  "success": true
}

chia farm summary

Farming status: Farming
Total chia farmed: 96.752754128478
User transaction fees: 0.002754128478
Block rewards: 96.75
Last height farmed: 3810216
...

New Behavior:

chia rpc wallet get_farmed_amount

{
  "blocks_won": 114,
  "farmed_amount": 284002754128478,
  "farmer_reward_amount": 28500000000000,
  "fee_amount": 2754128478,
  "last_height_farmed": 6609397,
  "last_time_farmed": 1739076254,
  "pool_reward_amount": 255500000000000,
  "success": true
}

chia farm summary

Farming status: Farming
Total chia farmed: 284.002754128478
User transaction fees: 0.002754128478
Block rewards: 284.0
Last height farmed: 6609397
...

Testing Notes:

I don't know if the changed calculations here would result in some negative behavior elsewhere, like in the GUI.

@wallentx wallentx requested a review from a team as a code owner February 9, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants