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

Put miner's fee transaction first on blocks #489

Merged
merged 5 commits into from
Dec 1, 2021

Conversation

dguenther
Copy link
Member

We added some code a while ago to always put the miner's fee transaction first on a block, but didn't test it sufficiently, so actually it was ending up at the end (but block.minersFee was still returning the first transaction). This branch fixes the order so that the miner's fee transaction always comes first, and is checked by the verifier

This will require a network reset.

@dguenther dguenther requested a review from a team as a code owner December 1, 2021 00:57
@NullSoldier NullSoldier merged commit eff7467 into staging Dec 1, 2021
@NullSoldier NullSoldier deleted the reorder-block-transactions branch December 1, 2021 08:05
NullSoldier added a commit that referenced this pull request Dec 1, 2021
* Put miner's fee transaction first on blocks

* Update ironfish/src/mining/director.test.slow.ts

Co-authored-by: Jason Spafford <nullprogrammer@gmail.com>

* Fix lint

* Fix typo

* Fix test failure

Co-authored-by: Jason Spafford <nullprogrammer@gmail.com>
NullSoldier added a commit that referenced this pull request Dec 1, 2021
* Put miner's fee transaction first on blocks

* Update ironfish/src/mining/director.test.slow.ts

Co-authored-by: Jason Spafford <nullprogrammer@gmail.com>

* Fix lint

* Fix typo

* Fix test failure

Co-authored-by: Jason Spafford <nullprogrammer@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants