From 5e1581c2c3a88754f5f492b8551a96c2f5d4664a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 20 Dec 2017 12:34:43 +0200 Subject: core: fix panic when stat-ing a tx from a queue-only account (#15714) --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/tx_pool.go') diff --git a/core/tx_pool.go b/core/tx_pool.go index c3915575b..541004300 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -838,7 +838,7 @@ func (pool *TxPool) Status(hashes []common.Hash) []TxStatus { for i, hash := range hashes { if tx := pool.all[hash]; tx != nil { from, _ := types.Sender(pool.signer, tx) // already validated - if pool.pending[from].txs.items[tx.Nonce()] != nil { + if pool.pending[from] != nil && pool.pending[from].txs.items[tx.Nonce()] != nil { status[i] = TxStatusPending } else { status[i] = TxStatusQueued -- cgit v1.2.3