49 | @@ -48,6 +50,10 @@ def reconnect_all(self):
50 | self.connect_nodes(0, 2)
51 | self.connect_nodes(0, 3)
52 |
53 | + def mocktime_all(self, time):
54 | + for n in self.nodes:
55 | + n.setmocktime(time)
56 | +
Setting mock time for all nodes seems like it could potentially be useful in multiple functional tests. Maybe it could be added to BitcoinTestFramework rather than live in this functional test?
Possibly. I guess, if another test needs it, it should be trivial to move?
Edit: To extend on that,
- I is unclear whether another test will need this, so moving to the framework seems too early.
- The framework already has methods on the test node to deal with mocktime, so adding more will increase the complexity and bloat even more.
That's reasonable. I don't feel super strongly about it.