Skip to content

DAPI returns "state transition already in chain" on invalid transactions #2261

@pshenmic

Description

@pshenmic

Expected Behavior

DAPI should return a specific and human readable reason why the transaction was rejected

Current Behavior

When you are broadcast invalid state transition through broadcastStateTransition GRPC query, I always see state transition already in chain error

However, if you check the transaction with check_tx query of the Tenderdash RPC, we can see that transaction invalid, and the reason why it is failing

Possible Solution

Steps to Reproduce (for bugs)

  1. Create invalid transaction (for example change nonce)
  2. Try to broadcast it via GRPC broadcastStateTransition
  3. state transition already in chain error returns in the response

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions