-
Notifications
You must be signed in to change notification settings - Fork 725
[Tests][Bug] Fix staking status in generate_pos() #1278
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
[Tests][Bug] Fix staking status in generate_pos() #1278
Conversation
5bc1ba8 to
7b37d4c
Compare
79fabcc to
f6274f2
Compare
|
Needs rebase, #1277 merged. |
"validtime" is not returned from getstakingstatus anymore (nor it was needed).
f6274f2 to
6463949
Compare
|
Rebased on master. |
6463949 to
72d5a31
Compare
|
Reading the last commit, should change the |
|
The same is true for ALL tests. No need to add it. It is already in the config file (check |
Fuzzbawls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7a8d755
furszy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7a8d755
7a8d755 [Tests] Remove '-staking' from extra-args (random-zebra) 72d5a31 [Tests] Fix/Update mining_pos_coldstaking test (random-zebra) 5ffa6b5 [Trivial] Rename mintablecoins --> stakeablecoins (random-zebra) e781cd0 [Cleanup] zPIV Don't validate Accumulator Checkpoints anymore (random-zebra) 5b192e0 [Tests][Bug] Fix staking status in generate_pos() (random-zebra) Pull request description: This is based on top of #1276 and #1277 which should be reviewed before. `generate_pos` framework function relies on the output of `getstakingstatus` RPC which was recently changed. Since #1245, "validtime" is not returned anymore (nor it was ever really needed here). Only things that we need in `generate_pos` are "walletunlocked" and "mintablecoins" (renamed "stakeablecoins"). "enoughcoins" is going to be removed in #1277 , and "haveconnections" is not required on regtest. This also updates coldstaking test. ACKs for top commit: Fuzzbawls: ACK 7a8d755 furszy: ACK 7a8d755 Tree-SHA512: 0f45d8b3880d8d88258861fc85c04e0c62a834cede8991e1370afcaef05a2fb714a4441e201d0bdfd89251628e92aa51496182b8088917a8f3a9b740a21272f6
799e3ad [Tests] Fix block version on RegTest (random-zebra) 00aae54 [Core][Cleanup] PoS: remove extra signature + IncrementExtraNonce (random-zebra) 389094f [Core] Remove StakeV1 in kernel and miner (random-zebra) Pull request description: This removes the old StakeV1 function and does some minor optimizations in the miner code (removing redundant signature and IncrementExtraNonce calls). This is based on top of the following three pull requests and will be rebased after their merge into master. So, they should be reviewed before this one. - [x] #1276 - [x] #1277 - [x] #1278 ACKs for top commit: furszy: Staking working properly, ACK 799e3ad Fuzzbawls: ACK 799e3ad Tree-SHA512: a3cde86fc3a7cdad39d8d322dbcc0da1e34d044c4f320700605a9952e67788c825b53516e5ff452e37cde127aaf902416168dc6384fe62954d336efe7aea23eb
9575319 [Tests] Set '-staking' disabled by default on RegTest (random-zebra) Pull request description: Ref: #1278 (comment) Hardcoded default `false` value, instead of having it in the config file for the test nodes. ACKs for top commit: Fuzzbawls: ACK 9575319 furszy: ACK 9575319 Tree-SHA512: 609f4eee57ab9e32a03a88cf014c407348d89f89bbaf6f56187a1bf20e458b7c83d76220f8c047427cd7319cf8ad4b6ff71a4aca06c51b71c6a3ab56efa7cf88
9575319460da26dc329b1785420df6c1f5924d3b [Tests] Set '-staking' disabled by default on RegTest (random-zebra) Pull request description: Ref: PIVX-Project/PIVX#1278 (comment) Hardcoded default `false` value, instead of having it in the config file for the test nodes. ACKs for top commit: Fuzzbawls: ACK 9575319460da26dc329b1785420df6c1f5924d3b furszy: ACK 9575319 Tree-SHA512: 609f4eee57ab9e32a03a88cf014c407348d89f89bbaf6f56187a1bf20e458b7c83d76220f8c047427cd7319cf8ad4b6ff71a4aca06c51b71c6a3ab56efa7cf88
This is based on top of #1276 and #1277 which should be reviewed before.
generate_posframework function relies on the output ofgetstakingstatusRPC which was recently changed.Since #1245, "validtime" is not returned anymore (nor it was ever really needed here).
Only things that we need in
generate_posare "walletunlocked" and "mintablecoins" (renamed "stakeablecoins")."enoughcoins" is going to be removed in #1277 , and "haveconnections" is not required on regtest.
This also updates coldstaking test.