Enable txindex=1 as default #37
1 changed files with 2 additions and 2 deletions
|
@ -509,6 +509,8 @@ func typeOfScript(scriptVersion uint16, script []byte) ScriptClass {
|
|||
switch {
|
||||
case isScriptHashScript(script):
|
||||
return ScriptHashTy
|
||||
case isMultisigScript(scriptVersion, script):
|
||||
return MultiSigTy
|
||||
}
|
||||
|
||||
pops, err := parseScript(script)
|
||||
|
@ -524,8 +526,6 @@ func typeOfScript(scriptVersion uint16, script []byte) ScriptClass {
|
|||
return WitnessV0PubKeyHashTy
|
||||
} else if isWitnessScriptHash(pops) {
|
||||
return WitnessV0ScriptHashTy
|
||||
} else if isMultiSig(pops) {
|
||||
return MultiSigTy
|
||||
} else if isNullData(pops) {
|
||||
return NullDataTy
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue