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.
This commit is contained in:
Dave Collins 2014-02-19 12:17:43 -06:00
parent 8ac86f1053
commit 28929ff429

View file

@ -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