bitauth / chaingraph

A multi-node blockchain indexer and GraphQL API
https://chaingraph.cash/
MIT License
49 stars 15 forks source link

Block accepted without accepting node mapped in multiple instances. #64

Open 2qx opened 6 months ago

2qx commented 6 months ago

It appears that block 834892 does not have an accepted_by node on neither the demo nor pat's instance.

 {
        "height": "834892",
        "timestamp": "1709263400",
        "accepted_by": []
      },

This is a simple query to get the offending block and the next

query GetBlockTimestamps() {
  block(
    where: {
      _and: [
        { height: { _gt: 834891 } }
        { height: { _lte: 834893 } }
      ]
    }
  ) {
    height
    timestamp
    accepted_by {
      node{name}
    }
  }
}