Skip to content

Check tx status if it's already in cache while broadcasting #2268

Closed
@shumkov

Description

@shumkov

To mitigate #2261 we need to figure out the status of ST in case we get the "already in cache" error from Tenderdash.
To do so we need to check either ST in mempool (using dashpay/tenderdash#963) or in blockchain (/tx RPC call) or pass it to CheckTx (considering it's invalid) and return validation errors to the client. There might be a case when CheckTx will pass. It's a buggy condition meaning there is inconsistency between CheckTx and block processing logic or some issue in tenderdash. We should log such errors and return the internal error to the client.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions