William Banfield
84c15857e4
This changes adds an `MempoolError` field to the `ResponseCheckTx`. This will allow clients to understand that their transaction was rejected from the mempool despite passing the ABCI check. This change also updates the code to make use of early returns to prevent highly nested code blocks. Namely, it returns when the type assertion fails at the beginning of the method, instead of wrapping the entire method in a large if statement. This has a somewhat large effect on the diff as rendered by github. addresses: #3546 |
3 years ago | |
---|---|---|
.. | ||
mempool.go | mempool: return mempool errors to the abci client (#6740) | 3 years ago |
mempool_bench_test.go | p2p: renames for reactors and routing layer internal moves (#6547) | 4 years ago |
mempool_test.go | mempool: return mempool errors to the abci client (#6740) | 3 years ago |
priority_queue.go | p2p: renames for reactors and routing layer internal moves (#6547) | 4 years ago |
priority_queue_test.go | p2p: renames for reactors and routing layer internal moves (#6547) | 4 years ago |
reactor.go | add stacktrace to panic logs (#6662) | 4 years ago |
tx.go | mempool: add TTL configuration to mempool (#6715) | 3 years ago |
tx_test.go | mempool: add TTL configuration to mempool (#6715) | 3 years ago |