Skip to content

Instantly share code, notes, and snippets.

View jcstein's full-sized avatar

Josh Stein jcstein

View GitHub Profile
4:54PM INF starting node with ABCI Tendermint in-process
4:54PM INF service start impl=multiAppConn module=proxy msg={}
4:54PM INF service start connection=query impl=localClient module=abci-client msg={}
4:54PM INF service start connection=snapshot impl=localClient module=abci-client msg={}
4:54PM INF service start connection=mempool impl=localClient module=abci-client msg={}
4:54PM INF service start connection=consensus impl=localClient module=abci-client msg={}
4:54PM INF service start impl=EventBus module=events msg={}
4:54PM INF service start impl=PubSub module=pubsub msg={}
4:54PM INF service start impl=IndexerService module=txindex msg={}
4:54PM INF Found local state with non-zero height, skipping state sync
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 3 columns, instead of 1 in line 9.
Source,Target,Status Code
https://docs.celestia.org/nodes/arabica-devnet,https://docs.celestia.org/how-to-guides/arabica-devnet,301
https://docs.celestia.org/developers/arbitrum-bridge,https://docs.celestia.org/how-to-guides/arbitrum-bridge,301
https://docs.celestia.org/developers/arbitrum-deploy,https://docs.celestia.org/how-to-guides/arbitrum-deploy,301
https://docs.celestia.org/developers/arbitrum-full-node,https://docs.celestia.org/how-to-guides/arbitrum-full-node,301
https://docs.celestia.org/developers/arbitrum-integration,https://docs.celestia.org/how-to-guides/arbitrum-integration,301
https://docs.celestia.org/developers/blobstream-contracts,https://docs.celestia.org/how-to-guides/blobstream-contracts,301
https://docs.celestia.org/developers/blobstream-offchain,https://docs.celestia.org/how-to-guides/blobstream-offchain,301
https://docs.celestia.org/developers/blobstream-proof-queries,https://docs.celestia.org/how-to-guides/blobstream-proof-queries,301
https://docs.celestia.org/developers/blobstream-r
@jcstein
jcstein / shwap-tui.py
Created September 27, 2024 01:26
TUI for network sync stats
import curses
import subprocess
import time
import json
import os
def get_stats():
try:
result = subprocess.check_output("celestia das sampling-stats", shell=True).decode().strip()
stats = json.loads(result)['result']
TOTAL_BLOBS=$(curl -s https://api.celenium.io/v1/head | jq '.total_blobs_size')
SIZE_IN_GB=$(echo "scale=3; $TOTAL_BLOBS / (1024 * 1024 * 1024)" | bc)
echo "Total blobs size in gigabytes: ${SIZE_IN_GB} GB"
--> Generating OpenRPC spec
{
"openrpc": "1.2.6",
"info": {
"title": "Celestia Node API",
"description": "The Celestia Node API is the collection of RPC methods that can be used to interact with the services provided by Celestia Data Availability Nodes.",
"version": "v0.13.2-14-g8b569ad9"
},
"externalDocs": {
"description": "Celestia Node GitHub",
2024-04-18T20:42:09.140-0400 INFO das das/worker.go:148 sampled header {"type": "recent", "height": 1639315, "hash": "3814D708A07D4E0D8C79E9746E890CA7BD6A47FE530AA4CEBD7413C5A4EC2B7D", "square width": 64, "data root": "E5614F3603EE4756988131DC4C70D88CFEC8248768AA3AB2AEAB29B4A60E3238", "finished (s)": 0.000005333}
2024-04-18T20:42:12.629-0400 INFO bitswap-server server/server.go:547 Bitswap Client ReceiveError: stream reset
2024-04-18T20:42:21.209-0400 INFO header/store store/store.go:375 new head {"height": 1639316, "hash": "71B6A851ECAA30DB380D5F9CF8994DE9CCB279AF669C212CF17E55A3EBED92CC"}
2024-04-18T20:42:21.210-0400 INFO das das/worker.go:148 sampled header {"type": "recent", "height": 1639316, "hash": "71B6A851ECAA30DB380D5F9CF8994DE9CCB279AF669C212CF17E55A3EBED92CC", "square width": 64, "data root": "8193BF804F997D0AC790259F9195B57C72B457FE4DE49EDAFDD870BE9612F7A0", "finished (s)": 0.000019167}
goroutine 24761 [running]:
runtime/debug.Stack()
/Users/joshstein/go/pkg/mod/golang.org/[email protected]
$ docker logs orbit-setup-script-nitro-1 | grep 'unsupported block number'
INFO [03-28|19:12:38.652] using existing jwt file filename=/home/user/.arbitrum/jwtsecret
INFO [03-28|19:12:38.652] Running Arbitrum nitro node revision=development vcs.time=development
INFO [03-28|19:12:39.146] connected to l1 chain l1url=wss://rpc.ankr.com/arbitrum_sepolia/ws/445df1f903517e3ce3e857b99cd7a489f473107292b15844f9c2ea68063c674f l1chainid=421,614
INFO [03-28|19:12:39.171] retaining ability to lookup full transaction history as archive mode is enabled
INFO [03-28|19:12:39.213] Using leveldb as the backing database
INFO [03-28|19:12:39.213] Allocated cache and file handles database=/home/user/.arbitrum/TiatoxJosho/nitro/l2chaindata cache=16.00MiB handles=16 readonly=true
INFO [03-28|19:12:39.216] Using LevelDB as the backing database
INFO [03-28|19:12:39.217] Opened ancient database database=/home/user/.arbitrum/TiatoxJosho/nitro/l2chaindata/ancient/ch
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
20a8730f79ee nginx "/docker-entrypoint.…" 19 hours ago Up 19 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:8080-8081->8080-8081/tcp, :::8080-8081->8080-8081/tcp proxy
40badbbaba8a ghcr.io/blockscout/frontend:v1.21.2 "./entrypoint.sh nod…" 19 hours ago Up 19 hours 3000/tcp frontend
f76a41d1237a ghcr.io/blockscout/stats:latest "./stats-server" 19 hours ago Up 19 hours stats
eb03b075fe31 blockscout/blockscout:6.0.0 "sh -c 'bin/blocksco…" 19 hours ago Up 19 hours
2024-03-27 22:34:04 INFO [03-28|02:34:04.359] Blockchain stopped
2024-03-28 09:59:38 INFO [03-28|13:59:38.663] using existing jwt file filename=/home/user/.arbitrum/jwtsecret
2024-03-28 09:59:38 INFO [03-28|13:59:38.664] Running Arbitrum nitro node revision=development vcs.time=development
2024-03-28 09:59:38 INFO [03-28|13:59:38.948] connected to l1 chain l1url=wss://arb-sepolia.g.alchemy.com/v2/VTu35LXi1jMXgZmHj67QutaoSi1IlA41 l1chainid=421,614
2024-03-28 09:59:39 INFO [03-28|13:59:39.003] retaining ability to lookup full transaction history as archive mode is enabled
2024-03-28 09:59:39 INFO [03-28|13:59:39.067] Using leveldb as the backing database
2024-03-28 09:59:39 INFO [03-28|13:59:39.067] Allocated cache and file handles database="/home/user/.arbitrum/Arbitrum L3 Rollup/nitro/l2chaindata" cache=16.00MiB handles=16 readonly=true
2024-03-28 09:59:39 INFO [03-28|13:59:39.078] Using LevelDB as the backing database
2024-03-28 09:59:39 INFO [03-2
2024-03-27 19:41:53 INFO [03-27|23:41:53.438] created jwt file filename=/home/user/.arbitrum/jwtsecret
2024-03-27 19:41:53 INFO [03-27|23:41:53.439] Running Arbitrum nitro node revision=development vcs.time=development
2024-03-27 19:41:53 INFO [03-27|23:41:53.785] connected to l1 chain l1url=wss://arb-sepolia.g.alchemy.com/v2/VTu35LXi1jMXgZmHj67QutaoSi1IlA41 l1chainid=421,614
2024-03-27 19:41:53 INFO [03-27|23:41:53.856] retaining ability to lookup full transaction history as archive mode is enabled
2024-03-27 19:41:53 INFO [03-27|23:41:53.931] Using leveldb as the backing database
2024-03-27 19:41:53 INFO [03-27|23:41:53.932] Allocated cache and file handles database="/home/user/.arbitrum/Arbitrum L3 Rollup/nitro/l2chaindata" cache=16.00MiB handles=16 readonly=true
2024-03-27 19:41:53 INFO [03-27|23:41:53.933] Using leveldb as the backing database
2024-03-27 19:41:53 INFO [03-27|23:41:53.933] Allocated cache and file handles database=