William Banfield
84c15857e4
mempool: return mempool errors to the abci client ( #6740 )
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
Aleksandr Bezobchuk
68ffe8bc64
mempool: add TTL configuration to mempool ( #6715 )
3 years ago
William Banfield
fdc246e4a8
libs/clist: revert clear and detach changes while debugging ( #6731 )
3 years ago
Marko
363ea56680
abci: remove counter app ( #6684 )
* remove counter app
* remove unneeeded ci
* lint fix
* modify tx sizes
* cleanup docs
* Update abci/cmd/abci-cli/abci-cli.go
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* Update docs/app-dev/getting-started.md
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* Update docs/app-dev/getting-started.md
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* bring back comment
* migrate to kvstore and not persistent
* remove unused func
* test persistent
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
4 years ago
Aleksandr Bezobchuk
1dec3e139a
add stacktrace to panic logs ( #6662 )
4 years ago
JayT106
d66d1ada5b
libs/CList: automatically detach the prev/next elements in Remove function ( #6626 )
closes #2207
Also added `Clear()` function if we want to clear whole elements in CList.
4 years ago
Marko
f8dbbae55e
mempool: move errors to be public ( #6613 )
## Description
Move mempool errors to be public, this is used in handling abci error codes
4 years ago
Sam Kleinman
917180dfd2
p2p: reduce buffering on channels ( #6609 )
Having smaller buffers in each reactor/channel will mean that there will be fewer stale messages.
4 years ago
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
4 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago