diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-02 02:27:20 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-02 03:06:52 +0800 |
commit | 32e1b104f8fbc0f80bf2b6a93492aa01fa323e35 (patch) | |
tree | a9725f648bdd47d3e5b72b21ddf728e90656a974 /core/transaction_pool.go | |
parent | 5b14fdb94b61af9f17f53593766a706c9780a7be (diff) | |
download | go-tangerine-32e1b104f8fbc0f80bf2b6a93492aa01fa323e35.tar.gz go-tangerine-32e1b104f8fbc0f80bf2b6a93492aa01fa323e35.tar.zst go-tangerine-32e1b104f8fbc0f80bf2b6a93492aa01fa323e35.zip |
Add EC signature validations before call to libsecp256k1
Diffstat (limited to 'core/transaction_pool.go')
-rw-r--r-- | core/transaction_pool.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/transaction_pool.go b/core/transaction_pool.go index c896488d1..ee6360614 100644 --- a/core/transaction_pool.go +++ b/core/transaction_pool.go @@ -112,12 +112,6 @@ func (pool *TxPool) ValidateTransaction(tx *types.Transaction) error { return ErrInvalidSender } - // Validate curve param - v, _, _ := tx.Curve() - if v > 28 || v < 27 { - return fmt.Errorf("tx.v != (28 || 27) => %v", v) - } - if !pool.currentState().HasAccount(from) { return ErrNonExistentAccount } |