fix standard 11 issues
This commit is contained in:
parent
b2d34c5fa8
commit
4aaf295cd5
5 changed files with 9 additions and 9 deletions
|
@ -187,7 +187,7 @@ function isCanonicalPubKey (buffer) {
|
|||
function isDefinedHashType (hashType) {
|
||||
var hashTypeMod = hashType & ~0x80
|
||||
|
||||
// return hashTypeMod > SIGHASH_ALL && hashTypeMod < SIGHASH_SINGLE
|
||||
// return hashTypeMod > SIGHASH_ALL && hashTypeMod < SIGHASH_SINGLE
|
||||
return hashTypeMod > 0x00 && hashTypeMod < 0x04
|
||||
}
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@ function decode (buffer, maxLength, minimal) {
|
|||
|
||||
function scriptNumSize (i) {
|
||||
return i > 0x7fffffff ? 5
|
||||
: i > 0x7fffff ? 4
|
||||
: i > 0x7fff ? 3
|
||||
: i > 0x7f ? 2
|
||||
: i > 0x00 ? 1
|
||||
: 0
|
||||
: i > 0x7fffff ? 4
|
||||
: i > 0x7fff ? 3
|
||||
: i > 0x7f ? 2
|
||||
: i > 0x00 ? 1
|
||||
: 0
|
||||
}
|
||||
|
||||
function encode (number) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue