Skip to content

Instantly share code, notes, and snippets.

View denniswon's full-sized avatar

Dennis Won denniswon

View GitHub Profile
# Load plugins.
set -g @plugin 'tmux-plugins/tmux-yank' # Cross-platform support for clipboard.
set -g @plugin 'odedlaz/tmux-onedark-theme' # OneDark Theme
set -g @plugin 'tmux-plugins/tmux-resurrect' # Save/Restore sessions
set -g @plugin 'tmux-plugins/tmux-continuum' # Auto Save/Restore
# Remap prefix to ctrl-a for screen consistency.
# set -g prefix C-a
# Restore using continuum.
@denniswon
denniswon / gist:7842387e5fa5cc921b27ccee409ffae9
Last active March 19, 2020 01:33
staking txns for ostn0318
./hmy --node=https://api.s0.os.hmny.io staking create-validator \
--validator-addr one12sujm2at8j8terh7nmw2gnxtrmk74wza3tvjd9 --amount 10 \
--bls-pubkeys 0x9119a69c0fcb278627972940a76bcf1b3e795f436f244d549ee7c30f8c725ed3294fa46c14f1790240b1a22765d2340a \
--name "dennis" --identity "won" --details "denniswon" \
--security-contact "[email protected]" --website "denniswon.com" \
--max-change-rate 0.1 --max-rate 0.1 --rate 0.1 \
--max-total-delegation 100 --min-self-delegation 10 --passphrase
private key: 44c46a0527ed82c57589854ffe1ac566450d9140b34cbf92548cab768deaf4268eeccfcef5b9439ddd265e585c2c2b05.key
~/go/src/github.com/harmony-one/harmony (staking_txn_support) $ go test ./core/rawdb/
ok github.com/harmony-one/harmony/core/rawdb 0.290s 2020-03-20 06:08:15
Last login: Tue Mar 24 23:28:42 on ttys001
installing go version go1.13.6
go version go1.13.6 darwin/amd64
go version go1.13.6 darwin/amd64
dennis.won@Jongs-MacBook-Pro:~ $ mosh_validator
ubuntu@ip-172-31-16-131:~/go/src/github.com/harmony-one/harmony/bin (stakingtxn_support) $ ./node.sh -S -T explorer -A -c -z -N staking -k ~/44c46a0527ed82c57589854ffe1ac566450d9140b34cbf92548cab768deaf4268eeccfcef5b9439ddd265[155/1726]
5.key -D -i 3
node.sh: using manually specified BLS key file: /home/ubuntu/44c46a0527ed82c57589854ffe1ac566450d9140b34cbf92548cab768deaf4268eeccfcef5b9439ddd265e585c2c2b05.key
node.sh: binaries did not change
node.sh: public IP address autodetected: 13.56.210.117
node.sh: cleaning up old database/logs (-c)
Last login: Tue Mar 24 23:28:42 on ttys001
installing go version go1.13.6
go version go1.13.6 darwin/amd64
go version go1.13.6 darwin/amd64
dennis.won@Jongs-MacBook-Pro:~ $ mosh_validator
ubuntu@ip-172-31-16-131:~/harmony-one/harmony/bin (stakingtxn_support) $ hmy keys generate-bls-key --passphrase
Enter passphrase:
Repeat the passphrase:
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7fc09568036d]
[core]
excludesfile = /Users/denniswon/.gitignore
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
rs = reset
co = checkout
ubuntu@ip-172-31-28-167:~/harmony-one/harmony (master) $ ./scripts/go_executable_build.sh -s
building cmd/harmony/main.go
# command-line-arguments
/home/ubuntu/.gimme/versions/go1.13.6.linux.amd64/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/tmp/go-link-455659512/000029.o: In function `mygetgrouplist':
getgrouplist_unix.cgo2.c:(.text+0x60): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/go-link-455659512/000028.o: In function `mygetgrgid_r':
cgo_lookup_unix.cgo2.c:(.text+0xe1): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/go-link-455659512/000028.o: In function `mygetgrnam_r':
goroutine 604 [running]:
github.com/syndtr/goleveldb/leveldb.(*DB).isClosed(...)
/var/lib/jenkins/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_state.go:230
github.com/syndtr/goleveldb/leveldb.(*DB).ok(...)
/var/lib/jenkins/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_state.go:235
github.com/syndtr/goleveldb/leveldb.(*DB).Get(0x0, 0xc00c50c840, 0x2d, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/var/lib/jenkins/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:838 +0x56
github.com/harmony-one/harmony/api/service/explorer.(*Storage).UpdateStakingTxAddressStorage(0xc00053ad60, 0xc00c1e1580, 0xc00c50c7e0, 0x2a, 0xc008adeea0, 0xc00b46f780)
/mnt/jenkins/workspace/harmony-release/harmony/api/service/explorer/storage.go:143 +0x159
github.com/harmony-one/harmony/api/service/explorer.(*Storage).UpdateStakingTxAddress(0xc00053ad60, 0xc00c1e1580, 0xc008adeea0, 0xc00b46f780)