From 140d8839018527fe64a0c1a6b79af4ccae66ec3a Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 3 Jun 2015 22:53:33 +0200 Subject: [PATCH] core: test updates --- core/transaction_pool.go | 1 - core/transaction_pool_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/transaction_pool.go b/core/transaction_pool.go index 5e6f2c6a46..ba0fba91fb 100644 --- a/core/transaction_pool.go +++ b/core/transaction_pool.go @@ -284,7 +284,6 @@ func (pool *TxPool) checkQueue() { addq := addq[:0] for hash, tx := range txs { if tx.AccountNonce < curnonce { - fmt.Println("delete the tx", tx.AccountNonce, curnonce) // Drop queued transactions whose nonce is lower than // the account nonce because they have been processed. delete(txs, hash) diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go index 170bdfa720..df5af94292 100644 --- a/core/transaction_pool_test.go +++ b/core/transaction_pool_test.go @@ -119,7 +119,7 @@ func TestRemoveTx(t *testing.T) { from, _ := tx.From() pool.state.AddBalance(from, big.NewInt(1)) pool.queueTx(tx.Hash(), tx) - pool.addTx(tx.Hash(), tx) + pool.addTx(tx.Hash(), from, tx) if len(pool.queue) != 1 { t.Error("expected queue to be 1, got", len(pool.queue)) }