Browse Source

opcodes: remove unused reverseMap

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
f9782b7c17
  1. 14
      src/opcode.js
  2. 2
      src/script.js

14
src/opcode.js

@ -1,4 +1,4 @@
var ops = { module.exports = {
// push value // push value
OP_0 : 0, OP_0 : 0,
OP_FALSE : 0, OP_FALSE : 0,
@ -136,15 +136,3 @@ var ops = {
OP_PUBKEY : 254, OP_PUBKEY : 254,
OP_INVALIDOPCODE : 255 OP_INVALIDOPCODE : 255
} }
var reverse = []
for (var op in ops) {
var code = ops[code]
reverse[code] = op
}
module.exports = {
map: ops,
reverseMap: reverse
}

2
src/script.js

@ -1,6 +1,6 @@
var assert = require('assert') var assert = require('assert')
var crypto = require('./crypto') var crypto = require('./crypto')
var opcodes = require('./opcode').map var opcodes = require('./opcode')
function Script(data) { function Script(data) {
data = data || [] data = data || []

Loading…
Cancel
Save