Delete this profile please

No longer want to be a member here. Please delete profile.

2 Likes

What is this?

如何使用?how to use?

Hmm. Tried to use the --state.jam command, and used curl to download your state.jam file to my VPS. Got the following:

W (19:48:22) [no] kernel::form: State bytes format is not recognized
E (19:48:22) [no] kernel::form: Failed to load state from state bytes: state jam format error: the state jam file format is not recognized
E (19:48:22) [no] kernel::form: The state bytes format is not recognized. It should be either a JammedCheckpoint or an ExportedState.
Error: StateJamFormatError

I ran

nockchain \
     --state-jam $PATH  \
     --mining-pubkey "${MINING_PUBKEY}" \
      --mine \
      --bind "/ip4/0.0.0.0/udp/${SOCKET_PORT}/quic-v1" \
      >> "$LOG_FILE" 2>&1 &

Just passing --state-jam with a path is what I am supposed to do, right?

1 Like

Hi, what do I need to do after downloading state jam file

Just an update - was able to solve my “state jam format is not recognized error”. This resulted from using the curl command on a VPS, to get the jam file from Google Drive. What happened is instead of downloading the binary file, it downloaded a GDrive HTML template instead.

If you do use shell tools to download the file, make sure you check it’s magic number with file <path-to-jam>. It should be typed as “data”, not “HTML” or something else. If your jam file is less than 500MB, then it is probably garbage and something went wrong.

For clarity, this was the command i used to run my nodes:

    nohup nockchain \
      --mining-pubkey "${MINING_PUBKEY}" \
      --state-jam "${SJ_PATH}/state${J_NUM}.jam" \
      --peer /dnsaddr/nockchain-backbone.zorp.io \
      --bind "/ip4/0.0.0.0/udp/${SOCKET_PORT}/quic-v1" \
      >> "$LOG_FILE" 2>&1 &

For those not using shell scripts, ignore the “nohup” and output redirection lines. Was able to get one node almost synced to tip (as of writing…about ~100 blocks off).

Good luck.

2 Likes

my

RUST_LOG=info,nockchain=info,nockchain_libp2p_io=info,libp2p=info,libp2p_quic=info MINIMAL_LOG_FORMAT=true
nockchain --mine
–mining-pubkey 31111111111111111111111111111111111111111111111111111111111119MR
–state-jam /root/nockchain/miner1/state.jam
–peer /dnsaddr/nockchain-backbone.zorp.io
–bind “/ip4/0.0.0.0/udp/12345/quic-v1”