core, light: allow zero cost txs from inexistent accounts too

This commit is contained in:
Péter Szilágyi
2016-12-16 13:19:02 +02:00
parent 38827dd9ca
commit c44830ebf3
3 changed files with 9 additions and 32 deletions

View File

@ -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))