diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-12-16 19:19:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-12-16 19:30:39 +0800 |
commit | c44830ebf316bf22104d01aa114d2b6d765d7a76 (patch) | |
tree | 0d8f7fdc157acc378e94555166dbe16fff9a5bb1 /core/tx_pool_test.go | |
parent | 38827dd9ca87c1a8ffab32027400abb6e88f073b (diff) | |
download | dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar.gz dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar.bz2 dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar.lz dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar.xz dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.tar.zst dexon-c44830ebf316bf22104d01aa114d2b6d765d7a76.zip |
core, light: allow zero cost txs from inexistent accounts too
Diffstat (limited to 'core/tx_pool_test.go')
-rw-r--r-- | core/tx_pool_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index 3e516735b..f5fcac19f 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -129,10 +129,6 @@ func TestInvalidTransactions(t *testing.T) { pool, key := setupTxPool() tx := transaction(0, big.NewInt(100), key) - if err := pool.Add(tx); err != ErrNonExistentAccount { - t.Error("expected", ErrNonExistentAccount) - } - from, _ := deriveSender(tx) currentState, _ := pool.currentState() currentState.AddBalance(from, big.NewInt(1)) |