https://lzone.de/cheat-sheet/jq
jq '.result | .role + " " + .peerid'
https://lzone.de/cheat-sheet/jq
jq '.result | .role + " " + .peerid'
you need to have some space free before doing the below if not command will fail
you need the ubuntu tool growpart / resize2fs / xfs_growfs apt install cloud-guest-utils xfsprogs -y
df -Th
open TCP port for listening
nc -lv 80
add u for UDP
--- | |
version: "2.0" | |
services: | |
harmony: | |
image: harmonyone/node | |
env: | |
- TEST=test | |
expose: | |
- port: 9500 |
from pygtail import Pygtail | |
from utils import * | |
import time | |
import re | |
import json | |
import sys | |
import os | |
import argparse | |
import requests |
#!/usr/bin/env python | |
# coding: utf-8 | |
import json | |
import requests | |
from requests.exceptions import HTTPError | |
import re | |
import argparse | |
def get_information_rpc(rpc_endpoint, method, params): |
Prerequisites: If you don't have curl or jq installed - install them first (e.g. sudo apt-get install curl jq
on Linux)
Download the custom static double-signing binary, node.sh and hmy:
bash <(curl -sSL https://raw.githubusercontent.com/SebastianJ/harmony-tools/master/install/install.sh) --node --enable-double-signing
atomic locking is a technique to ensure the cross-shard transaction are consistent between shards. It’s mainly used for the case where you need to send token from 2 shards at the same time. It works as first the tokens from the two shards get locked, and then those token will be spent together on the destination shard, and finally the token from the two originating shards gets unlocked and deducted.
A keystore file (sometimes called a UTC file) is an encrypted version of your private key. They are generated using your private key and a password that you use to encrypt it. If you open up your keystore file in a text editor it contains data pertaining to the encryption of the private key. more information are available here : https://medium.com/@julien.maffre/what-is-an-ethereum-keystore-file-86c8c5917b97