OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa10ce1
)
bug fix
author
shenao78
<shenao.78@163.com>
Thu, 24 Oct 2019 10:33:43 +0000
(18:33 +0800)
committer
shenao78
<shenao.78@163.com>
Thu, 24 Oct 2019 10:33:43 +0000
(18:33 +0800)
application/mov/common/util.go
patch
|
blob
|
history
diff --git
a/application/mov/common/util.go
b/application/mov/common/util.go
index
9637c95
..
4d8567d
100644
(file)
--- 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