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

Avian 4.1 release plan #169

Closed
22 of 23 tasks
alamshafil opened this issue Sep 12, 2022 · 5 comments
Closed
22 of 23 tasks

Avian 4.1 release plan #169

alamshafil opened this issue Sep 12, 2022 · 5 comments
Milestone

Comments

@alamshafil
Copy link
Contributor

alamshafil commented Sep 12, 2022

This issue tracks the work that needs to be done to release Avian 4.1.
Nothing here is final and is subject to CHANGE!

Tentative deadlines

  • Deadline for pull requests: 2022-09-23

MUST HAVE (delay without these having been merged)

COULD HAVE (non-critical for release)

Maintainer tasks for release

@alamshafil alamshafil added this to the v4.1.0 milestone Sep 12, 2022
@alamshafil alamshafil pinned this issue Sep 12, 2022
@alamshafil
Copy link
Contributor Author

4.1 is ready for release, building binaries now.

@alamshafil
Copy link
Contributor Author

4.1 has been released!

@alamshafil alamshafil unpinned this issue Oct 2, 2022
@crackfoo
Copy link

crackfoo commented Oct 6, 2022

Why does getblocktemplate complain:

error -1: createnewblock: testblockvalidity failed: bad-cb-amount (code 16)

wallet debug says

2022-10-05 22:38:26 ERROR: ConnectBlock(): coinbase pays too much (actual=262500000000 vs limit=250000000000)
2022-10-05 22:38:26 ERROR: TestBlockValidity: Consensus::ConnectBlock: bad-cb-amount (code 16)

but I'm not even submitting a block... just asking for the template....

@alamshafil
Copy link
Contributor Author

To properly assist you, make sure you running Avian 4.1 on commit 53947c4.

On my local node I was able to run the below without any issues:

  • getblocktemplate
  • getblocktemplate "{\"powalgo\": \"minotaurx\"}"
  • getblocktemplate "{\"powalgo\": \"x16rt\"}"

Keep in mind that dev fee is already subtracted from coinbasevalue, ex: 237500000000.

From the value 262500000000, it looks like 5% of 2500 (125) was added to coinbase subsidy of 2500 (2625).

It is odd that your gbt is adding to coinbase. This is the code that checks coinbase: (AreEnforcedValuesDeployed() is always true)

Avian/src/validation.cpp

Lines 2805 to 2811 in 53947c4

CAmount blockReward = nFees + GetBlockSubsidy(pindex->nHeight, chainparams.GetConsensus());
if (block.vtx[0]->GetValueOut(AreEnforcedValuesDeployed()) > blockReward)
return state.DoS(100,
error("ConnectBlock(): coinbase pays too much (actual=%d vs limit=%d)",
block.vtx[0]->GetValueOut(AreEnforcedValuesDeployed()), blockReward),
REJECT_INVALID, "bad-cb-amount");

I know this is not related to getting a block template but make sure your pool is properly configured to support the dev fee. (Keep in mind that the founder address is a P2SH multi-sig addr and do not subtract from coinbase.)
Yiimp example: mivanoski/yiimp@9cff829

If you are still experiencing this problem, make a new issue with additional information (if possible). I apologize for the inconvenience.

@alamshafil
Copy link
Contributor Author

To my understanding, getblocktemplate only performs TestBlockValidity() if the mode in the template request is set to proposal to check a block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants