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

Attempt to change the block reward address fails #48

Closed
danieljperry opened this issue Sep 27, 2022 · 2 comments
Closed

Attempt to change the block reward address fails #48

danieljperry opened this issue Sep 27, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@danieljperry
Copy link

My simulator has a wallet with the prefarm and a few block rewards:

Chia wallet show
Wallet height: 8
Sync status: Synced
Balances, fingerprint: 3446212044

Chia Wallet:
   -Total Balance:         21000012.0 txch (21000012000000000000 mojo)
   -Pending Total Balance: 21000012.0 txch (21000012000000000000 mojo)
   -Spendable:             21000012.0 txch (21000012000000000000 mojo)
   -Type:                  STANDARD_WALLET
   -Wallet ID:             1

Attempt to farm a block with a different reward address:

cdv sim farm -a txch1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqm6ksh7qddh
Farmed 1 Transaction blocks
Block Height is now: 9

The original wallet still received the farming reward:

chia wallet show
Wallet height: 9
Sync status: Synced
Balances, fingerprint: 3446212044

Chia Wallet:
   -Total Balance:         21000014.0 txch (21000014000000000000 mojo)
   -Pending Total Balance: 21000014.0 txch (21000014000000000000 mojo)
   -Spendable:             21000014.0 txch (21000014000000000000 mojo)
   -Type:                  STANDARD_WALLET
   -Wallet ID:             1
@danieljperry danieljperry added the bug Something isn't working label Sep 27, 2022
@danieljperry
Copy link
Author

The RPC command works as expected:
chia rpc full_node farm_block '{"address": "txch1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqm6ksh7qddh"}'

The reward for the block farmed with this command goes to the correct address.

@jack60612
Copy link
Contributor

I can't seem to replicate this, I think your wallet is just receiving the block reward from the previous block.
When you called farm_block using the rpc, you forgot to request a transaction block, so the reward for the previous block was not included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants