diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-06 17:54:11 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-06 18:43:05 +0800 |
commit | e6bb9c1cadd311475f54ed60630fc20eb2f54871 (patch) | |
tree | 60d3b8e8f0cfcf002a6838404f7de21ea1ef5c29 /core/types | |
parent | aa4502060b50733a3a82a0ab575eac0731cdb7ca (diff) | |
download | dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.gz dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.bz2 dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.lz dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.xz dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.zst dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.zip |
core, miner: removed vm errors from consensus err checking
Removed VM errors from the consensus errors. They now used for output
only.
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/transaction.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index c381fc5f3..f5392382b 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -15,6 +15,8 @@ import ( "github.com/ethereum/go-ethereum/rlp" ) +var ErrInvalidSig = errors.New("invalid v, r, s values") + func IsContractAddr(addr []byte) bool { return len(addr) == 0 } @@ -177,7 +179,7 @@ func (tx *Transaction) SignatureValues() (v byte, r *big.Int, s *big.Int) { func (tx *Transaction) publicKey() ([]byte, error) { if !crypto.ValidateSignatureValues(tx.data.V, tx.data.R, tx.data.S) { - return nil, errors.New("invalid v, r, s values") + return nil, ErrInvalidSig } // encode the signature in uncompressed format |