Skip to content

Instantly share code, notes, and snippets.

View jcstein's full-sized avatar

Josh Stein jcstein

View GitHub Profile
2025-02-14T16:27:19.517-0500 INFO header/store store/store.go:367 new head {"height": 4692139, "hash": "1EB2B23ADD5542D71FA9FECDEABCB8C88020403A667342CD9BF5544F3272AEAE"}
2025-02-14T16:27:19.517-0500 INFO header/store store/store.go:367 new head {"height": 4692140, "hash": "57742216E6A368FD021E65C23EE475BAECACB65EE990C80C208C6DA1922AFF68"}
2025-02-14T16:27:19.517-0500 INFO header/sync sync/sync.go:234 finished syncing headers {"from": 4692134, "to": 4692140, "elapsed time": 0.394386}
2025-02-14T16:27:20.554-0500 INFO canonical-log swarm/swarm_dial.go:620 CANONICAL_PEER_STATUS: peer=12D3KooWK5GcxBuPLSiRLgzUr2a6SXgW3tC85SU5b52JhxwD3yr3 addr=/ip4/217.28.49.93/udp/2121/quic-v1 sample_rate=100 connection_status="established" dir="outbound"
2025-02-14T16:27:23.094-0500 INFO basichost basic/natmgr.go:112 DiscoverNAT error:no NAT found
2025-02-14T16:27:24.106-0500 INFO header/store store/store.go:367 new head {"height": 4692141, "hash": "F3E06DF128B523C3765BC37117891558B6303FDE955505AA30EC078C2F8AB98B"}
2025-02-14T16
cargo run -- quicknode 9 197278
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
Running `target/debug/dummy_rollup quicknode 9 197278`
Note: CELESTIA_NODE_AUTH_TOKEN not set. Make sure to either:
1. Set CELESTIA_NODE_AUTH_TOKEN environment variable, or
2. Use --rpc.skip-auth when starting your Celestia node
Starting continuous blob submission. Press Ctrl+C to stop.
Submitting batches of 9 blobs, each 197278 bytes, with namespace 'quicknode'
Batch submitted successfully!
Result height: 4670607
2025-02-12T18:37:19.376-0500 INFO header/store store/store.go:367 new head {"height": 4659571, "hash": "9D3E6313C72ACA955057A1830A403B15AA46A9E6FB12A4296BA3F9D46334CF47"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWKi6KA4Px3sgEPMPxwvexx8wmg2tQqbUwLXS3vCo5pYZp", "err": "i/o deadline reached"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWR6eCBXNcxgehiUHrzK3UQS1yGDpHgxM77eb5u4ieUima", "err": "read deadline exceeded: i/o timeout"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWLBEpFH54Q8ofQ5dLjFwXCom9BqUKJyP2d7A9oCXg5Kvo", "err": "i/o deadline reached"}
2025-02-12T18:51:14.198-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWHBUDqZndPd9mXzxcPbGLExfJHxh217BKUSzAzqEAiQHC", "err": "i/o deadline reached"}
2025-02-12T18:51:14.198-0500 WARN header/sync sync/sync_head.go:46 failed to get recent head, retu
@jcstein
jcstein / recoverfunds.sh
Created January 13, 2025 21:46
recover funds (from txsim)
#!/bin/bash
# Target address to send to
TARGET_ADDRESS="celestia1nqf3yn9mjuuldgxqrkj5fgca2tsy4p4a98e2vj"
# Directory containing the key files
KEYRING_DIR=".celestia-app/keyring-test"
# Function to get balance
get_balance() {
./celestia-start.sh
Cleaning previous logs...
Checking for existing processes and containers...
env file /Users/js/nitro-testnode/blockscout/nitro.env not found: stat /Users/js/nitro-testnode/blockscout/nitro.env: no such file or directory
Cloning celestia-node repository...
Cloning into 'celestia-node'...
remote: Enumerating objects: 31852, done.
remote: Counting objects: 100% (1574/1574), done.
remote: Compressing objects: 100% (778/778), done.
remote: Total 31852 (delta 958), reused 1245 (delta 753), pack-reused 30278 (from 1)
celestia version
Semantic version: v0.20.4-test1-3-gc5008b61
Commit: c5008b61dab4379864de24302df9dc0089903c77
Build Date: Thu Dec 5 14:40:10 EST 2024
System version: arm64/darwin
Golang version: go1.23.2
celestia light start --core.ip https://clean-damp-snowflake.celestia-mainnet.quiknode.pro/cdb1b3af1f4f7d841e948ed4a62cae4d4c1ee722
2024-12-05T14:49:54.056-0500 INFO node nodebuilder/module.go:27 Accessing keyring...
2024-12-05T14:49:54.064-0500 INFO badger4 [email protected]/levels.go:171 All 6 tables opened in 1ms
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"