forked from Qortal/qortal
Reworked networking execute-produce-consume threading. Some networking task were wrongly performed during 'produce' phase, and some producing was happening in 'consume' phase (also corrected). Peer connection tasks are rate-limited to 1 per second to reduce CPU thrashing. Show P2P listen port in logs on startup. Tests for general purpose ExecuteProduceConsume class to cover both random task scenario and mass-ping scenario.