Stake - Option in app to funnel rewards to a single account

It should be (since host is a global flag):
incognito-cli --host YOUR_HOST acc sub

I believe this should work.

1 Like

Yes I think it was the correct key. Anyway I re-worked the whole command line and now it “works” - it produced a txhash but nothing happened - no funds taken and no staking. I did not save that hash but tried a second time. There was
txHash: 60eede1d6378b2cefe5787f60d6fbc01e506d0d0840075e62171fc4706f7bed3

Nothing is happening again, the above hash is nowhere to be found on https://explorer.incognito.org/txs and https://mainnet.incognito.org/ says:
image
Any ideas ?

Odd. I have no issues. Did you run with your host in this case or the default one? If you run with the default one, it almost sounds like you have the wrong version. Unfortunately, they did not update the version number for a long time, so it still says v1.0.0 if you do --version, even though the latest git tag suggests v2.0.0-alpha.

It was the public full node and cli version is 1.0.0 (I’ve got thsi one before 2.0), yet you would expect an error message and not a ghost txhash. Are you using 2.0.0 for the single funding staking ?

And thanks - the 2.0.0alpha reported as v 1.0.0 worked.

Yeah, the old cli still communicates with a node that is pre-v2 (if I understand correctly). So the transaction is created, but on the wrong network. I’m not sure why it is still accepting transactions tbh.

Yes. I manage all node funding through the 2.0.0 cli, checking the reward balance, withdrawing rewards, and staking. At the moment, I put 100% of the rewards back into node funding, so it makes the process quite easy.

@fredlee can you explain the withdrawing rewards process? I have two accounts (A & B). Account A funded the 1750PRV and gets the rewards. Account B is the validator. Account B has earned some rewards as seen in monitor details.

But on the Power and node details it shows 0. “Withdraw all rewards”. does nothing and I can’t see account A in the Power screens since it is not a validator. Can you tell me where the PRV are hiding? Do I need to do CLI withdrawal for Account A?

Yes, they’re on account A. There’s two options for you.

  1. Start it up as a node and add it to the power tab. You do not need to stake it or even keep it online after you’ve added it.

  2. Use the cli to withdraw.

incognito-cli withdrawreward --privateKey <funding_PrivateKey>

To check balance, you can do something like this in a shell script

reward=($(incognito-cli checkrewards --address <funding_PaymentAddress> | grep "0000000000000000000000000000000000000000000000000000000000000004"))
echo Reward balance: $(( ${reward[1]} / 1000000000 )) PRV

Awesome, Thanks for the clarification.

Is this no longer working @fredlee ?

I had a node get slashed and tried to restake using this process like i always do, same way, and it keeps erroring out.

Connection refused.

Yeah, incognito is having problems with their fullnode which unfortunately is hardcoded into the incognito-cli.

But if you already know how to build the cli from source, then it’s a quite easy hack until they fix it properly.

https://we.incognito.org/t/is-the-beta-fullnode-down/17841/8?u=fredlee

1 Like

hey guys, this fullnode is back online
https://beta-fullnode.incognito.org/fullnode

2 Likes

I still get errors when trying to sync. However different errors then a few days ago.

Had to resync OTA key. Now it works

1 Like

Does anyone know how to unstake in cli a specific node that was staked using the above method?

I’m not familiar with the method in this post, however, any node will become unstaked if it is slashed. Stop the node in Docker and it will slash upon entering committee again.

But then I won’t earn anything. I want to earn and unstake

I never unstake so I have not tested it. But in theory it should be the same as staking.

incognito-cli unstake -privateKey <funding_PrivateKey> --miningKey <node_MiningKey> --candidateAddress <node_PaymentAddress>

1 Like

This worked btw

2 Likes