Enable txindex=1 as default #37

Closed
kodxana wants to merge 211 commits from master into master
Showing only changes of commit 8b64adc234 - Show all commits

View file

@ -471,6 +471,8 @@ func typeOfScript(scriptVersion uint16, script []byte) ScriptClass {
} }
switch { switch {
case isPubKeyScript(script):
return PubKeyTy
case isScriptHashScript(script): case isScriptHashScript(script):
return ScriptHashTy return ScriptHashTy
case isMultisigScript(scriptVersion, script): case isMultisigScript(scriptVersion, script):
@ -482,9 +484,7 @@ func typeOfScript(scriptVersion uint16, script []byte) ScriptClass {
return NonStandardTy return NonStandardTy
} }
if isPubkey(pops) { if isPubkeyHash(pops) {
return PubKeyTy
} else if isPubkeyHash(pops) {
return PubKeyHashTy return PubKeyHashTy
} else if isWitnessPubKeyHash(pops) { } else if isWitnessPubKeyHash(pops) {
return WitnessV0PubKeyHashTy return WitnessV0PubKeyHashTy