Skip to content

Instantly share code, notes, and snippets.

View brenzi's full-sized avatar

brenzi

View GitHub Profile
@brenzi
brenzi / gist:ca9e0c326198c73ff2dd0a2e74468053
Last active May 7, 2024 11:30
instructions to trace fees on encointer
git clone https://github.com/encointer/encointer-parachain.git
git checkout ab/collator-selection
cargo build --release
zombienet-linux-x64 spawn --provider native zombienet/rococo-local-with-encointer.toml
#next terminal
git clone https://github.com/encointer/encointer-node.git
cd client
cargo build --release
# demo community with Alice, Bob, Charlie. this will take a moment
Apr 18 11:57:18 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:18 [Relaychain] 💤 Idle (9 peers), best: #22790624 (0xed99…fc30), finalized #22790619 (0x7b1f…29f4), ⬇ 232.1kiB/s ⬆ 290.8kiB/s
Apr 18 11:57:21 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:21 [Parachain] 💤 Idle (17 peers), best: #5266207 (0x2d6b…827c), finalized #5266206 (0xec97…f849), ⬇ 57 B/s ⬆ 57 B/s
Apr 18 11:57:23 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:23 [Relaychain] 💤 Idle (9 peers), best: #22790624 (0xed99…fc30), finalized #22790622 (0x600d…0480), ⬇ 206.3kiB/s ⬆ 855.3kiB/s
Apr 18 11:57:24 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:24 [Relaychain] ✨ Imported #22790625 (0xcc01…5f3e)
Apr 18 11:57:26 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:26 [Parachain] 💤 Idle (17 peers), best: #5266207 (0x2d6b…827c), finalized #5266206 (0xec97…f849), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
Apr 18 11:57:28 chainbrick04 encointer-collator[468]: 2024-04-18 11:57:28 [Relaychain] 💤 Idle (9 peers), best: #22790625 (0xcc01…5
This file has been truncated, but you can view the full file.
[2024-04-07T14:18:06.097971Z INFO its_consensus_common::block_import] Applying state diff for block 1028242 of size 219 bytes
[2024-04-07T14:18:06.098133Z INFO its_state::impls] Current state size: 2597
[2024-04-07T14:18:06.098985Z INFO its_consensus_common::block_import] Applying state update from block 1028242 took 1 ms
[2024-04-07T14:18:06.099252Z INFO its_consensus_common::block_import] Importing block 1028242 took 63 ms
[Sidechain] imported block (number: 1028242, tcalls: 0, author: 0xd5af4118cfbe99a94626d14cd004c41eb05b4e98f559f432dfc5a5f2c8392584), based on parentchain block 81250
[2024-04-07T14:18:06.132130Z INFO aura] Claiming slot (1712499486)
[Sidechain] propose block 1028243 summary: executed 0, failed 0, from 0 in queue in 630ms
[2024-04-07T14:18:06.168962Z INFO its_consensus_slots] Proposing sidechain block (number: 1028243, hash: 0xbff7…84db) based on integritee parentchain block (number: 81250, hash: 0xde8205ebbcee3f90660c5a4e015d11262600f2d07ac12554e1b4f4437fba16f7)
[2024-04-07T14:18:06
{"jsonrpc":"2.0"
"result":["0x35038400d5af4118cfbe99a94626d14cd004c41eb05b4e98f559f432dfc5a5f2c8392584000fdbab1c43040b4b03751a3e4decde03e0969bb1c5e1c7d1e95788376a5935362c7bc5f682c5ba04c651e29085652135e6605716c5dfb7c315295d166039f80500e93b003601496e636f676e69746565546573746e6574303030303030303030303030303033d3cada17c76f6207e0c6b7e16c2d59ee0966bccd1ae654bd23f72096f50bbca65021000034a62e525e9f4cd4e2d2f7ca524e43af543cc9dac3a8e85457a63a581b4174fc"
"0x69038400d5af4118cfbe99a94626d14cd004c41eb05b4e98f559f432dfc5a5f2c8392584008ce9e70916d72e09f9bc1390c2a56d5ad0d5478ad20b72a20c87da6d88e1682af683b10443cc672cce5be66efdd6996f21ea0797511308da4be24e6cd9e1e90e00ed3b003500496e636f676e69746565546573746e6574303030303030303030303030303033019d3f010000000000c551257a32f10cb7c7be7b64f695e2629d78b41ad124a102a971653c3d42b23ec53f010000000000a8976e48ebedee3e0a564a73a5988d1bb941d0bf9da5de5f22bc1715cfe0bff0"
"0x35038400d5af4118cfbe99a94626d14cd004c41eb05b4e98f559f432dfc5a5f2c83925840086f94daae303f434f0d2723d12e114a3147c9b1cafd4b0809656cb89
This file has been truncated, but you can view the full file.
aesm_service: warning: Turn to daemon. Use "--no-daemon" option to execute in foreground.
[2024-03-27T14:53:56.977Z INFO integritee_service::config] Starting service in existing directory /opt/sidechain.
[2024-03-27T14:53:56.977Z INFO integritee_service::main_impl] *** Starting service in SGX production mode
[2024-03-27T14:53:56.977Z INFO integritee_service::main_impl] *** Running worker in mode: Sidechain
[2024-03-27T14:53:57.007Z INFO integritee_service::enclave::api] [+] Home dir is /root
[2024-03-27T14:53:57.007Z INFO integritee_service::enclave::api] [-] Token file /root/enclave.token not found! Will create one.
[2024-03-27T14:53:59.453813Z INFO enclave_runtime] Setting base_dir to /opt/sidechain
[2024-03-27T14:53:59.455363Z INFO enclave_runtime::initialization] [Enclave initialized] Ed25519 prim raw : [213, 175, 65, 24, 207, 190, 153, 169, 70, 38, 209, 76, 208, 4, 196, 30, 176, 91, 78, 152, 245, 89, 244, 50, 223, 197, 165, 242, 200, 57, 37, 132]
Worker Config: Config { integritee_rpc_url: "
@brenzi
brenzi / gist:57db7f9928bf4307f5e5a6e7f29f9399
Created March 27, 2024 15:23
node logs during loss of nonce
2024-03-27 14:34:14.477 INFO main sc_cli::runner: Integritee Collator
2024-03-27 14:34:14.477 INFO main sc_cli::runner: ✌️ version 1.9.4-41804b807e0
2024-03-27 14:34:14.477 INFO main sc_cli::runner: ❤️ by Integritee AG <hello@integritee.network>, 2019-2024
2024-03-27 14:34:14.477 INFO main sc_cli::runner: 📋 Chain specification: Integritee Testnet on Paseo
2024-03-27 14:34:14.477 INFO main sc_cli::runner: 🏷 Node name: integritee-paseo-1
2024-03-27 14:34:14.477 INFO main sc_cli::runner: 👤 Role: FULL
2024-03-27 14:34:14.477 INFO main sc_cli::runner: 💾 Database: RocksDb at /data/chains/integritee-paseo/db/full
2024-03-27 14:34:15.641 INFO main integritee_collator::command: Parachain Account: 5Ec4AhPXwiUhF3u21i56Uxc5XFUNEkKAq79kutWUAx1jyz47
2024-03-27 14:34:15.641 INFO main integritee_collator::command: Is collating: no
2024-03-27 14:34:18.396 WARN main sync: [Relaychain] Can't use warp sync mode with a partially synced database. Reverting to full sync mode.
@brenzi
brenzi / gist:db0857831d4a453613c72df425c2719a
Created March 27, 2024 14:37
validateer when tx-pool fills up , node restart, recover...
[2024-03-27T14:34:11.045940Z INFO its_consensus_common::block_import] Applying state update from block 80261 took 0 ms
[2024-03-27T14:34:11.046088Z INFO its_consensus_common::block_import] Importing block 80261 took 23 ms
[Sidechain] imported block (number: 80261, tcalls: 0, author: 0xd5af4118cfbe99a94626d14cd004c41eb05b4e98f559f432dfc5a5f2c8392584), based on parentchain block 8349
[2024-03-27T14:34:11.077838Z INFO aura] Claiming slot (1711550051)
[Sidechain] propose block 80262 summary: executed 0, failed 0, from 0 in queue in 652ms
[2024-03-27T14:34:11.097221Z INFO its_consensus_slots] Proposing sidechain block (number: 80262, hash: 0x85ec…6e56) based on integritee parentchain block (number: 8349, hash: 0x3d6d2b9bcd214cd6dbec62e7bb61365c1c4b0cf6e99e1255d3849a03089b7dc8)
[2024-03-27T14:34:11.097Z INFO integritee_service::ocall_bridge::sidechain_ocall] Enclave produced sidechain blocks: [80262]
[2024-03-27T14:34:11.111Z INFO integritee_service::worker] broadcast 1 block(s) to 1 peers
[2024-03-27T14:34:1
@brenzi
brenzi / gist:027322585691aeb5383433f233c8c050
Created March 27, 2024 14:28
sidechain fills tx pool
This file has been truncated, but you can view the full file.
2024-03-27 14:22:05.079 ERROR tokio-runtime-worker jsonrpsee_server::transport::ws: WS transport error: i/o error: Connection reset by peer (os error 104); terminate connection: 238020
2024-03-27 14:22:06.116 ERROR tokio-runtime-worker jsonrpsee_server::transport::ws: WS transport error: i/o error: Connection reset by peer (os error 104); terminate connection: 238040
2024-03-27 14:22:06.467 INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #524548 (0x8243…15c5)
2024-03-27 14:22:06.467 DEBUG tokio-runtime-worker txpool: [Relaychain] resolve hash: 0x8243d089af6c9f5c44986ae0ba00bc7024b8abb338f5a977dece62ed4e3115c5 finalized: false tree_route: (common HashAndNumber { number: 524547, hash: 0x4e3350eb495869227755e178205e9fe065120dfc525341c92ee839d64a0567f4 }, last Some(HashAndNumber { number: 524548, hash: 0x8243d089af6c9f5c44986ae0ba00bc7024b8abb338f5a977dece62ed4e3115c5 })) best_block: 0x4e3350eb495869227755e178205e9fe065120dfc525341c92ee839d64a0567f4 finalized_block:0x2c876af44bcbd7b9378a6140deaa
@brenzi
brenzi / gist:4c585015df7ad9ca1c84ba1378c1c028
Created March 26, 2024 16:31
XCM reserve transfer trapped
2024-03-26 17:13:06.012 INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #91 (0x1660…1aaf)
2024-03-26 17:13:06.015 INFO tokio-runtime-worker sc_basic_authorship::basic_authorship: [Parachain] 🙌 Starting consensus session on top of parent 0x051b6032fa848d978dd8a300fbc5063d71ec6f9a201f8f0658453eb7e6901488
2024-03-26 17:13:06.016 TRACE tokio-runtime-worker xcm::weight: [Parachain] FixedWeightBounds message: Xcm([ReserveAssetDeposited(MultiAssets([MultiAsset { id: Concrete(MultiLocation { parents: 1, interior: Here }), fun: Fungible(10000000000) }])), ClearOrigin, BuyExecution { fees: MultiAsset { id: Concrete(MultiLocation { parents: 1, interior: Here }), fun: Fungible(10000000000) }, weight_limit: Unlimited }, DepositAsset { assets: Wild(AllCounted(1)), beneficiary: MultiLocation { parents: 0, interior: X1(AccountId32 { network: None, id: [124, 119, 197, 249, 90, 114, 193, 158, 5, 18, 51, 179, 177, 224, 29, 247, 78, 193, 60, 177, 97, 177, 9, 252, 95, 22, 206, 28, 101, 49, 111, 36] }) } },
@brenzi
brenzi / gist:5b4daffbf58f2e21a8257aacd467202e
Created March 25, 2024 17:09
integritee-paseo brick 538
Mar 25 17:01:36 iro-node-01 integritee-collator[7992]: 2024-03-25 17:01:36.057 INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #497343 (0xc225…0f6f)
Mar 25 17:01:36 iro-node-01 integritee-collator[7992]: 2024-03-25 17:01:36.144 INFO tokio-runtime-worker substrate: [Parachain] ✨ Imported #536 (0x07f6…e862)
Mar 25 17:01:37 iro-node-01 integritee-collator[7992]: 2024-03-25 17:01:37.413 INFO tokio-runtime-worker substrate: [Relaychain] 💤 Idle (12 peers), best: #497343 (0xc225…0f6f), finalized #497340 (0x6931…c27d), ⬇ 29.3kiB/s ⬆ 56.5kiB/s
Mar 25 17:01:37 iro-node-01 integritee-collator[7992]: 2024-03-25 17:01:37.538 INFO tokio-runtime-worker substrate: [Parachain] 💤 Idle (3 peers), best: #536 (0x07f6…e862), finalized #533 (0xfa72…a8eb), ⬇ 1.1kiB/s ⬆ 0.4kiB/s
Mar 25 17:01:40 iro-node-01 integritee-collator[7992]: 2024-03-25 17:01:40.060 DEBUG tokio-runtime-worker parachain::validator-discovery: [Relaychain] New ConnectToValidators request peer_set=Collation requested=0 failed_to_resolve=0
Mar 25 1