Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Feb 12, 2021

MarcoFalke added 2 commits February 12, 2021 18:13
…action

Stop initializing nStartupTime to system time. This is needed for many
things:

* It is making it harder to assert that fuzzing only uses mocked time.
* When using mocked time in the program arguments, nStartupTime will be
  incorrectly initialized to system time.
@maflcko maflcko added the Tests label Feb 12, 2021
@jonatack
Copy link
Member

Concept ACK, first skim of code looks pretty good.

@dhruv
Copy link
Contributor

dhruv commented Feb 12, 2021

Whoops, I think we crossed wires and I created #21165 - happy to close it if you prefer. I was able to accomplish the faster test without any C++ changes so might be easier to review.

@maflcko
Copy link
Member Author

maflcko commented Feb 12, 2021

Ah, thanks. Closing this one.

@maflcko maflcko closed this Feb 12, 2021
@maflcko maflcko deleted the 2102-mockTimeInit branch February 12, 2021 19:30
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants