aleph-im / aleph-indexer-framework

TypeScript framework for deploying distributed indexers on Aleph VMs for Solana and EVM chains.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem: Ethereum Aleph smart contract indexer sync is blocked

odesenfans opened this issue · comments

The Aleph smart contract indexer does not process newer and older blocks. The new ranges are provided in the pending array of the account state but are never processed. Here is the result of the account state query.

{
  "data": {
    "state": [
      {
        "blockchain": "ethereum",
        "type": "log",
        "indexer": "aleph-messages-indexer-0",
        "account": "0x166fd4299364b21c7567e163d85d78d2fb2f8ad5",
        "accurate": false,
        "progress": 74.08,
        "pending": [
          "2020-06-18T15:50:29.000Z/2021-02-18T17:06:53.999Z",
          "2023-03-02T07:22:59.001Z/2023-03-16T17:35:35.000Z"
        ],
        "processed": [
          "2021-02-18T17:06:54.000Z/2023-03-02T07:22:59.000Z"
        ]
      }
    ],
    "bsc": [
      {
        "blockchain": "bsc",
        "type": "log",
        "indexer": "aleph-messages-indexer-0",
        "account": "0xdf270752c8c71d08acbae4372687da65aece2d5d",
        "accurate": false,
        "progress": 0.02,
        "pending": [
          "2023-01-22T10:02:42.000Z/2023-02-11T00:05:39.999Z",
          "2023-02-11T00:20:56.001Z/2023-03-16T17:35:36.000Z"
        ],
        "processed": [
          "2023-02-11T00:05:40.000Z/2023-02-11T00:20:56.000Z"
        ]
      }
    ]
  }
}
commented

The problem is that the hosting machines ran out of space.
There isn't a bug on the indexer code.

There is a work in progress task for solving this:
#31