<!--
Please fill in as much of the template below as you can.
Be ready for f…ollowup questions, and please respond in a timely
manner. We might ask you to provide additional logs and data (tendermint & app).
-->
**Tendermint version** (use `tendermint version` or `git rev-parse --verify HEAD` if installed from source):
0.20.0
**ABCI app** (name for built-in, URL for self-written if it's publicly available):
Bill
**Environment**:
- **OS** (e.g. from /etc/os-release):
Linux mach1 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- **Install tools**:
docker
- **Others**:
**What happened**:
I broadcast a transaction to tendermint , it failed whit a response of "Timed out waiting for transaction to be included in a block" . Then I try broadcast again. It responsed "broadcastTxCommit: Tx already exists in cache"
**What you expected to happen**:
The transaction that failed to be included in a block should not cache in mempool.
**Have you tried the latest version**: yes/no
no
**How to reproduce it** (as minimally and precisely as possible):
when the network is not steady.
**Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file)**:
`
time="2019/03/12 11:34:11" level=debug msg=-------------------begin------------------
time="2019/03/12 11:34:11" level=debug msg="&{POST / HTTP/1.1 1 1 map[Userkey:[sdy] Pragma:[no-cache] Content-Type:[application/json-rpc] Cache-Control:[no-cache] User-Agent:[Java/1.7.0_71] Accept:[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2] Connection:[keep-alive] Content-Length:[314]] 0xc42024a200 <nil> 314 [] false 10.16.85.110:8223 map[] map[] <nil> map[] 10.16.8.69:45582 / <nil> <nil> <nil> 0xc42024a240}"
time="2019/03/12 11:34:11" level=debug msg="handleBroadcast:{\"Value\":{\"BillTransferSign\":{\"mideaDraftId\":\"MM1088360201903060009S\"}},\"userName\":\"MED556366\",\"instructionId\":30114085938900940,\"pubkey\":\"HNugjHKihOex3X/KpsDt44xqitr7i4Kmuq8C7yvEqeQ=\",\"sign\":\"C3yxjZgwdf5Nr2T1SJzcJk6tw+JPCQ/ggC8iBMsxKUELiPYGkJaPDETRKJ2pgg4c3PKIVRISPDRY0r388c62Ag==\",\"actionId\":16,\"operatorTime\":1552361649}"
time="2019/03/12 11:36:11" level=debug msg="BroadcastTxCommitResult:{\"jsonrpc\":\"2.0\",\"id\":\"jsonrpc-client\",\"error\":{\"code\":-32603,\"message\":\"Internal error\",\"data\":\"Timed out waiting for transaction to be included in a block\"},\"result\":{\"check_tx\":{\"code\":0,\"data\":\"\",\"log\":\"\",\"fee\":{}},\"deliver_tx\":{\"code\":0,\"data\":\"\",\"log\":\"\",\"tags\":null,\"fee\":{}},\"hash\":\"\",\"height\":0}}"
time="2019/03/12 11:36:11" level=error msg="Timed out waiting for transaction to be included in a block"
time="2019/03/12 11:36:11" level=debug msg="{\"id\":\"-9056169492124529826\",\"result\":{\"code\":2010,\"message\":\"block chain: broadcast commit err, internal err ,Timed out waiting for transaction to be included in a block\",\"data\":null},\"error\":null}\n"
time="2019/03/12 11:36:11" level=debug msg=-------------------end--------------------/n
time="2019/03/12 11:36:57" level=debug msg=-------------------begin------------------
time="2019/03/12 11:36:57" level=debug msg="&{POST / HTTP/1.1 1 1 map[Cache-Control:[no-cache] User-Agent:[Java/1.7.0_71] Content-Length:[313] Userkey:[sdy] Content-Type:[application/json-rpc] Connection:[keep-alive] Pragma:[no-cache] Accept:[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]] 0xc4200616c0 <nil> 313 [] false 10.16.85.110:8223 map[] map[] <nil> map[] 10.16.8.69:45582 / <nil> <nil> <nil> 0xc420061700}"
time="2019/03/12 11:36:57" level=debug msg="handleBroadcast:{\"Value\":{\"BillTransferSign\":{\"mideaDraftId\":\"MM1088360201903060009S\"}},\"userName\":\"MED556366\",\"instructionId\":30114085938900940,\"pubkey\":\"HNugjHKihOex3X/KpsDt44xqitr7i4Kmuq8C7yvEqeQ=\",\"sign\":\"C3yxjZgwdf5Nr2T1SJzcJk6tw+JPCQ/ggC8iBMsxKUELiPYGkJaPDETRKJ2pgg4c3PKIVRISPDRY0r388c62Ag==\",\"actionId\":16,\"operatorTime\":1552361649}"
time="2019/03/12 11:36:57" level=debug msg="BroadcastTxCommitResult:{\"jsonrpc\":\"2.0\",\"id\":\"jsonrpc-client\",\"error\":{\"code\":-32603,\"message\":\"Internal error\",\"data\":\"Error on broadcastTxCommit: Tx already exists in cache\"},\"result\":{\"check_tx\":{\"code\":0,\"data\":\"\",\"log\":\"\",\"fee\":{}},\"deliver_tx\":{\"code\":0,\"data\":\"\",\"log\":\"\",\"tags\":null,\"fee\":{}},\"hash\":\"\",\"height\":0}}"
time="2019/03/12 11:36:57" level=error msg="Error on broadcastTxCommit: Tx already exists in cache"
time="2019/03/12 11:36:57" level=debug msg="{\"id\":\"4467883668033597450\",\"result\":{\"code\":2010,\"message\":\"block chain: broadcast commit err, internal err ,Error on broadcastTxCommit: Tx already exists in cache\",\"data\":null},\"error\":null}\n"
time="2019/03/12 11:36:57" level=debug msg=-------------------end--------------------/n`
**Config (you can paste only the changes you've made)**:
**node command runtime flags**:
**`/dump_consensus_state` output for consensus bugs**
**Anything else we need to know**: