chaingraph
chaingraph copied to clipboard
A multi-node blockchain indexer and GraphQL API
While all tables, columns, and computed fields are documented using Postgres comments, I didn't realize that all Hasura relationships were still set to the default descriptions – either `An array...
Chaingraph [deterministically generates "mockchains"](https://github.com/bitauth/chaingraph/blob/cbebedefea908957b0373d77a60ec17fdff2050b/src/e2e/e2e.spec.mockchain.helper.ts) for use in end-to-end (E2E) tests. In the tests, Chaingraph connects to several simulated nodes – each with different understandings of the latest chain tip –...
Just an issue with `computeIndexCreationProgress`: https://github.com/bitauth/chaingraph/blob/ad0797a2b8399ef01244e2afbdf09d66113f3e12/src/components/db-utils.ts#L10-L58 In my testing, Postgres never returned `0` for `row.blocks_total` or `row.tuples_total`, so there's no handling for 0 values there. We just need to avoid...
Somehow I lost `node_transaction_history_pkey` before release, so the `node_transaction_history` table has no primary key. That will become an issue after Chaingraph is running for a little while, since most `node_transaction_history`...
When fetching the block height with: ```sh curl -X POST \ -H "Content-Type: application/json" \ -d '{"query": "query GetBlockheight($node: String!) { block(limit: 1, order_by: { height: desc }, where: {...
I have a chaingraph instance which tracks two networks: BCH chipnet and mainnet. Recently the p2p enpoint I have chosen some 1.5 years ago randomly turned out to belong to...
**THIS IS A DRAFT. DO NOT MERGE.** Currently, during initial sync, when a block is added to the database, all transactions are also inserted in a single query. This leads...
With these computed fields we now can flexibly lookup/constrain various unlocking and locking bytecodes with custom matches. Available at https://chaingraph.pat.mn Most basic usage: ``` ... where: { inputs: { unlocking_bytecode_hex:...
If one only wants to index certain span of blockchain and/or only transactions interesting for their usecase then some optional new params like: * indexFrom * indexTo * transactionFilter would...
Fixes #55 `parse_bytecode_pattern_redeem_fix` tries to parse coinbase unlocking bytecodes which (are non-scripts) and fails pushdata interpretations. Added unhandled exception handler to fix this.