aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-07-12 14:22:32 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-07-26 14:24:19 -0400
commitc555400ca134991e39d5e3a565fcd2215abe56f6 (patch)
treeaa7732ac591c53f222e755ec5fc636bf6d417e63 /src/init.cpp
parent29c8fb0d9330fc3c001fd228c30c8f2c44886d11 (diff)
downloadbitcoin-c555400ca134991e39d5e3a565fcd2215abe56f6.tar.xz
When creating new blocks, sort 'paid' area by fee-per-kb
Modify CreateNewBlock so that instead of processing all transactions in priority order, process the first 27K of transactions in priority order and then process the rest in fee-per-kilobyte order. This is the first, minimal step towards better a better fee-handling system for both miners and end-users; this patch should be easy to backport to the old versions of Bitcoin, and accomplishes the most important goal-- allow users to "buy their way in" to blocks using transaction fees.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 83870f9f8c..35230095a8 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -279,6 +279,11 @@ std::string HelpMessage()
" -checkblocks=<n> " + _("How many blocks to check at startup (default: 2500, 0 = all)") + "\n" +
" -checklevel=<n> " + _("How thorough the block verification is (0-6, default: 1)") + "\n" +
" -loadblock=<file> " + _("Imports blocks from external blk000?.dat file") + "\n" +
+ _("\nBlock creation options:\n") +
+ " -blockminsize=<n> " + _("Minimum size, in bytes (default: 0)\n") +
+ " -blockmaxsize=<n> " + _("Maximum size, in bytes (default: 250000)\n") +
+ " -blockprioritysize=<n> " + _("Maximum bytes of high-priority/low-fee transactions (default: 27000)\n") +
+
" -? " + _("This help message") + "\n";
strUsage += string() +