Skip to content

Fix fixed stake reward check - #369

Merged
aguycalled merged 6 commits into
masterfrom
fix-stake-reward-check
Dec 15, 2018
Merged

aguycalled merged 6 commits into
masterfrom
fix-stake-reward-check

Conversation

@aguycalled

Copy link
Copy Markdown
Member

The stake reward, even if fixed, includes the fees of the transactions included in the block.

The removed check does not take the fees making the network reject all the blocks which include a transaction. At this point of the function, the total amount of fees is still unknown.

This is safely removed as the check is properly done in line 3322.

The stake reward, even if fixed, includes the fees of the transactions included in the block.

The removed check does not take the fees making the network reject all the blocks which include a transaction. At this point, the total amount of fees is still unknown.

This is safely removed as the check is properly done in line 3322.
aguycalled pushed a commit to aguycalled/navcoin-core that referenced this pull request Dec 14, 2018
- Bumps version to v4.5.1
- Sets a fork height at 2722100
- Requires blocks to signal version bit 21 when fork happens.
Merge after navcoin#367 navcoin#369 and navcoin#370 or when its related issues are fixed.
@aguycalled aguycalled mentioned this pull request Dec 14, 2018
@proletesseract

Copy link
Copy Markdown
Member

im building and checking this now. going to write a couple more python tests to make sure its covered also.

@proletesseract proletesseract self-assigned this Dec 15, 2018
test tx sends after soft fork
file permission fix
adding blockcount param
corrected object calling rpc command
@proletesseract

Copy link
Copy Markdown
Member

@aguycalled do we want to write a test that tries to construct a block which has an incorrect stake amount and test whether it is accepted on the network, or are we confident this is covered correctly by line 3322?

remove print
@aguycalled

Copy link
Copy Markdown
Member Author

Line 3322 covers correctly the check, but we need general tests for our whole POS implementation, there's none currently.

@aguycalled
aguycalled merged commit 88a9060 into master Dec 15, 2018
aguycalled pushed a commit to skreener/navcoin-core that referenced this pull request Feb 3, 2019
- Bumps version to v4.5.1
- Sets a fork height at 2722100
- Requires blocks to signal version bit 21 when fork happens.
Merge after navcoin#367 navcoin#369 and navcoin#370 or when its related issues are fixed.
aguycalled pushed a commit to skreener/navcoin-core that referenced this pull request Feb 3, 2019
* Fix fixed stake reward check

The stake reward, even if fixed, includes the fees of the transactions included in the block.

The removed check does not take the fees making the network reject all the blocks which include a transaction. At this point, the total amount of fees is still unknown.

This is safely removed as the check is properly done in line 3322.

* test tx sends after soft fork

* file permission fix

* adding blockcount param

* corrected object calling rpc command

* remove print
@aguycalled
aguycalled deleted the fix-stake-reward-check branch April 30, 2019 19:35
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.

2 participants