bitcoin-abc icon indicating copy to clipboard operation
bitcoin-abc copied to clipboard

Bug: Field "stakingrewards" is missing in getblocktemplate

Open MrKTOTO opened this issue 5 months ago • 3 comments

Hello dev team, I installed the node version 0.31.11, but in the getblocktemplate request with the parameter simplegbt=1 I do not receive the "stakingrewards" field, which is necessary for mining and creating a coinbase transaction. What could be the reasons for such behavior in the node?

Image

MrKTOTO avatar Sep 04 '25 22:09 MrKTOTO

If you just started the node this is normal. The node needs some time to connect the avalanche peers and determine the staking reward winner confidently, this is no different with simplegbt=1. Let me know if you still have it missing after a few minutes and please share your getavalancheinfo in this case.

Fabcien avatar Sep 04 '25 22:09 Fabcien

If you just started the node this is normal.

The thing is that the node has already been running for several hours. So that's clearly not the issue. I've also tried restarting and waiting a few hours.

Image

MrKTOTO avatar Sep 04 '25 22:09 MrKTOTO

Your node connection is the issue. As shown in your getavalancheinfo output your node does not connect to other avalanche peers (only 7 of them) and as a result is not able to use avalanche nor determine a staking reward winner.

You can use our Telegram node support group to get help fixing the issue (you can ping me from this group if you want to).

Fabcien avatar Sep 05 '25 06:09 Fabcien