rchain-community / rstake

toward community operated RChain staking pool
Apache License 2.0
6 stars 1 forks source link

rstake - toward a community operated RChain staking pool

Starting with a high-trust / low automation (plain text) contract, several of us have started on a staking pool. We aim toward increasingly mechanized enforcement of the contract, reducing need for trust and increasing scalability.

See also:

Plain Text contract

See rstake.md.

Toward smart contract

See tools/StakingPool.rho and tools/Makefile.

Integration testing

In one terminal, start a validator:

cd tools/ and then:

  1. make validator and then
  2. wait for it to print some validator public keys
  3. ctrl-c to stop it
  4. IOU more detail about wallets.txt
  5. make validator again

Once your ~/.rnode/genesis/ stuff is created in step 2, you can skip to step 5 next time.

Then, to deploy StakingPool.rho, do make deploy.

Toward node setup with ansible

So far, we can just ping using ansible-playbook --ask-vault-pass rnode1.yml.

See ansible.cfg and rnode1.yml.