Skip to content

Instantly share code, notes, and snippets.

Oskar Thorén oskarth

Block or report user

Report or block oskarth

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
@oskarth
oskarth / foo.md
Last active Aug 2, 2019
Geth Nimbus mapping
View foo.md

Geth Nimbus mapping

These are all the things we use from go-ethereum in status-console-client right now.

Note that this doesn't include transitive dependencies in vendor, such as status-go etc.

Packages

> ag "ethereum/go-ethereum/" --ignore vendor *.go --nofilename | sort -r | uniq
@oskarth
oskarth / gist:c3f4392e84c279c433474d31b3173737
Created Jun 29, 2019
status-console-client hangs naive setupforeignthreadgc
View gist:c3f4392e84c279c433474d31b3173737
oskarth@localhost ~/g/s/g/s/status-console-client>
gdb --args env GOMAXPROCS=1 ./bin/status-term-client -keyhex=0x9af3cdb76d76da2b36d2dcc082cb54ea672639331ef03b91a62ad6ef804b4896 2> test.log
GNU gdb (GDB) Fedora 8.2-7.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
@oskarth
oskarth / gist:771034417a52927fa9bbc6df415d5714
Created Jun 27, 2019
nimbus status-c-api status-console-client segfault stacktrace
View gist:771034417a52927fa9bbc6df415d5714
```
> gdb --args ./bin/status-term-client -keyhex=0xe8b3b8a7cae540ace9bcaf6206e81387feb6415016aee75307976084f7751ed7 2>/tmp/status-term-client.log
GNU gdb (GDB) Fedora 8.2-7.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
View gist:4f41565523eccbcb48ff6564e972bb5d
2019/06/15 12:42:29 [d4a11370] node 979c0134 sending 26ad482e
2019/06/15 12:42:29 [d4a11370] OFFER (979c0134 -> e5d823ae): 26ad482e received.
2019/06/15 12:42:29 [d4a11370] sending REQUEST (e5d823ae -> 979c0134): 26ad482e
2019/06/15 12:42:32 [d4a11370] OFFER (979c0134 -> 07b22f7a): 26ad482e received.
2019/06/15 12:42:32 [d4a11370] sending REQUEST (07b22f7a -> 979c0134): 26ad482e
2019/06/15 12:42:44 [d4a11370] OFFER (979c0134 -> e5d823ae): 26ad482e received.
2019/06/15 12:42:44 [d4a11370] sending REQUEST (e5d823ae -> 979c0134): 26ad482e
2019/06/15 12:42:45 [d4a11370] OFFER (979c0134 -> e5d823ae): 26ad482e received.
2019/06/15 12:42:45 [d4a11370] sending REQUEST (e5d823ae -> 979c0134): 26ad482e
2019/06/15 12:42:46 [d4a11370] REQUEST (e5d823ae -> 979c0134): 26ad482e received.
View gist:3667fe4aca3bbf64352c6a227ecf3a66
../vendor/Nim/config/nim.cfg(47, 3) Hint: added path: '/home/oskarth/git/nimbus/vendor/nim-ranges' [Path]
nimblepath="$home/.nimble/pkgs/"
^
../vendor/Nim/config/nim.cfg(47, 3) Hint: added path: '/home/oskarth/git/nimbus/vendor/nim-secp256k1' [Path]
nimblepath="$home/.nimble/pkgs/"
^
../vendor/Nim/config/nim.cfg(47, 3) Hint: added path: '/home/oskarth/git/nimbus/vendor/nim-faststreams' [Path]
nimblepath="$home/.nimble/pkgs/"
^
../vendor/Nim/config/nim.cfg(47, 3) Hint: added path: '/home/oskarth/git/nimbus/vendor/nim-json-rpc' [Path]
View snt-pool-calc.md

Numbers can be titrated, so at 5% the monthly SNT "tap multiplier" is 20%, whereas at 50% it might be 5%, etc. This incentivized people to opt in to this other structure more quickly.

Stage 1 Aggressive scale:

Tiny: 1%

Small: 2.5%

Decent: 5%

View gist:a4a17aa2846ceec0c26ec8e8eab366d8
> ./build/bin/statusd -c config/cli/fleet-eth.beta.json
INFO [09-18|21:43:11.124] Status backend initialized
DEBUG[09-18|21:43:11.125] starting with NodeConfig package=status-go/node.StatusNode ClusterConfig="{Enabled:true Fleet:eth.beta StaticNodes:[enode://9c2b82304d988cd78bf290a09b6f81c6ae89e71f9c0f69c41d21bd5cabbd1019522d5d73d7771ea933adf0727de5e847c89e751bd807ba1f7f6fc3a0cd88d997@47.52.91.239:30305 enode://66ba15600cda86009689354c3a77bdf1a97f4f4fb3ab50ffe34dbc904fac561040496828397be18d9744c75881ffc6ac53729ddbd2cdbdadc5f45c400e2622f7@206.189.243.176:30305 enode://0440117a5bc67c2908fad94ba29c7b7f2c1536e96a9df950f3265a9566bf3a7306ea8ab5a1f9794a0a641dcb1e4951ce7c093c61c0d255f4ed5d2ed02c8fce23@35.224.15.65:30305 enode://a80eb084f6bf3f98bf6a492fd6ba3db636986b17643695f67f543115d93d69920fb72e349e0c617a01544764f09375bb85f452b9c750a892d01d0e627d9c251e@47.89.16.125:30305 enode://4ea35352702027984a13274f241a56a47854a7fd4b3ba674a596cff917d3c825506431cf149f9f2312a293bb7c2b1cca55db742027090916d01529fe07
View gist:5070bfeb8cac15a7133463d5efcfb684
> ./build/bin/statusd -c config/cli/fleet-eth.beta.json
INFO [09-18|21:39:33.410] Status backend initialized
DEBUG[09-18|21:39:33.410] starting with NodeConfig package=status-go/node.StatusNode ClusterConfig="{Enabled:true Fleet:eth.beta StaticNodes:[enode://9c2b82304d988cd78bf290a09b6f81c6ae89e71f9c0f69c41d21bd5cabbd1019522d5d73d7771ea933adf0727de5e847c89e751bd807ba1f7f6fc3a0cd88d997@47.52.91.239:30305 enode://66ba15600cda86009689354c3a77bdf1a97f4f4fb3ab50ffe34dbc904fac561040496828397be18d9744c75881ffc6ac53729ddbd2cdbdadc5f45c400e2622f7@206.189.243.176:30305 enode://0440117a5bc67c2908fad94ba29c7b7f2c1536e96a9df950f3265a9566bf3a7306ea8ab5a1f9794a0a641dcb1e4951ce7c093c61c0d255f4ed5d2ed02c8fce23@35.224.15.65:30305 enode://a80eb084f6bf3f98bf6a492fd6ba3db636986b17643695f67f543115d93d69920fb72e349e0c617a01544764f09375bb85f452b9c750a892d01d0e627d9c251e@47.89.16.125:30305 enode://4ea35352702027984a13274f241a56a47854a7fd4b3ba674a596cff917d3c825506431cf149f9f2312a293bb7c2b1cca55db742027090916d01529fe07
View gist:6b77a99547a16bb4954f611a7e329556
```
TRACE[09-18|21:03:15.807] <-net.timeout
TRACE[09-18|21:03:15.807] msg="--- (2) pongTimeout for 43947863cfa5aad1@47.52.74.140:30404: verifyinit -> unknown (ok)"
TRACE[09-18|21:03:15.807] <-net.timeout
TRACE[09-18|21:03:15.807] msg="--- (1) pongTimeout for 5395aab7833f1ecb@206.189.243.57:30404: verifyinit -> unknown (ok)"
TRACE[09-18|21:03:15.808] <-net.queryReq
TRACE[09-18|21:03:15.808] Pinging remote node node=43947863cfa5aad1
TRACE[09-18|21:03:15.808] >>> nodeEvent(1) to 43947863cfa5aad1@47.52.74.140:30404
TRACE[09-18|21:03:15.808] UDP send failed:write udp [::]:30303->47.52.74.140:30404: sendto: host is down
TRACE[09-18|21:03:15.808] <-net.timeout
View gist:3344fb36cdd31b8a529f559be28329c9
Statusd
Version: 0.15.0
Build Stamp: 2018-09-18.12:23:26
Network Id: 3
Go Version: go1.9.2
OS: darwin
GOPATH=/Users/oskarth/gocode
GOROOT=/usr/local/Cellar/go/1.9.2/libexec
Loaded Config: {
"NetworkId": 3,
You can’t perform that action at this time.