Skip to content

Instantly share code, notes, and snippets.

@Gustav-Simonsson
Gustav-Simonsson / gist:3756004
Created September 20, 2012 13:41
gen_server template
-module(template).
-behaviour(gen_server).
%% API
-export([start_link/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
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
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
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 `&`
/*
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;
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
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
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]
-define(info, lager:info).
-define(debug, lager:debug).
-define(warning, lager:warning).
-define(error, lager:error).
-define(alert, lager:alert).
-define(mute_level(LogLevel),
begin
error_logger:tty(false),
# 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