Spec changes.

* All errors during state transition result in an invalid tx
This commit is contained in:
obscuren
2015-03-05 19:51:25 +01:00
parent ca1093f848
commit 88ff13c241
4 changed files with 37 additions and 7 deletions

View File

@ -146,3 +146,19 @@ func IsKnownBlockErr(e error) bool {
_, ok := e.(*KnownBlockError)
return ok
}
type ValueTransferError struct {
message string
}
func ValueTransferErr(str string, v ...interface{}) *ValueTransferError {
return &ValueTransferError{fmt.Sprintf(str, v...)}
}
func (self *ValueTransferError) Error() string {
return self.message
}
func IsValueTransferErr(e error) bool {
_, ok := e.(*ValueTransferError)
return ok
}