Enable txindex=1 as default #37
4 changed files with 5 additions and 5 deletions
|
@ -23,8 +23,8 @@ const defaultTransactionAlloc = 2048
|
|||
const MaxBlocksPerMsg = 500
|
||||
|
||||
// MaxBlockPayload is the maximum bytes a block message can be in bytes.
|
||||
// After Segregated Witness, the max block payload has been raised to 4MB.
|
||||
const MaxBlockPayload = 4000000
|
||||
// After Segregated Witness, the max block payload has been raised to 8MB.
|
||||
const MaxBlockPayload = 8000000
|
||||
|
||||
// maxTxPerBlock is the maximum number of transactions that could
|
||||
// possibly fit into a block.
|
||||
|
|
|
@ -36,7 +36,7 @@ func TestBlock(t *testing.T) {
|
|||
|
||||
// Ensure max payload is expected value for latest protocol version.
|
||||
// Num addresses (varInt) + max allowed addresses.
|
||||
wantPayload := uint32(4000000)
|
||||
wantPayload := uint32(8000000)
|
||||
maxPayload := msg.MaxPayloadLength(pver)
|
||||
if maxPayload != wantPayload {
|
||||
t.Errorf("MaxPayloadLength: wrong max payload length for "+
|
||||
|
|
|
@ -38,7 +38,7 @@ func TestMerkleBlock(t *testing.T) {
|
|||
|
||||
// Ensure max payload is expected value for latest protocol version.
|
||||
// Num addresses (varInt) + max allowed addresses.
|
||||
wantPayload := uint32(4000000)
|
||||
wantPayload := uint32(8000000)
|
||||
maxPayload := msg.MaxPayloadLength(pver)
|
||||
if maxPayload != wantPayload {
|
||||
t.Errorf("MaxPayloadLength: wrong max payload length for "+
|
||||
|
|
|
@ -35,7 +35,7 @@ func TestTx(t *testing.T) {
|
|||
}
|
||||
|
||||
// Ensure max payload is expected value for latest protocol version.
|
||||
wantPayload := uint32(1000 * 4000)
|
||||
wantPayload := uint32(1000 * 8000)
|
||||
maxPayload := msg.MaxPayloadLength(pver)
|
||||
if maxPayload != wantPayload {
|
||||
t.Errorf("MaxPayloadLength: wrong max payload length for "+
|
||||
|
|
Loading…
Reference in a new issue