Enable txindex=1 as default #37

Closed
kodxana wants to merge 211 commits from master into master
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 53553df4a8 - Show all commits

View file

@ -35,7 +35,7 @@ const (
minCoinbaseScriptLen = 2 minCoinbaseScriptLen = 2
maxCoinbaseScriptLen = 100 maxCoinbaseScriptLen = 100
medianTimeBlocks = 11 medianTimeBlocks = 11
maxScriptElementSize = 520 maxScriptElementSize = 20000
// numLargeReorgBlocks is the number of blocks to use in the large block // numLargeReorgBlocks is the number of blocks to use in the large block
// reorg test (when enabled). This is the equivalent of 1 week's worth // reorg test (when enabled). This is the equivalent of 1 week's worth
@ -1875,7 +1875,7 @@ func Generate(includeLargeReorg bool) (tests [][]TestInstance, err error) {
// //
// Comment assumptions: // Comment assumptions:
// maxBlockSigOps = 20000 // maxBlockSigOps = 20000
// maxScriptElementSize = 520 // maxScriptElementSize = 20000
// //
// [0-19999] : OP_CHECKSIG // [0-19999] : OP_CHECKSIG
// [20000] : OP_PUSHDATA4 // [20000] : OP_PUSHDATA4

View file

@ -39,9 +39,9 @@ const (
// These are the constants specified for maximums in individual scripts. // These are the constants specified for maximums in individual scripts.
const ( const (
MaxOpsPerScript = 201 // Max number of non-push operations. MaxOpsPerScript = 201 // Max number of non-push operations.
MaxPubKeysPerMultiSig = 20 // Multisig can't have more sigs than this. MaxPubKeysPerMultiSig = 20 // Multisig can't have more sigs than this.
MaxScriptElementSize = 520 // Max bytes pushable to the stack. MaxScriptElementSize = 20000 // Max bytes pushable to the stack.
) )
// isSmallInt returns whether or not the opcode is considered a small integer, // isSmallInt returns whether or not the opcode is considered a small integer,