diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-05 03:41:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-05 03:41:24 +0800 |
commit | eb1c26746d08e6a725fbd64b10f28105684e54db (patch) | |
tree | 1ba3f0f70d06f9cf585e1de052a0731bac57a9ef /core/transaction_pool_test.go | |
parent | eb8f0b85f750b7843bb3909116ea71f85a1988a6 (diff) | |
download | go-tangerine-eb1c26746d08e6a725fbd64b10f28105684e54db.tar.gz go-tangerine-eb1c26746d08e6a725fbd64b10f28105684e54db.tar.zst go-tangerine-eb1c26746d08e6a725fbd64b10f28105684e54db.zip |
Changed R S to big int and fixed tests
Diffstat (limited to 'core/transaction_pool_test.go')
-rw-r--r-- | core/transaction_pool_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go index a009a4c9d..abdc2709f 100644 --- a/core/transaction_pool_test.go +++ b/core/transaction_pool_test.go @@ -2,14 +2,15 @@ package core import ( "crypto/ecdsa" + "math/big" "testing" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/core/state" ) // State query interface @@ -88,7 +89,10 @@ func TestRemoveInvalid(t *testing.T) { func TestInvalidSender(t *testing.T) { pool, _ := setup() - err := pool.ValidateTransaction(new(types.Transaction)) + tx := new(types.Transaction) + tx.R = new(big.Int) + tx.S = new(big.Int) + err := pool.ValidateTransaction(tx) if err != ErrInvalidSender { t.Errorf("expected %v, got %v", ErrInvalidSender, err) } |