Branch: refs/heads/master
  Home:   https://github.com/conformal/btcchain
  Commit: a22da99f91ec1823ccb7c91a730416a96f7b744b
      
https://github.com/conformal/btcchain/commit/a22da99f91ec1823ccb7c91a730416a96f7b744b
  Author: Dave Collins <[email protected]>
  Date:   2014-06-26 (Thu, 26 Jun 2014)

  Changed paths:
    M error.go
    M error_test.go
    M scriptval.go

  Log Message:
  -----------
  Convert script errors to RuleErrors.

This commit modifies the error return type for errors during script
validation to use the RuleError so they are consistent with the rest of
the errors.  This also helps the calling code differentiate blocks
rejected due to script parsing and validation errors as opposed to
internal issues such as inability to read from the disk.

To accomplish this, two new two new RuleErrors, ErrScriptMalformed and
ErrScriptValidation, have been added.

Also, the errors for script parsing issues and script validation errors
have been improved to include both transaction hashes and indexes involved
in the validation effort.  Previously script parsing issues had almost no
additional information as to which transaction input/outputs the failing
script came from.


Reply via email to