Skip to content

Instantly share code, notes, and snippets.

View mindstyle85's full-sized avatar

mindstyle85

View GitHub Profile
@mindstyle85
mindstyle85 / gist:7dc75ec51efb50a536b295bc894b45a0
Created April 24, 2023 11:50
full node that didnt restart
`{
"jsonrpc": "2.0",
"result": {
"head_of_sampled_chain": 320464,
"head_of_catchup": 326277,
"network_head_height": 326277,
"failed": {
"320465": 1,
"320466": 1,
"320467": 1,
[10:21:53.495] INFO (IndexerAgent/273957): Transaction pending
component: "AllocationManager"
actions: "[7801]"
function: "staking.multicall"
tx: {
"type": 2,
"chainId": 5,
"nonce": 54,
"maxPriorityFeePerGas": {
"type": "BigNumber",
@mindstyle85
mindstyle85 / gist:ba2070aaad4d17408f00e89d484e0f45
Last active April 6, 2020 16:02
Signing issues investigation
So i was looking at the signs/bingos when i noticed there are some missed bingos/signages between epochs, here:
{"level":"info","port":"9000","ip":"xxxx","blockNum":4872,"epochNum":127,"ViewId":4872,"blockHash":"0x2c97b7d6299872774a5222c12b15f620bc00a272732c41fbe6b5fd3a13ab7b98","numTxns":0,"numStakingTxns":0,"caller":"/mnt/jenkins/workspace/harmony-release/harmony/node/node_handler.go:470","time":"2020-04-06T17:31:41.411403299+02:00","message":"BINGO !!! Reached Consensus"}
{"level":"info","port":"9000","ip":"xxxx","blockNum":4873,"epochNum":127,"ViewId":4873,"blockHash":"0xb72b345fba96dd4586b388fb3d57614eccbc460714779a2472b2707c2f87a479","numTxns":0,"numStakingTxns":0,"caller":"/mnt/jenkins/workspace/harmony-release/harmony/node/node_handler.go:470","time":"2020-04-06T17:31:49.558987645+02:00","message":"BINGO !!! Reached Consensus"}
{"level":"info","port":"9000","ip":"xxxx","blockNum":4880,"epochNum":128,"ViewId":4880,"blockHash":"0x5b876844e2fc74f2910e19bac1f8abbe859602a88bb8ef58821c110622ef4401","numTxn
s0 sync stuck at this block:
{"level":"debug","port":"9000","ip":"xxxxx","caller":"/mnt/jenkins/workspace/harmony-release/harmony/api/service/syncing/syncing.go:790","time":"2020-04-06T14:46:58.021009258+02:00","message":"[SYNC] Node is Not in Sync (isBeacon: true, ShardID: 0, otherHeight: 3628, currentHeight: 3574)"}
grepping for peers:
{"level":"debug","port":"9000","ip":"xxxxx","len":6,"isBeacon":false,"caller":"/mnt/jenkins/workspace/harmony-release/harmony/api/service/syncing/syncing.go:232","time":"2020-04-06T14:57:34.64931713+02:00","message":"[SYNC] CreateSyncConfig: len of peers"}
{"level":"info","port":"9000","ip":"xxxxx","len":6,"isBeacon":false,"caller":"/mnt/jenkins/workspace/harmony-release/harmony/api/service/syncing/syncing.go:262","time":"2020-04-06T14:57:34.649993268+02:00","message":"[SYNC] Finished making connection to peers"}
{"level":"info","port":"9000","ip":"xxxxx","hostID":"QmQTgbRiX9zLyhGVrokji2pWf9NnaKTZH1WPto3k4NK5hd","node":{"Addrs":["/ip4/18.213.223.206/tcp/9000"],"ID":"QmX4V2N6
root@vultr:~# curl -LO https://raw.githubusercontent.com/harmony-one/harmony/master/scripts/node.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17832 100 17832 0 0 97978 0 --:--:-- --:--:-- --:--:-- 97978
root@vultr:~# chmod u+x node.sh
root@vultr:~# ./node.sh -t
node.sh: autodetected BLS key file: /root/2c6281268374475e94f9e8dd8a078c21d6a3bf1be2b3e2dc4b1b497f89d881ac7cce008b18810adfa432fc4c617fd505.key
diff: md5sum.txt: No such file or directory
node.sh: downloaded harmony
node.sh: downloaded wallet