From 28929ff4296ec9653cbff510fe06df016ed771f6 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 19 Feb 2014 12:17:43 -0600 Subject: [PATCH] Increase block prio size and max standard tx size. This commit increases the block priority size to 50000 and the max standard tx size to 100k. This matches relatively recent changes in the reference implementation. The max block size was also increased to 750000, but since btcd does not currently create blocks, there is no constant for it. That constant will likely be added as a part of the getwork implementation since it requires block creation. Closes #71. --- mempool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mempool.go b/mempool.go index 4988b0cd7..b95f0b53d 100644 --- a/mempool.go +++ b/mempool.go @@ -49,7 +49,7 @@ const ( // maxStandardTxSize is the maximum size allowed for transactions that // are considered standard and will therefore be relayed and considered // for mining. - maxStandardTxSize = btcwire.MaxBlockPayload / 10 + maxStandardTxSize = 100000 // maxStandardSigScriptSize is the maximum size allowed for a // transaction input signature script to be considered standard. This @@ -75,7 +75,7 @@ const ( // blockPrioritySize is the number of bytes reserved in a block for // high-priority transactions. It is mainly used to help determine the // minimum required fee for a transaction. - blockPrioritySize = 27000 + blockPrioritySize = 50000 ) // TxDesc is a descriptor containing a transaction in the mempool and the