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

[RPC][Tests] Don't throw when generate doesn't create all blocks (PoS) #1321

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

random-zebra
Copy link

Just return the list of hashes for the blocks generated.
This affects only "live" usage of regtest wallet, as the functional tests use the utility function generate_pos which calls generate(1) and increases mocktime (or adds a sleep) when the node can actually stake but can't find a valid kernel at the current time.

furszy
furszy previously approved these changes Feb 3, 2020
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.

Working properly 👌 , ACK 1504db0

furszy
furszy previously approved these changes Feb 4, 2020
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.

re-acking after force push 2201662

@random-zebra
Copy link
Author

Rebased on master after #1299 merge.

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.

Approved rebase.

furszy added a commit that referenced this pull request Feb 12, 2020
…l blocks (PoS)

1eed11d [RPC] Don't throw in 'generate' when some PoS blocks cannot be created (random-zebra)
ba1d930 [PoS] Skip prevblocktime check for regtest in 'Stake' (random-zebra)
9f614b7 [Core] Remove extra check in UpdateTime (random-zebra)

Pull request description:

  Just return the list of hashes for the blocks generated.
  This affects only "live" usage of regtest wallet, as the functional tests use the utility function `generate_pos` which calls `generate(1)` and increases mocktime (or adds a `sleep`) when the node can actually stake but can't find a valid kernel at the current time.

Top commit has no ACKs.

Tree-SHA512: b921e16721eb4439bc04c1f5ffb0b9f587b82b2ebff23e05ad85fa88ce80a4ee2c5c9fca25119885e365ef417c8a0c06d7010d9841c9bb364a1e5d30bcd8e00f
@furszy furszy merged commit 1eed11d into PIVX-Project:master Feb 12, 2020
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.

None yet

2 participants