Install bsp-agent
Create envrc file
.envrc
file to ~/bsp-agent
and add the private key to your operator account address. (See below on how to do this for this workshop)direnv allow
--proof-chain-address
flag and create a bin directory at ~/bsp-agent
to store the block-specimens binary files with
NOTE: Moonbeam Proof-Chain Address: 0x7487b04899c2572A223A8c6eC9bA919e27BBCd36
http://127.0.0.1:5080/api/v1
, we can now start the bsp-agent
: --redis-url
- this flag tells the agent where to find the bsp messages, at which stream topic key (replication) and what the consumer group is named with the field after # which in this case is replicate, additionally one can provide a password to the redis instance here but we recommend by adding the line below to the .envrc export REDIS_PWD=your-redis-pwd
--codec-path
- tells the bsp agent the relative path to the AVRO .avsc files in the repo, since the agent ships with the corresponding avsc files this remains fixed for the time being --binary-file-path
- tells the bsp if local copies of the block-replica objects being created are to be stored in a given local directory. Please make sure the path (& directory) pre-exists before passing this flag.--block-divisor
- allows the operator to configure the number of block specimens being created, the block number divisible only by this number will be extracted, packed, encoded, uploaded and proofed.--proof-chain-address
- specifies the address of the proof-chain contract that has been deployed to the Moonbeam network.--consumer-timeout
- specifies when the agent stops accepting new msgs from the pending queue for encode, proof and upload.--log-folder
- specifies the location (folder) where the log files have to be placed. In case of error (like permission errors), the logs are not recorded in files.--ipfs-pinner-server
- specifies the http url where ipfs-pinner server is listening. By default, it is http://127.0.0.1:5080/api/v1
bsp-agent
command above fails with a message about permission issues to access ~/.ipfs/*
, run sudo chmod -R 700 ~/.ipfs
and try again.