aboutsummaryrefslogtreecommitdiffstats
path: root/core/transaction_pool_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-04 18:47:46 +0800
committerobscuren <geffobscura@gmail.com>2015-06-04 19:16:31 +0800
commit9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0 (patch)
tree0cea38edca73127eb583b90fd1811d35b5d97507 /core/transaction_pool_test.go
parent9b27fb91c0d7889ba3836c4cf91cc1fdcf7354c1 (diff)
downloadgo-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar.gz
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar.bz2
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar.lz
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar.xz
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.tar.zst
go-tangerine-9dd12a64a7dc998e32ee1bcf6b23d9d55cf6e6c0.zip
core: renamed txs to pending
Diffstat (limited to 'core/transaction_pool_test.go')
-rw-r--r--core/transaction_pool_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go
index df5af9429..bbd5ddad4 100644
--- a/core/transaction_pool_test.go
+++ b/core/transaction_pool_test.go
@@ -71,8 +71,8 @@ func TestTransactionQueue(t *testing.T) {
pool.queueTx(tx.Hash(), tx)
pool.checkQueue()
- if len(pool.txs) != 1 {
- t.Error("expected valid txs to be 1 is", len(pool.txs))
+ if len(pool.pending) != 1 {
+ t.Error("expected valid txs to be 1 is", len(pool.pending))
}
tx = transaction()
@@ -82,7 +82,7 @@ func TestTransactionQueue(t *testing.T) {
pool.state.SetNonce(from, 2)
pool.queueTx(tx.Hash(), tx)
pool.checkQueue()
- if _, ok := pool.txs[tx.Hash()]; ok {
+ if _, ok := pool.pending[tx.Hash()]; ok {
t.Error("expected transaction to be in tx pool")
}
@@ -104,7 +104,7 @@ func TestTransactionQueue(t *testing.T) {
pool.checkQueue()
- if len(pool.txs) != 1 {
+ if len(pool.pending) != 1 {
t.Error("expected tx pool to be 1 =")
}
if len(pool.queue[from]) != 2 {
@@ -124,8 +124,8 @@ func TestRemoveTx(t *testing.T) {
t.Error("expected queue to be 1, got", len(pool.queue))
}
- if len(pool.txs) != 1 {
- t.Error("expected txs to be 1, got", len(pool.txs))
+ if len(pool.pending) != 1 {
+ t.Error("expected txs to be 1, got", len(pool.pending))
}
pool.removeTx(tx.Hash())
@@ -134,8 +134,8 @@ func TestRemoveTx(t *testing.T) {
t.Error("expected queue to be 0, got", len(pool.queue))
}
- if len(pool.txs) > 0 {
- t.Error("expected txs to be 0, got", len(pool.txs))
+ if len(pool.pending) > 0 {
+ t.Error("expected txs to be 0, got", len(pool.pending))
}
}