check that header not nil

This commit is contained in:
alex.sharov 2021-10-22 10:10:38 +07:00
parent e6bd6fbfcc
commit e22758355f

View File

@ -87,6 +87,9 @@ func (api *TxPoolAPIImpl) Content(ctx context.Context) (map[string]map[string]ma
}
curHeader := rawdb.ReadCurrentHeader(tx)
if curHeader != nil {
return nil, nil
}
// Flatten the pending transactions
for account, txs := range pending {
dump := make(map[string]*RPCTransaction)