opcodes: remove unused reverseMap
This commit is contained in:
parent
e835a6264d
commit
f9782b7c17
2 changed files with 2 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
var ops = {
|
||||
module.exports = {
|
||||
// push value
|
||||
OP_0 : 0,
|
||||
OP_FALSE : 0,
|
||||
|
@ -136,15 +136,3 @@ var ops = {
|
|||
OP_PUBKEY : 254,
|
||||
OP_INVALIDOPCODE : 255
|
||||
}
|
||||
|
||||
var reverse = []
|
||||
for (var op in ops) {
|
||||
var code = ops[code]
|
||||
|
||||
reverse[code] = op
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
map: ops,
|
||||
reverseMap: reverse
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var assert = require('assert')
|
||||
var crypto = require('./crypto')
|
||||
var opcodes = require('./opcode').map
|
||||
var opcodes = require('./opcode')
|
||||
|
||||
function Script(data) {
|
||||
data = data || []
|
||||
|
|
Loading…
Add table
Reference in a new issue