Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSignaturesForAddress response order is inconsistent (when the given address has more than one signature in the same block) #907

Closed
qn-srikanth opened this issue Apr 19, 2024 · 1 comment

Comments

@qn-srikanth
Copy link

qn-srikanth commented Apr 19, 2024

Problem

The following getSignaturesForAddress payload gives inconsistent results.

{
    "jsonrpc": "2.0",
    "id": "my_local_env",
    "method": "getSignaturesForAddress",
    "params": [
      "HbNGeafGRKsXXTcBMCuRoBQpz6bmJ8UyLikuAjc1LCRW",
      {
        "limit": 2,
        "encoding": "jsonParsed"
      }
    ]
  }

image


Account : HbNGeafGRKsXXTcBMCuRoBQpz6bmJ8UyLikuAjc1LCRW

Tx signature 1 : 2DQpqgd4oS4iAevswo1wXXJvCaCJm6BPjynYUEPmR79SQgJR3mPJqhgYbRZ4NqMMZT9VxZhQcpiMqrv5jEkjiicm

Tx signature 2 :
vLcnRYGwvt6Mwiq9rGzN6syNFW9aiUPnZN2bqEaFMBA2XxnWAD6q2SPSRqSkgsuo67GjJATs9YR2LN5UjFgTFHt

Screenshot 2024-04-19 at 12 25 28 PM


Proposed Solution

This looks like a bug since transaction ordering should be the same. And can lead to incorrect information when extra fields like before, until are used.

@CriesofCarrots
Copy link

Multiple pre-existing issues on this topic, eg solana-labs#22456
Fixed in v1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants