-
Notifications
You must be signed in to change notification settings - Fork 719
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
[RPC][Tests] Don't throw when generate doesn't create all blocks (PoS) #1321
Conversation
927ce4d
to
1504db0
Compare
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.
Working properly 👌 , ACK 1504db0
1504db0
to
2201662
Compare
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.
re-acking after force push 2201662
UpdateTime is called only for PoW blocks, no need to check for TimeProtoV2
2201662
to
1eed11d
Compare
Rebased on master after #1299 merge. |
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.
Approved rebase.
…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
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 callsgenerate(1)
and increases mocktime (or adds asleep
) when the node can actually stake but can't find a valid kernel at the current time.