From: shenao78 Date: Thu, 24 Oct 2019 10:33:43 +0000 (+0800) Subject: bug fix X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=commitdiff_plain;h=1234f4647b164057e1782c053d29e032a4a9961e bug fix --- diff --git a/application/mov/common/util.go b/application/mov/common/util.go index 9637c957..4d8567d3 100644 --- a/application/mov/common/util.go +++ b/application/mov/common/util.go @@ -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