Store fewer orphan tx by default, add -maxorphantx option
There is no reason to store thousands of orphan transactions;
normally an orphan's parents will either be broadcast or
mined reasonably quickly.
This pull drops the maximum number of orphans from 10,000 down
to 100, and adds a command-line option (-maxorphantx) that is
just like -maxorphanblocks to override the default.
strUsage+=" -dbcache=<n> "+strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"),nMinDbCache,nMaxDbCache,nDefaultDbCache)+"\n";
strUsage+=" -dbcache=<n> "+strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"),nMinDbCache,nMaxDbCache,nDefaultDbCache)+"\n";
strUsage+=" -loadblock=<file> "+_("Imports blocks from external blk000??.dat file")+""+_("on startup")+"\n";
strUsage+=" -loadblock=<file> "+_("Imports blocks from external blk000??.dat file")+""+_("on startup")+"\n";
strUsage+=" -maxorphanblocks=<n> "+strprintf(_("Keep at most <n> unconnectable blocks in memory (default: %u)"),DEFAULT_MAX_ORPHAN_BLOCKS)+"\n";
strUsage+=" -maxorphanblocks=<n> "+strprintf(_("Keep at most <n> unconnectable blocks in memory (default: %u)"),DEFAULT_MAX_ORPHAN_BLOCKS)+"\n";
strUsage+=" -maxorphantx=<n> "+strprintf(_("Keep at most <n> unconnectable transactions in memory (default: %u)"),DEFAULT_MAX_ORPHAN_TRANSACTIONS)+"\n";
strUsage+=" -par=<n> "+strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"),-(int)boost::thread::hardware_concurrency(),MAX_SCRIPTCHECK_THREADS,DEFAULT_SCRIPTCHECK_THREADS)+"\n";
strUsage+=" -par=<n> "+strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"),-(int)boost::thread::hardware_concurrency(),MAX_SCRIPTCHECK_THREADS,DEFAULT_SCRIPTCHECK_THREADS)+"\n";