Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Being skeptical of status feature.

Noel Maersk veox

💭
Being skeptical of status feature.
View GitHub Profile
@veox
veox / geth-les-client-count-by-version.sh
Last active Jan 17, 2019
go-ethereum LES client/server versions and count, ~ at block 7078725 (~1275 blocks before abortive Constantinople fork)
View geth-les-client-count-by-version.sh
% cat $PEERS | grep -A3 'caps: \["les/1", "les/2"\]' | grep "name: \"Geth" | wc -l
481
% MAJMIN='1.8' && for BUGFIX in `seq 1 23`; do echo -n "$MAJMIN.$BUGFIX\t" && cat $PEERS | grep -A3 'caps: \["les/1", "les/2"\]' | grep 'name: \"Geth' | grep -E "v$MAJMIN.$BUGFIX"'[^0-9]' | wc -l; done
1.8.1 6
1.8.2 13
1.8.3 5
1.8.4 1
1.8.5 1
1.8.6 2
1.8.7 10
View pip-freeze.txt
aiohttp==3.5.2
aiohttp-socks==0.2.1
aiorpcX==0.10.1
alabaster==0.7.12
anytree==2.4.3
apipkg==1.5
appdirs==1.4.3
asn1crypto==0.24.0
async-timeout==3.0.1
atomicwrites==1.2.1
View trinity-issue-120.diff
diff --git a/trinity/_utils/datastructures.py b/trinity/_utils/datastructures.py
index 41aee59d..9e7a2e40 100644
--- a/trinity/_utils/datastructures.py
+++ b/trinity/_utils/datastructures.py
@@ -436,7 +436,7 @@ class OrderedTaskPreparation(Generic[TTask, TTaskID, TPrerequisite]):
_dependency_of: StaticMethod[Callable[[TTask], TTaskID]]
# by default, how long should the integrator wait before pruning?
- _default_max_depth = 10000 # not sure how to pick a good default here
+ _default_max_depth = 10 # not sure how to pick a good default here
@veox
veox / 0-slowtests-constantinople
Last active Dec 13, 2018
py-evm slowest blockchain fixtures: durations - why https://github.com/ethereum/py-evm/pull/1579 takes so long in CI (and fails)
View 0-slowtests-constantinople
============================================== slowest 50 test durations ==============================================
102.51s call tests/json-fixtures/test_blockchain.py::test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stStaticCall/static_Return50000_2_d0g0v0.json:static_Return50000_2_d0g0v0_Constantinople:Constantinople]
98.37s call tests/json-fixtures/test_blockchain.py::test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stStaticCall/static_Call50000_sha256_d0g0v0.json:static_Call50000_sha256_d0g0v0_Constantinople:Constantinople]
97.81s call tests/json-fixtures/test_blockchain.py::test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stStaticCall/static_Call50000_d0g0v0.json:static_Call50000_d0g0v0_Constantinople:Constantinople]
78.33s call tests/json-fixtures/test_blockchain.py::test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stStat
View blockchain-fails.cases
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json:InitCollision_d0g0v0_Constantinople]
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json:InitCollision_d1g0v0_Constantinople]
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/InitCollision_d2g0v0.json:InitCollision_d2g0v0_Constantinople]
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json:InitCollision_d3g0v0_Constantinople]
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/sstore_0to0_d3g0v0.json:sstore_0to0_d3g0v0_Constantinople]
test_blockchain_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stSStoreTest/sstore_0to0_d3g1v0.json:sstore_0to0_d3g1v0_Constantinople]
test_blockchain_fixture
@veox
veox / git.diff
Created Dec 10, 2018
py-evm /BlockchainTests diff to get state diff
View git.diff
diff --git a/eth/chains/base.py b/eth/chains/base.py
index ac85ef9c..e8db78d7 100644
--- a/eth/chains/base.py
+++ b/eth/chains/base.py
@@ -703,7 +703,7 @@ class Chain(BaseChain):
# Validate the imported block.
if perform_validation:
- validate_imported_block_unchanged(imported_block, block)
+ #validate_imported_block_unchanged(imported_block, block)
@veox
veox / geth-stureby-byzantium-badblocks.json
Created Nov 27, 2018
Bad blocks according to `veox-stureby-renegade` node (running `geth` v1.8.15)
View geth-stureby-byzantium-badblocks.json
[{
block: {
difficulty: "0x12009e0d",
extraData: "0xd883010813846765746888676f312e31312e32856c696e7578",
gasLimit: "0x7a1200",
gasUsed: "0x0",
hash: "0xcb84c5e9a8d00ccfe5fb4887acff14fbd1d2c583a36531ab5c7ad1ef6a39f474",
logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
miner: "0x3409427b322162dea2296e2c7d969fa0f3b182bf",
mixHash: "0xe99720ae0682797b22a2375b944717961c62d935467224baa34b2e854295a153",
@veox
veox / 1-console.log
Last active Oct 15, 2018
Firefox console log when claiming Livepeer earnings - issue https://github.com/livepeer/livepeerjs/issues/92
View 1-console.log
16:45:04.413 [Show/hide message details.] GET
https://explorer.livepeer.org/accounts/0xf75b78571f6563e8acf1899f682fb10a9248cce8/delegating
[HTTP/2.0 403 Forbidden 887ms]
16:45:05.439 [Show/hide message details.] GET
https://explorer.livepeer.org/static/css/material-components-web.min.css
[HTTP/2.0 304 Not Modified 447ms]
16:45:05.439 [Show/hide message details.] GET
https://explorer.livepeer.org/static/css/main.c300c001.css
[HTTP/2.0 304 Not Modified 447ms]
16:45:05.440 [Show/hide message details.] GET
@veox
veox / geth-constantinople-bad-blocks.json
Created Oct 13, 2018
Output of `debug.getBadBlocks()` by `geth`
View geth-constantinople-bad-blocks.json
[{
block: {
difficulty: "0x3713731fb",
extraData: "0xd883010810846765746888676f312e31302e31856c696e7578",
gasLimit: "0x7a1200",
gasUsed: "0x79fa4d",
hash: "0x250d0cc0497e72815b2bcb1efa95ebd0fc0e1a0811e8f4bfc9fb6b91b00deb75",
logsBloom: "0x028200b79204000003900000480310200421020050216800020884420c00410900026000834100002872412009200048602022000120b003824218312ed0a40602100000422010340000464a900201015942234491244111c021282404110e08188120282a004192e88060220311286000001500005642000000049104803a2401800100c38c701180041005093ab2e1201804080889141490400020184000428248f10440508259528009481800828000a00800100400c30001455060408285012c40b240010410411082a850a04d840c73081ccd0000012212a0000008240a07100aa0800a41102880000282202c00010400150a0034000804440814002001",
miner: "0x1bc1ee741b3d2047543f5971ad75340734c14413",
mixHash: "0x913c20c1d68b06a8c7a1418567efeb4c82e83aed7a7bf39cddc3999a498dc6c0",
@veox
veox / geth-error-msg.txt
Last active Oct 13, 2018
JSON-RPC query response from Parity regarding Ropsten block #4230605
View geth-error-msg.txt
########## BAD BLOCK #########
Chain config: {ChainID: 3 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 10 EIP158: 10 Byzantium: 1700000 Constantinople: 4230000 Engine: ethash}
Number: 4230605
Hash: 0xc358b4fb016f7cc1402619f292c92a5e58a473ef5243db00d3c59b3b9b7cb827
&{[] 1 60243 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [] [243 187 199 168 18 53 24 162 161 122 18 30 241 202 87 117 210 112 10 247 80 65 63 8 98 78 43 143 75 51 120 200] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 60243}
&{[] 0 153689 [0 0 0 0 0 0 0 0 0 0 0