bufferutils: fix pushDataInt output
This commit is contained in:
parent
1f62235c38
commit
17c6ff62a0
2 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@ function verifuint (value, max) {
|
|||
|
||||
function pushDataSize (i) {
|
||||
return i < opcodes.OP_PUSHDATA1 ? 1
|
||||
: i < 0xff ? 2
|
||||
: i < 0xffff ? 3
|
||||
: i <= 0xff ? 2
|
||||
: i <= 0xffff ? 3
|
||||
: 5
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue