net: Use mockable time for ping/pong, add tests

This commit is contained in:
MarcoFalke
2020-04-14 13:24:18 -04:00
parent faab4aaf2f
commit fa3365430c
9 changed files with 166 additions and 34 deletions

View File

@@ -30,7 +30,10 @@ class BIP68Test(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 2
self.extra_args = [
["-acceptnonstdtxn=1"],
[
"-acceptnonstdtxn=1",
"-peertimeout=9999", # bump because mocktime might cause a disconnect otherwise
],
["-acceptnonstdtxn=0"],
]