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) #35521

Closed
qn-srikanth opened this issue Apr 19, 2024 · 2 comments
Labels
community Community contribution

Comments

@qn-srikanth
Copy link

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


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.

@qn-srikanth qn-srikanth added the community Community contribution label Apr 19, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

@qn-srikanth
Copy link
Author

anza-xyz#907

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

No branches or pull requests

1 participant