diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-11-21 07:40:36 +0800 |
---|---|---|
committer | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-12-16 10:21:17 +0800 |
commit | 975c5912610013d5486336ab825ede86c8369b9a (patch) | |
tree | d6538d856e23f4515c55d7b8787b2ae2c79d4291 /core/transaction_pool_test.go | |
parent | b9aedeab0b1cf56860f5ca53333a4f348395259c (diff) | |
download | dexon-975c5912610013d5486336ab825ede86c8369b9a.tar dexon-975c5912610013d5486336ab825ede86c8369b9a.tar.gz dexon-975c5912610013d5486336ab825ede86c8369b9a.tar.bz2 dexon-975c5912610013d5486336ab825ede86c8369b9a.tar.lz dexon-975c5912610013d5486336ab825ede86c8369b9a.tar.xz dexon-975c5912610013d5486336ab825ede86c8369b9a.tar.zst dexon-975c5912610013d5486336ab825ede86c8369b9a.zip |
core: tx pool skip price validation for "owned" transactions
Diffstat (limited to 'core/transaction_pool_test.go')
-rw-r--r-- | core/transaction_pool_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go index 229dcacf3..a311bdd66 100644 --- a/core/transaction_pool_test.go +++ b/core/transaction_pool_test.go @@ -72,6 +72,17 @@ func TestInvalidTransactions(t *testing.T) { if err := pool.Add(tx); err != ErrNonce { t.Error("expected", ErrNonce) } + + tx = transaction(1, big.NewInt(100000), key) + pool.minGasPrice = big.NewInt(1000) + if err := pool.Add(tx); err != ErrCheap { + t.Error("expected", ErrCheap, "got", err) + } + + pool.SetLocal(tx) + if err := pool.Add(tx); err != nil { + t.Error("expected", nil, "got", err) + } } func TestTransactionQueue(t *testing.T) { |