Skip to content

Conversation

@random-zebra
Copy link

@random-zebra random-zebra commented Jan 15, 2020

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.

@random-zebra random-zebra self-assigned this Jan 15, 2020
@random-zebra random-zebra force-pushed the 2020_Tests_fix_validtime branch from 5bc1ba8 to 7b37d4c Compare January 15, 2020 21:27
@random-zebra random-zebra mentioned this pull request Jan 15, 2020
3 tasks
@random-zebra random-zebra force-pushed the 2020_Tests_fix_validtime branch 4 times, most recently from 79fabcc to f6274f2 Compare January 16, 2020 22:32
@Fuzzbawls Fuzzbawls added this to the 4.1.0 milestone Jan 18, 2020
@furszy
Copy link

furszy commented Jan 19, 2020

Needs rebase, #1277 merged.

@random-zebra random-zebra force-pushed the 2020_Tests_fix_validtime branch from f6274f2 to 6463949 Compare January 19, 2020 14:28
@random-zebra
Copy link
Author

Rebased on master.

@random-zebra random-zebra force-pushed the 2020_Tests_fix_validtime branch from 6463949 to 72d5a31 Compare January 19, 2020 20:34
@furszy
Copy link

furszy commented Jan 21, 2020

Reading the last commit, should change the staking flag startup value to false by default for regtest. Main regtest purpose is create blocks on demand, no need to run the miner thread if it will not be used.

@random-zebra
Copy link
Author

The same is true for ALL tests. No need to add it. It is already in the config file (check initialize_datadir in utils).

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7a8d755

@random-zebra
Copy link
Author

@furszy If we want, we can remove that from the config files too.
I've opened #1295 in case we want to go that way. So this can be merged, if there aren't other concerns.

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7a8d755

furszy added a commit that referenced this pull request Jan 21, 2020
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
@furszy furszy merged commit 7a8d755 into PIVX-Project:master Jan 21, 2020
furszy added a commit that referenced this pull request Jan 26, 2020
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
furszy added a commit that referenced this pull request Jan 27, 2020
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
wqking pushed a commit to wqking-temp/Vitae that referenced this pull request Jul 27, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants