Enable txindex=1 as default #37
2 changed files with 3 additions and 2 deletions
|
@ -595,7 +595,8 @@ func (b *BlockChain) connectBlock(node *blockNode, block *btcutil.Block,
|
||||||
|
|
||||||
// Handle LBRY Claim Scripts
|
// Handle LBRY Claim Scripts
|
||||||
if b.claimTrie != nil {
|
if b.claimTrie != nil {
|
||||||
if err := b.ParseClaimScripts(block, node, view, current); err != nil {
|
shouldFlush := current && b.chainParams.Net != wire.TestNet
|
||||||
|
if err := b.ParseClaimScripts(block, node, view, shouldFlush); err != nil {
|
||||||
return ruleError(ErrBadClaimTrie, err.Error())
|
return ruleError(ErrBadClaimTrie, err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -638,6 +638,6 @@ func New(cfg *Config) *CPUMiner {
|
||||||
numWorkers: defaultNumWorkers,
|
numWorkers: defaultNumWorkers,
|
||||||
updateNumWorkers: make(chan struct{}),
|
updateNumWorkers: make(chan struct{}),
|
||||||
queryHashesPerSec: make(chan float64),
|
queryHashesPerSec: make(chan float64),
|
||||||
updateHashes: make(chan uint64),
|
updateHashes: make(chan uint64, 512),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue