Skip to content

Instantly share code, notes, and snippets.

View czepluch's full-sized avatar

Jacob Stenum Czepluch czepluch

  • epoch73
  • Copenhagen, Denmark
View GitHub Profile
01 Sep 13:25:12 | Received ForkChoice: (Head: 0x4dee39...a8107a, Safe: 0xa01338...197fb4, Finalized: 0xb9d7dc...028652)
01 Sep 13:25:12 | Syncing beacon headers, Request: ForkChoice: (Head: 0x4dee39...a8107a, Safe: 0xa01338...197fb4, Finalized: 0xb9d7dc...028652)
01 Sep 13:25:17 | Changing state FastSync, SnapSync to SnapSync at processed:0|state:0|block:18041953|header:18041953|target block:18041985|peer block:18041985
01 Sep 13:25:17 | Sync mode changed from FastSync, SnapSync to SnapSync
01 Sep 13:25:24 | Snap State Ranges (Phase 1): ( 0.40 %) [ ]
01 Sep 13:25:24 | Received new block: 18041986 (0x9aca56bcc1d1e7baaf32e01eee15dd117a688ca15d781566839e9d7c19ae186e)
01 Sep 13:25:24 | Syncing... Inserting block 18041986 (0x9aca56...ae186e).
01 Sep 13:25:25 | Received ForkChoice: (Head: 0x9aca56...ae186e, Safe: 0xa01338...197fb4, Finalized: 0xb9d7dc...028652)
01 Sep 13:25:25 | Syncing beacon headers, Request: Fo
This file has been truncated, but you can view the full file.
"0x02f90394018203a98402faf08085746a528800830f424094fb2bfc368a7edfd51aa2cbec513ad50edea74e8480b903244a5ae51d000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000f8000000000000000300000000000000000000127e00000000000000000000000019330d10d9cc8751218eaf51e8885d058642e08a000000000000000000000000bd3fa81b58ba92a82136038b25adec7066af31550000000000000000000000005ac8fd6feaa29ed021c968adfe79d9e77d98aa0600000000000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000fb2bfc368a7edfd51aa2cbec513ad50edea74e84000000000000000000000000000000000000000000000000000000005d9098ff000000000000000000000000fb2bfc368a7edfd51aa2cbec513ad50edea74e84000000000000000000000000000000000000000000000000000000000000000000000000000000821f470630d42d3b96a
@czepluch
czepluch / lodestar.txt
Created August 30, 2023 19:52
Lodestar syncing behavior
Aug-30 19:45:54.586[] info: Syncing - 15 minutes left - 1.13 slots/s - slot: 7216727 - head: 7215679 0x0f5e…6169 - exec-block: valid(18028542 0x2955…) - finalized: 0xa8a2…0055:225488 - peers: 25
Aug-30 19:46:05.001[] info: Syncing - 15 minutes left - 1.16 slots/s - slot: 7216728 - head: 7215679 0x0f5e…6169 - exec-block: valid(18028542 0x2955…) - finalized: 0xa8a2…0055:225488 - peers: 27
Aug-30 19:46:17.593[] info: Syncing - 14 minutes left - 1.20 slots/s - slot: 7216729 - head: 7215711 0x8eda…210b - exec-block: valid(18028574 0xcce3…) - finalized: 0xc0fc…a0f3:225489 - peers: 25
Aug-30 19:46:29.005[] info: Syncing - 13 minutes left - 1.26 slots/s - slot: 7216730 - head: 7215711 0x8eda…210b - exec-block: valid(18028574 0xcce3…) - finalized: 0xc0fc…a0f3:225489 - peers: 27
Aug-30 19:46:42.703[] info: Syncing - 12 minutes left - 1.34 slots/s - slot: 7216731 - head: (slot -988) 0xb133…06b6 - exec-block: valid(18028606 0xef31…) - finaliz
INFO [07-10|19:40:00.674] Imported new potential chain segment number=17,665,394 hash=214583..b18900 blocks=1 txs=167 mgas=12.536 elapsed=401.459ms mgasps=31.226 dirty=483.96MiB
INFO [07-10|19:40:00.701] Chain head was updated number=17,665,394 hash=214583..b18900 root=a0866f..550c3d elapsed=7.428631ms
INFO [07-10|19:40:12.151] Imported new potential chain segment number=17,665,395 hash=9ec4d7..c2fe0f blocks=1 txs=184 mgas=18.248 elapsed=274.441ms mgasps=66.492 dirty=484.48MiB
INFO [07-10|19:40:12.175] Chain head was updated number=17,665,395 hash=9ec4d7..c2fe0f root=b7ba48..8a0030 elapsed=8.338737ms
INFO [07-10|19:40:25.321] Imported new potential chain segment number=17,665,396 hash=10bb49..0f011d blocks=1 txs=124 mgas=10.515 elapsed=963.331ms mgasps=10.915 dirty=484.26MiB
INFO [07-10|19:40:25.340] Chain head was updated number=17,665,396 hash=10bb49..0f011d root=44f4f1..1e1484 elapsed=4.572111ms
INFO [07-10|19:40:50.035] Impor
@czepluch
czepluch / contenct.json
Created December 16, 2020 11:31
Raiden Paywall
GET <host>/article X-Raiden-Paywall-Id:6698198773460665359
Here is the actual content, thank you for paying 0.0001 tokens!
@czepluch
czepluch / response.json
Created December 16, 2020 11:29
Raiden Paywall
GET <host>/article
{
"payment": {
"amount": "0.000100000000000000",
"id": "6698198773460665359",
"receiver": {
"address": "0x11faFfcc7Aa31d731a8Cf6e998216731ed78D7AF",
"network_id": 5
},
@czepluch
czepluch / route.py
Created December 16, 2020 11:27
Raiden Paywall
@app.route("/article")
def article():
paywall.amount += Decimal('0.0001')
if not paywall.check_payment():
return paywall.preview("You will only see a preview")
return f"Here is the actual content, thank you for paying {str(paywall.amount)} token!"
@czepluch
czepluch / flask_app.py
Created December 16, 2020 11:23
Raiden Paywall
from decimal import Decimal
from flask import Flask
from flask_cors import CORS
# import the raiden paywall flask extension from:
# https://github.com/raiden-network/paywall/tree/master/server
from raiden_paywall import RaidenPaywall
app = Flask(__name__)
import requests
import time
def payment():
return requests.post('http://localhost:5001/api/v1/payments/0x6B175474E89094C44Da98b954EedeAC495271d0F/0xa787FA214a168Efa12aE01E9b614DE9a4D81Ccf6',
headers={ 'Content-Type': 'application/json', }, json={ 'amount': 1000000000000000 })
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreiffbt74jwbatlx6i334y3oct3oo3ql36az3gdvsyrbmkitksw5ukm ✅
Create your profile today to start building social connection and trust online at https://3Box.io/