Skip to content

Instantly share code, notes, and snippets.

🛰

Gustav-Simonsson

🛰
Block or report user

Report or block Gustav-Simonsson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3bf791346b9b1043733da66eb6ba215e
Ethereum full node sync from scratch with Parity.
Date: 2018-01-10
Sync Time: 25h
Parity Disk Usage: 45 GB
Parity Version: https://github.com/paritytech/parity/releases/tag/v1.8.6
Parity CLI flags: ./target/release/parity --no-warp --no-ui --no-download --no-hardware-wallets --no-dapps --cache-size 4096 --db-compaction ssd --scale-verifiers --num-verifiers 4 --log-file plog.txt
https://dev.to/5chdn/the-ethereum-blockchain-size-will-not-exceed-1tb-anytime-soon-58a
View gist:824b6902bf9a1d477ac53cca98c350d5
Ubuntu 16.04.2 LTS
Intel i7-6600U
Geth v1.6.5 (commit 6171d01b1195abd7ac75044dcd507d4758d83cde)
geth --nousb --cache 2048
INFO [06-01|15:50:14] Imported new chain segment blocks=27 txs=3427 mgas=98.808 elapsed=8.080s mgasps=12.228 number=3800021 hash=68bb7e…21fe8f
INFO [06-01|15:50:22] Imported new chain segment blocks=41 txs=3710 mgas=137.458 elapsed=8.022s mgasps=17.133 number=3800062 hash=dbb2eb…2cdca5
INFO [06-01|15:50:30] Imported new chain segment blocks=75 txs=3410 mgas=242.548 elapsed=8.040s mgasps=30.165 number=3800137 hash=28d7a6…4d390f
INFO [06-01|15:50:38] Imported new chain segment blocks=92 txs=3296 mgas=222.476 elapsed=8.176s mgasps=27.209 number=3800229 hash=731b44…417861
View gist:0de86e1b60e38f719129667af00ecd56
git checkout origin/state-cache-reorg
HEAD is now at 79bbc26... Renamed pending to buffered
15:30:08 ((HEAD detached at origin/state-cache-reorg)) ~/af/parity
cargo build --release --no-default-features
warning: ar: `u' modifier ignored since `D' is the default (see `U')
Compiling ethcore-rpc v1.4.0 (file:///home/gustav/af/parity/rpc)
rpc/src/v1/helpers/auto_args.rs:67:20: 67:22 error: expected type, found `&`
rpc/src/v1/helpers/auto_args.rs:67 fn $m_name ( $($p)* ) $( -> Result<$out, Error> )* ;
^~
rpc/src/v1/helpers/auto_args.rs:67:20: 67:22 error: expected one of `&`, `(`, `)`, `*`, `<`, `[`, `_`, `extern`, `fn`, `for`, or `unsafe`, found `&`
View gist:8ed1f81752049fdaa27f3f685124a694
/*
Simple vesting contract. amount of tokens `owner` can withdraw is
linear to how far they are in the vesting schedule.
E.g. if `period` is 4 years then after 2 years 50% can be withdrawn.
The vesting is continous, allowing `owner` to withdraw at any time.
*/
pragma solidity ^0.4.2;
View gist:f13fafab954d2df117be9b18a01bdf9c
I0925 19:17:30.059394 eth/downloader/downloader.go:326] Block synchronisation started
I0925 19:17:32.313062 core/blockchain.go:974] imported 2 block(s) (0 queued 0 ignored) including 0 txs in 1.712762756s. #2310724 [da3b09d0 / 8876fcf4]
I0925 19:18:18.691152 eth/handler.go:290] Peer b4267125d24ae03b [eth/63]: timed out DAO fork-check, dropping
I0925 19:18:40.005941 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) including 5797 txs in 1m7.669380575s. #2312772 [390c289d / 55b0f862]
I0925 19:18:43.709474 eth/handler.go:290] Peer 6b2a1fbb95f0bbd3 [eth/63]: timed out DAO fork-check, dropping
I0925 19:18:54.880595 core/blockchain.go:974] imported 638 block(s) (0 queued 0 ignored) including 3291 txs in 14.854858438s. #2313410 [2f7da899 / dd1a081c]
I0925 19:19:43.264276 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) including 18766 txs in 48.338869417s. #2315458 [f61c1974 / 2f96262f]
I0925 19:20:50.433944 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) incl
View gist:0edff797fe3187f473d0da489b03cbce
I0924 16:04:06.390930 core/state/statedb.go:534] generating accounts bloom, at 99.61%, please wait...
I0924 16:04:06.604392 core/state/statedb.go:538] accounts bloom generated in 1m13.66104519s
I0924 16:04:06.604392 core/state/statedb.go:538] accounts bloom generated in 48.327171393s
I0924 16:04:06.663685 core/blockchain.go:974] imported 2 block(s) (0 queued 0 ignored) including 0 txs in 50.738126893s. #2310724 [da3b09d0 / 8876fcf4]
I0924 16:05:49.199056 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) including 5797 txs in 1m42.491481599s. #2312772 [390c289d / 55b0f862]
I0924 16:07:07.998430 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) including 16894 txs in 1m18.793119803s. #2314820 [2f7da899 / 12eee5e4]
I0924 16:07:39.368741 eth/handler.go:290] Peer 30400508d4014f04 [eth/63]: timed out DAO fork-check, dropping
I0924 16:08:24.397234 core/blockchain.go:974] imported 2048 block(s) (0 queued 0 ignored) including 13455 txs in 1m16.3914635s. #2316868 [064d3e5f / 8502b7
View gist:baa996b1ca5381a47d80c8d5ccff0d69
2016-09-23 14:10:44 Imported #2313587 6897…847f (1 txs, 0.99 Mgas, 871.32 ms, 0.63 KiB)
2016-09-23 14:10:58 Imported #2313587 db10…4308 (1 txs, 0.99 Mgas, 914.96 ms, 0.63 KiB)
2016-09-23 14:11:03 Imported #2313589 1968…3bdd (1 txs, 0.99 Mgas, 921.53 ms, 0.62 KiB)
2016-09-23 14:13:35 Imported #2313598 ce2f…cbbf (1 txs, 0.99 Mgas, 899.63 ms, 0.62 KiB)
I0923 14:10:46.479141 core/blockchain.go:974] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 282.870478ms. #2313587 [68976b39 / 68976b39]
I0923 14:11:08.293458 core/blockchain.go:974] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 3.061400174s. #2313587 [db10cabb / db10cabb]
I0923 14:11:05.231936 core/blockchain.go:974] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 437.20746ms. #2313589 [19682820 / 19682820]
I0923 14:13:39.519107 core/blockchain.go:974] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 2.57121206s. #2313598 [ce2fb3d0 / ce2fb3d0]
View poem.py
# Poem:
#
#there are so many tictoc
#clocks everywhere telling people
#what tictoc time it is for
#tictic instance five toc minutes toc
#past six tic
#Spring is not regulated and does
#not get out of order nor do
View gist:e823af2294564b300630
20:37:37 ((detached from origin/develop)) ~/eth/cpp/webthree-umbrella/build
./libethereum/test/testeth -t StateTests/userDefinedFileState --singletest /home/gs/eth/tests/StateTests/stCallCreateCallCodeTest.json createNameRegistratorPreStore1NotEnoughGas --sealengine Homestead --vmtrace --verbosity 13
Running 1 test case...
ℹ 20:37:47.714|testeth Testing user defined test: /home/gs/eth/tests/StateTests/stCallCreateCallCodeTest.json
Test Case "userDefinedFileState":
100%
ℹ 20:37:47.763|testeth createNameRegistratorPreStore1NotEnoughGas
EVM 20:37:47.808|testeth
STACK
MEMORY
View gist:50e94abb0412dfd4c9c4
StateTest: createNameRegistratorPreStore1NotEnoughGas
VM STAT 24 OPs
PC 00000000: PUSH32 GAS: 55268 COST: 3
STACK = 0
MEM = 0
STORAGE = 0
PC 00000033: PUSH1 GAS: 55265 COST: 3
STACK = 1
0000: 6001600155601080600c6000396000f3006000355415600957005b6020356000
You can’t perform that action at this time.