mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
mempool,rpc: add removetx rpc method (#7047)
Addresses one of the concerns with #7041. Provides a mechanism (via the RPC interface) to delete a single transaction, described by its hash, from the mempool. The method returns an error if the transaction cannot be found. Once the transaction is removed it remains in the cache and cannot be resubmitted until the cache is cleared or it expires from the cache.
This commit is contained in:
@@ -146,6 +146,7 @@ type MempoolClient interface {
|
||||
UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
|
||||
NumUnconfirmedTxs(context.Context) (*coretypes.ResultUnconfirmedTxs, error)
|
||||
CheckTx(context.Context, types.Tx) (*coretypes.ResultCheckTx, error)
|
||||
RemoveTx(context.Context, types.TxKey) error
|
||||
}
|
||||
|
||||
// EvidenceClient is used for submitting an evidence of the malicious
|
||||
|
||||
Reference in New Issue
Block a user