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:
ba86099
)
optimise
author
oys
<oys@oysdeMacBook-Pro.local>
Thu, 10 Oct 2019 07:38:39 +0000
(15:38 +0800)
committer
oys
<oys@oysdeMacBook-Pro.local>
Thu, 10 Oct 2019 07:38:39 +0000
(15:38 +0800)
consensus/segwit/segwit.go
patch
|
blob
|
history
diff --git
a/consensus/segwit/segwit.go
b/consensus/segwit/segwit.go
index
f00ae1f
..
78b3e4a
100644
(file)
--- a/
consensus/segwit/segwit.go
+++ b/
consensus/segwit/segwit.go
@@
-71,7
+71,7
@@
func IsP2WMCScript(prog []byte) bool {
return false
}
- if insts[1].Op != vm.OP_DATA_
20
|| len(insts[1].Data) != 32 {
+ if insts[1].Op != vm.OP_DATA_
32
|| len(insts[1].Data) != 32 {
return false
}
@@
-86,7
+86,7
@@
func IsP2WMCScript(prog []byte) bool {
if _, err = vm.AsInt64(insts[3].Data); err != nil {
return false
}
- return insts[5].Op == vm.OP_DATA_
20
&& len(insts[5].Data) == 32
+ return insts[5].Op == vm.OP_DATA_
32
&& len(insts[5].Data) == 32
}
// ConvertP2PKHSigProgram convert standard P2WPKH program into P2PKH program