You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like we have introduced unnecessary complexity into the code to accommodate manual block production, where we should be able to just advance fake time in our tests.
Note, the provided code snippet is from the PoA consensus provider (crates/services/consensus_module/poa/src/service.rs) and not the block producer (crates/services/producer/src/block_producer.rs). The block producer only seems to have this problem for the dry_run functionality, and takes the time as input in all other cases, so I will focus on doing this for the consensus provider.
Time is unreliable IO. We should be able to isolate an manipulate it using a fake/mock rather than being dependent on the system clock.
The text was updated successfully, but these errors were encountered: