Skip to content

Instantly share code, notes, and snippets.

View yenda's full-sized avatar
💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?

Eric Dvorsak yenda

💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?
View GitHub Profile
10-23 10:43:17.099 10428 10504 D StatusModule: startNode() with config (see below)
10-23 10:43:17.099 10428 10504 D StatusModule: ********************** NODE CONFIG ****************************
10-23 10:43:17.099 10428 10504 D StatusModule: Node config:{"ClusterConfig":{"Enabled":true,"Fleet":"eth.beta","BootNodes":["enode:\/\/7427dfe38bd4cf7c58bb96417806fab25782ec3e6046a8053370022cbaa281536e8d64ecd1b02e1f8f72768e295d06258ba43d88304db068e6f2417ae8bcb9a6@104.154.88.123:443","enode:\/\/ebefab39b69bbbe64d8cd86be765b3be356d8c4b24660f65d493143a0c44f38c85a257300178f7845592a1b0332811542e9a58281c835babdd7535babb64efc1@35.202.99.224:443","enode:\/\/43947863cfa5aad1178f482ac35a8ebb9116cded1c23f7f9af1a47badfc1ee7f0dd9ec0543417cc347225a6e47e46c6873f647559e43434596c54e17a4d3a1e4@47.52.74.140:443","enode:\/\/e8a7c03b58911e98bbd66accb2a55d57683f35b23bf9dfca89e5e244eb5cc3f25018b4112db507faca34fb69ffb44b362f79eda97a669a8df29c72e654416784@47.91.224.35:443"],"TrustedMailServers":["enode:\/\/531e252ec966b7e83f5538c19bf1cde7381cc
09-13 13:25:47.271 5769 5819 I ReactNativeJS: PRETTY PRINTED EXCEPTION
09-13 13:25:47.271 5769 5819 I ReactNativeJS:
09-13 13:25:47.271 5769 5819 I ReactNativeJS: ***
09-13 13:25:47.271 5769 5819 I ReactNativeJS: NAME: "RangeError"
09-13 13:25:47.271 5769 5819 I ReactNativeJS: MESSAGE: Maximum call stack size exceeded
09-13 13:25:47.271 5769 5819 I ReactNativeJS:
09-13 13:25:47.271 5769 5819 I ReactNativeJS: RangeError: Maximum call stack size exceeded
09-13 13:25:47.271 5769 5819 I ReactNativeJS: at anonymous (JavaScript:28314:111)
09-13 13:25:47.271 5769 5819 I ReactNativeJS: at cljs$core$tree_map_add (JavaScript:28315:3)
09-13 13:25:47.271 5769 5819 I ReactNativeJS: at call (native)
{
"ClusterConfig": {
"Enabled": true,
"Fleet": "eth.beta",
"BootNodes": [
"enode://7427dfe38bd4cf7c58bb96417806fab25782ec3e6046a8053370022cbaa281536e8d64ecd1b02e1f8f72768e295d06258ba43d88304db068e6f2417ae8bcb9a6@104.154.88.123:443",
"enode://e8a7c03b58911e98bbd66accb2a55d57683f35b23bf9dfca89e5e244eb5cc3f25018b4112db507faca34fb69ffb44b362f79eda97a669a8df29c72e654416784@47.91.224.35:443",
"enode://5395aab7833f1ecb671b59bf0521cf20224fe8162fc3d2675de4ee4d5636a75ec32d13268fc184df8d1ddfa803943906882da62a4df42d4fccf6d17808156a87@206.189.243.57:443",
"enode://43947863cfa5aad1178f482ac35a8ebb9116cded1c23f7f9af1a47badfc1ee7f0dd9ec0543417cc347225a6e47e46c6873f647559e43434596c54e17a4d3a1e4@47.52.74.140:443"
],
@yenda
yenda / bench.md
Last active July 12, 2019 16:42
Benchmarking realm vs status-go

Disclaimer: the code is just there so that the curious reader can experiment himself and verify the numbers on his own setup, it is not 'good code' or anything, just the fastest way to get numbers as correct as possible and see if we'd have a perf issue with moving the db to status-go as opposed to keep it in realm-js.

Adding 4000 items in status-go db

(time (doall
       (dotimes [x 4000]
         (call {:method "wallet_addBrowser" :params [{"id" (str x) "name" "third", "timestamp" "0x0"
                                                      "dapp" false
                                                      "historyIndex" "0x3"
 "history" ["hist1" "hist2"]}] :on-success #()}))))
06-03 11:33:06.969 7715 7758 D ReactNativeJS: DEBUG [status-im.utils.handlers:34] - Handling re-frame event: :accounts.logout.ui/logout-confirmed
06-03 11:33:06.977 2944 2944 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound
06-03 11:33:06.982 7715 7758 D ReactNativeJS: DEBUG [status-im.transport.filters:23] - :stop-watching [object Object]
06-03 11:33:06.982 7715 7758 D ReactNativeJS: DEBUG [status-im.transport.filters:23] - :stop-watching [object Object]
06-03 11:33:06.983 7715 7759 D HttpServer: Stopping server...
06-03 11:33:06.984 7715 7758 D ReactNativeJS: DEBUG [status-im.transport.filters:23] - :stop-watching [object Object]
06-03 11:33:06.987 1919 2314 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@331b2d2)
06-03 11:33:06.987 1919 1933 I GnssLocationProvider: WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@3
06-01 12:49:10.181 4869 4930 D ReactNativeJS: DEBUG [status-im.signals.core:80] - Event wallet not handled
06-01 12:49:10.209 4869 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference
06-01 12:49:10.209 4869 0 E Go : [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xbd06b107]
06-01 12:49:10.209 4869 0 E Go :
06-01 12:49:10.210 4869 0 E Go : goroutine 18470 [running]:
06-01 12:49:10.211 4869 5397 E GoLog : panic: runtime error: invalid memory address or nil pointer dereference
06-01 12:49:10.211 4869 0 E Go : math/big.(*Int).IsInt64(...)
06-01 12:49:10.211 4869 0 E Go : /nix/store/9642xkwmps282cy96s1sadis877dcr74-go-1.11.5/share/go/src/math/big/int.go:380
06-01 12:49:10.212 4869 0 E Go : github.com/status-im/status-go/services/wallet.(*SQLBigInt).Value(0x0, 0xbdbedc20, 0xbdadcae0, 0xbdbedc00, 0xbdaf7340)
06-01 12:49:10.212 4869 0 E Go : /build/go/src/github.com/status-im/status-go
05-31 19:10:28.822 8069 8194 D StatusModule: ********************** NODE CONFIG ****************************
05-31 19:10:28.822 8069 8194 D StatusModule: Node config:{"ClusterConfig":{"Enabled":true,"Fleet":"eth.beta","BootNodes":["enode:\/\/436cc6f674928fdc9a9f7990f2944002b685d1c37f025c1be425185b5b1f0900feaf1ccc2a6130268f9901be4a7d252f37302c8335a2c1a62736e9232691cc3a@174.138.105.243:443","enode:\/\/e8a7c03b58911e98bbd66accb2a55d57683f35b23bf9dfca89e5e244eb5cc3f25018b4112db507faca34fb69ffb44b362f79eda97a669a8df29c72e654416784@47.91.224.35:443","enode:\/\/43947863cfa5aad1178f482ac35a8ebb9116cded1c23f7f9af1a47badfc1ee7f0dd9ec0543417cc347225a6e47e46c6873f647559e43434596c54e17a4d3a1e4@47.52.74.140:443","enode:\/\/5395aab7833f1ecb671b59bf0521cf20224fe8162fc3d2675de4ee4d5636a75ec32d13268fc184df8d1ddfa803943906882da62a4df42d4fccf6d17808156a87@206.189.243.57:443"],"TrustedMailServers":["enode:\/\/da61e9eff86a56633b635f887d8b91e0ff5236bbc05b8169834292e92afb92929dcf6efdbf373a37903da8fe0384d5a0a8247e83f1ce211aa42920
05-31 19:10:40.490 8069 8120 E GoLog : ERROR[05-31|17:10:40.490] failed to get latest block number=5705881 error="not found"
05-31 19:10:40.654 8069 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference
05-31 19:10:40.654 8069 0 E Go : [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0xc121ac02]
05-31 19:10:40.654 8069 0 E Go :
05-31 19:10:40.654 8069 0 E Go : goroutine 176 [running]:
05-31 19:10:40.654 8069 8204 E GoLog : panic: runtime error: invalid memory address or nil pointer dereference
05-31 19:10:40.654 8069 0 E Go : github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/ethclient.(*Client).TransactionInBlock(0x8fc8e478, 0xc20fae20, 0x90e70d00, 0x34b581b0, 0xa608040d, 0x2caade68, 0x729a44a7, 0x56d795ef, 0x3a8ad33d, 0xdc5c1eed, ...)
05-31 19:10:40.654 8069 0 E Go : /build/go/src/github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/ethclient/ethclien
sudo apt-get install git chromium stow rofi i3 silversearcher-ag libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
building emacs
https://www.emacswiki.org/emacs/BuildingEmacs
http://ftp.gnu.org/gnu/emacs/
install android-studio
export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_NDK_HOME=$HOME/android-ndk-r10e
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK=$HOME/android-ndk-r10e
export PATH=${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/emulator:${PATH}
export PATH=$PATH:/usr/local/go/bin