Skip to content

Custon chain - local and remote archive nodes not being recognised as archive nodes. #19

@dreaded369

Description

@dreaded369

This is a basic set up with:

chains:
  mainnet:
    rpcs:
      - "https://rpc-ethereum.g4mm4.io"
    enabled: false
    chainId: 1                  

  pulsechain:
    rpcs:
      - "https://rpc.pulsechain.com"         # Fallback
      - "http://192.168.1.103:8545"
    enabled: true
    chainId: 369 
    symbol: "PLS"

Running with mainnet enabled: true works OK (although it downloads rather then scrapes from scratch)
Running with mainnet enabled: false and pulsechain enabled:true it stalls because it doesn't recignise the archive nodes being archived nodes. Testing on a local and remotr archive node.

logs:

core-1  | 2025-06-24T00:53:36Z INFO     Starting khedra daemon...config loaded...
core-1  | 2025-06-24T00:53:36Z PROG     Connected to                    chain=pulsechain 
core-1  | 2025-06-24T00:53:36Z INFO     Processing chains...            chainList=pulsechain 
core-1  | 2025-06-24T00:53:36Z INFO     Paths:                          indexPath=/root/.khedra/data/unchained 
core-1  | 2025-06-24T00:53:36Z INFO                                     cachePath=/root/.khedra/data/cache 
core-1  | 2025-06-24T00:53:36Z PROG     environment                     TB_SETTINGS_DEFAULTCHAIN=mainnet 
core-1  | 2025-06-24T00:53:36Z PROG     environment                     XDG_CONFIG_HOME=/root/.local/share/trueblocks 
core-1  | 2025-06-24T00:53:36Z PROG     environment                     TB_SETTINGS_INDEXPATH=/root/.khedra/data/unchained 
core-1  | 2025-06-24T00:53:36Z PROG     environment                     TB_SETTINGS_CACHEPATH=/root/.khedra/data/cache 
core-1  | 2025-06-24T00:53:36Z PROG     environment                     TB_CHAINS_PULSECHAIN_RPCPROVIDER=https://rpc.pulsechain.com 
core-1  | 2025-06-24T00:53:36Z PROG     Starting services               services=monitor,api,scraper 
core-1  | 2025-06-24T00:53:36Z INFO     Config file found               fn=/root/.local/share/trueblocks/trueBlocks.toml 
core-1  | 2025-06-24T00:53:36Z INFO     chifra config loaded
core-1  | 2025-06-24T00:53:36Z INFO     checking                        configFile=/root/.local/share/trueblocks/trueBlocks.toml nChains=1 
core-1  | 2025-06-24T00:53:36Z INFO     Starting khedra daemon          services=4 
core-1  | 2025-06-24T00:53:36Z INFO     Starting all services...
core-1  | 2025-06-24T00:53:36Z INFO     Service started                 name=control 
core-1  | 2025-06-24T00:53:36Z INFO     Service started                 name=scraper 
core-1  | 2025-06-24T00:53:36Z INFO     Service started                 name=monitor 
core-1  | 2025-06-24T00:53:36Z INFO     Service started                 name=api 
core-1  | 2025-06-24T00:53:36Z INFO     All services started successfully
core-1  | 2025-06-24T00:53:36Z INFO     Starting service                name=control 
core-1  | 2025-06-24T00:53:36Z INFO     Starting service                name=scraper 
core-1  | 2025-06-24T00:53:36Z INFO     Scraper initialization started
core-1  | 2025-06-24T00:53:36Z INFO     Initializing unchained index
core-1  | 2025-06-24T00:53:36Z INFO     Control Service starting        address=:8338 
core-1  | 2025-06-24T00:53:36Z INFO     Starting service                name=api 
core-1  | 2025-06-24T00:53:36Z INFO     Service started successfu       name=control 
core-1  | 2025-06-24T00:53:36Z INFO     API service initialized.        url=localhost:8080 
core-1  | 2025-06-24T00:53:36Z INFO     API service Process() invoked.
core-1  | 2025-06-24T00:53:36Z INFO     API service process running.
core-1  | 2025-06-24T00:53:36Z INFO     Service started successfu       name=api 
core-1  | WARN[24-06|00:53:40.213] no record found in the Unchained Index for database pulsechain-ts from publisher 0x02f2b09b33fdbd406ead954a31f98bd29a2a3492
core-1  | INFO[24-06|00:53:40.858] Server URL:         localhost:8080
core-1  | INFO[24-06|00:53:40.858] RPC Provider:       https://rpc.flashbots.net
core-1  | INFO[24-06|00:53:40.858] Root Config Path:   /root/.local/share/trueblocks
core-1  | INFO[24-06|00:53:40.859] Chain Config Path:  /root/.local/share/trueblocks/config/mainnet
core-1  | INFO[24-06|00:53:40.859] Cache Path:         /root/.khedra/data/cache/mainnet
core-1  | INFO[24-06|00:53:40.859] Index Path:         /root/.khedra/data/unchained/mainnet
core-1  | INFO[24-06|00:53:41.594] Progress:           22770829, 20785534, 20785534, 20785534, ts: 20786422
core-1  | WARN[24-06|00:53:42.010] Error during initialization error no record found in the Unchained Index for database pulsechain from publisher 0x02f2b09b33fdbd406ead954a31f98bd29a2a3492
core-1  | 2025-06-24T00:53:42Z WARN     No record found in the Un       chain=pulsechain 
core-1  | 2025-06-24T00:53:42Z INFO     Scraper initialization complete
core-1  | 2025-06-24T00:53:42Z INFO     Starting scraper process        sleep=10 targets=[pulsechain] 
core-1  | 2025-06-24T00:53:42Z INFO     Service started successfu       name=scraper 
core-1  | WARN[24-06|00:53:43.836] no record found in the Unchained Index for database pulsechain-ts from publisher 0x02f2b09b33fdbd406ead954a31f98bd29a2a3492
core-1  | 2025-06-24T00:53:45Z WARN     Error scraping chain            chain=pulsechain error=chifra scrape requires an archive node, try chifra init instead. 
core-1  | 2025-06-24T00:53:46Z INFO     All chains caught up
core-1  | WARN[24-06|00:53:58.254] no record found in the Unchained Index for database pulsechain-ts from publisher 0x02f2b09b33fdbd406ead954a31f98bd29a2a3492
core-1  | 2025-06-24T00:53:59Z WARN     Error scraping chain            chain=pulsechain error=chifra scrape requires an archive node, try chifra init instead. 

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