Merge #11345: [tests] Check connectivity before sending in assumevalid.py
commit44e1fd926cfb0df0fbd8c41de8cd65ed8d5d6e18
authorMarcoFalke <falke.marco@gmail.com>
Mon, 18 Sep 2017 14:02:24 +0000 (18 16:02 +0200)
committerMarcoFalke <falke.marco@gmail.com>
Mon, 18 Sep 2017 14:02:29 +0000 (18 16:02 +0200)
treedff709f2879bed21102efadb27162405394130d7
parentd6d2c8503c4039b682196d83a67dc28359c10c5c
parente9e9391083721ca9733cc00a1907384f83b6435e
Merge #11345: [tests] Check connectivity before sending in assumevalid.py

e9e939108 [tests] Check connectivity before sending in assumevalid.py (John Newbery)

Pull request description:

  assumevalid.py would try to send over a closed P2P connection in a loop,
  hitting the following failure many times:

  `TestFramework.mininode (ERROR): Cannot send message. No connection to node!`

  The test still passed, but this is a lot of noise in the test log.

  Just check that the connection is open before trying to send.

Tree-SHA512: 6faf2ce5717de976fed1b5c863bc8d17e785928690f833d5bf175178f95d39f455635a844fe7e0dfdad83ae779dd45bc6e4ed89a9467d8482c5be73b55095c8d