Skip to content

Cloudbreak returns closed accounts as live #47

Description

@jonny-haruko

Cloudbreak: https://github.com/solana-rpc/cloudbreak/releases/tag/v0.1.2
Agave: https://github.com/anza-xyz/agave/releases/tag/v4.2.1
Yellowstone: https://github.com/rpcpool/yellowstone-grpc/releases/tag/v15.1.0%2Bsolana.4.2.0

Context:

Wallet ABn96bHRwq19LgSt19rW2pGay2MkrFHvnFacaLBRk6vE withdraws from a Loopscale Vault in this transaction at slot 443,551,366 which closes the Vault Stake Account 4hB9Nn1Qog9w8NTTyU6SncdmJuZL2SAo1C3x4SezpU6X

However, when querying the cloudbreak API (which is caught up to the chain), there's still a response for the getAccountInfo for 4hB9Nn1Qog9w8NTTyU6SncdmJuZL2SAo1C3x4SezpU6X

Agave

curl -s http://localhost:8899 -H content-type:application/json  -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["4hB9Nn1Qog9w8NTTyU6SncdmJuZL2SAo1C3x4SezpU6X",{"encoding":"base64","commitment":"finalized"}]}'


{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "apiVersion": "4.2.1",
      "slot": 443602611
    },
    "value": null
  },
  "id": 1
}

Cloudbreak

curl -s http://localhost:4000 -H content-type:application/json  -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["4hB9Nn1Qog9w8NTTyU6SncdmJuZL2SAo1C3x4SezpU6X",{"encoding":"base64","commitment":"finalized"}]}'

{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "slot": 443602616
    },
    "value": {
      "lamports": 1990560,
      "data": [
        "4SKANafvtmte81vAuHHOxaK+Tw6DlGqyeNt7SZHxqG916AopwOCqR4Tx63zUniTNLC2vpjzSfrsFEvOJsuWrfjj+qKIyTxhu/4h8B6llTv5ejZ81v37XLWw/aJAdS5WIweElTYDv1YJ7y2mEBQAAAAAAAAAAAAvslmoAAAAAC+yWagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
        "base64"
      ],
      "owner": "1oopBoJG58DgkUVKkEzKgyG9dvRmpgeEm1AVjoHkF78",
      "executable": false,
      "rentEpoch": 18446744073709552000,
      "space": 158
    }
  },
  "id": 1
}

These ghost accounts are also surfaced in a getProgramAccounts call to 1oopBoJG58DgkUVKkEzKgyG9dvRmpgeEm1AVjoHkF78, where this call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getProgramAccounts",
  "params": [
    "1oopBoJG58DgkUVKkEzKgyG9dvRmpgeEm1AVjoHkF78",
    {
      "encoding": "base64",
      "commitment": "finalized",
      "filters": [
        { "dataSize": 158 }
      ]
    }
  ]
}

returns 10715 accounts from Cloudbreak but only 9932 accountts from Agave

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions