OSDN Git Service

bug fix
authorshenao78 <shenao.78@163.com>
Thu, 24 Oct 2019 10:33:43 +0000 (18:33 +0800)
committershenao78 <shenao.78@163.com>
Thu, 24 Oct 2019 10:33:43 +0000 (18:33 +0800)
application/mov/common/util.go

index 9637c95..4d8567d 100644 (file)
@@ -7,6 +7,9 @@ import (
 )
 
 func IsMatchedTx(tx *types.Tx) bool {
+       if len(tx.Inputs) < 2 {
+               return false
+       }
        for _, input := range tx.Inputs {
                if input.InputType() == types.SpendInputType && contract.IsTradeClauseSelector(input) && segwit.IsP2WMCScript(input.ControlProgram()) {
                        return true