Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: d66593bbfdba86e3e67273000b4c3f8b132a15b3
      
https://github.com/btcsuite/btcd/commit/d66593bbfdba86e3e67273000b4c3f8b132a15b3
  Author: Dave Collins <[email protected]>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M txscript/opcode.go
    M txscript/reference_test.go

  Log Message:
  -----------
  txscript: Add exported opcode name to value map.

This commit exports a new map named OpcodeByName which can be used to
lookup an opcode value given a human-readable opcode name.

It also modifies the test function which does short form parsing to use
the new map instead of the internal array.

Closes #267.


Reply via email to