Skip to content
Permalink
Browse files

script: create sane error return codes for script validation and remo…

…ve logging

Attempt to codify the possible error statuses associated with script
validation. script/types.h has been created with the expectation that it will
be part of the public lib interface. The other flag enums will be moved here in
a future commit.

Logging has also been removed in order to drop the dependency on core.h. It can
be re-added to bitcoind as-needed. This makes script verification finally free
of application state and boost!
  • Loading branch information
theuni committed Nov 1, 2014
1 parent 3d3ce74 commit ab9edbd6b6eb3efbca11f16fa467c3c0ef905708
Showing with 306 additions and 119 deletions.
  1. +2 −0 src/Makefile.am
  2. +180 −117 src/script/interpreter.cpp
  3. +4 −2 src/script/interpreter.h
  4. +67 −0 src/script/script_error.cpp
  5. +53 −0 src/script/script_error.h
@@ -112,6 +112,7 @@ BITCOIN_CORE_H = \
script/sigcache.h \
script/sign.h \
script/standard.h \
script/script_error.h \
serialize.h \
streams.h \
sync.h \
@@ -235,6 +236,7 @@ libbitcoin_common_a_SOURCES = \
script/script.cpp \
script/sign.cpp \
script/standard.cpp \
script/script_error.cpp \
$(BITCOIN_CORE_H)

# util: shared between all executables.

0 comments on commit ab9edbd

Please sign in to comment.
You can’t perform that action at this time.