bitcoin/bitcoin — pull request #4394 by laanwj (2014-06-23 15:44:53+00:00)
Title: qa/rpc_tests: Wait for handshake to complete in connect_nodes

This avoids a race condition in which the connection was made but the version handshake is not completed yet. In that case transactions won't be broadcasted to a peer yet, and the nodes will wait forever for their mempools to sync.