DNA
DNA copied to clipboard
change network connect way
- change getaddr request handle. If receive getaddr request, randomly select some address and send addr response. At most send 8 address.
- change addr response handle When receive addr message, save the addresses in address list
- If the connection is less than MaxOutboundCnt, select addresses from address list and connect them.
- Disable reconnect function
- If the connection more than max connect peers, disconnect one node.