Test cases that use bitcoind's p2p interface use NodeConnCB or a subclass to access the p2p interface. A lot of the test cases use a subclass of NodeConnCB and implement their own callbacks or helper methods. In many cases those local implementations are duplicates.
This PR adds sensible callbacks and helper functions to the base NodeConnCB class, and removes the subclass override methods. Some tests still require custom behaviour and so need to define or override some of the class methods.
The first commit adds the sensible default callbacks and helper methods to NodeConnCB. The second commit removes any duplicate implementations in the individual testcsases.
Net code change is ~ minus 300 lines