Install penumbra and CometMock. Make sure cometmock is compiled from branch v0.34.x. My penumbra version is from branch 2771-cometmock-smoketest.
Run cometmock-test.sh
This will print out two commands, one for penumbra and one for CometMock.
Just copy-paste the commands and run them (in separate terminals). Run pd first, give it a second until it's started,
then run the one for CometMock.
They look like this for me:
cargo run --quiet --release --bin pd -- start --home /Users/offtermatt/.penumbra/testnet_data/node0/pd
for pd
cometmock 127.0.0.1:26658 /Users/offtermatt/.penumbra/testnet_data/node0/tendermint/config/genesis.json tcp://127.0.0.1:26657 /Users/offtermatt/.penumbra/testnet_data/node0/tendermint socket
for CometMock
If everything went well so far,
Run export PENUMBRA_NODE_PD_URL="http://127.0.0.1:8080"
Run export PCLI_UNLEASH_DANGER="yes"
Run cargo run --release --bin pcli q validator list
- if this gives output like this, ABCI queries work:
Voting Power Share Commission State Bonding State Validator Info
24998.425 100.00% 300bps Active Bonded penumbravalid12q38kyk59dv9aly9wqgvl3kypw2vskevnymgl4rqq5lm89r5gvrsx9lspn
Now, run a delegation like this, where the validator address is replaced by your validator info as received as an output from above - I am not sure this is the same in each run or nondeterministic.
cargo run --bin pcli tx delegate 500penumbra --to penumbravalid12q38kyk59dv9aly9wqgvl3kypw2vskevnymgl4rqq5lm89r5gvrsx9lspn
This should give an output like this:
Scanning blocks from last sync height 891 to latest height 1035
[0s] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0/144
[0s] ████████████████████████████████████████████░░░░░░ 129/144
[0s] ██████████████████████████████████████████████████ 144/144 1862/s ETA: 0s
building transaction...
finished proving in 21.517 seconds [4 actions, 3 proofs, 2458 bytes]
broadcasting transaction and awaiting confirmation...
transaction confirmed and detected: 5ca01946975c5f6622a8c738544f6564fee06bcae617307a957edc3b92dcf3b6 @ height 1057
I am not sure how to confirm that the delegation actually went through, but this looks good to me.