Pool retirement - Issue or not? (solved)

Hi,

tried to de-register a stakepool like the same way registering it, but i always get the following error:

ApplyTxError [LedgerFailure (DelegsFailure (DelplFailure (PoolFailure (StakePoolRetirementWrongEpochPOOL {pfPOOLcurrentEpoch = 27, pfPOOLintendedEpoch = 28, pfPOOLepochMax = 28}))))]

i tried it with current epoch 27, also with the next epochs 28, 29, 30

sooo… is the code not right ready for it?

best regards,
martin

It is working now, the pfPOOLepochMax was too low. Thanks @disasm !

So, did a new test on 1.13.0:

I can confirm, that Pool Retirement is working perfectly!

Stake-Info of the PoolOwner (also Rewards) before Pool Retirement:
Delegations: fromList [(KeyHashObj (KeyHash 40b799908a211d514d71845cecc48c1de71912d64853ac1c82bf044ea7d4d3f0),KeyHash cdb27adb2fc21b979a589e866e171e8934860b6bdc29aa7f07df9ad3d2126e81)]
Reward accounts: fromList [(RewardAcnt {getRwdNetwork = Testnet, getRwdCred = KeyHashObj (KeyHash 40b799908a211d514d71845cecc48c1de71912d64853ac1c82bf044ea7d4d3f0)},Coin 0)]

Stake-Info of the PoolOwner (also Rewards) after Pool Retirement:
Delegations: fromList []
Reward accounts: fromList [(RewardAcnt {getRwdNetwork = Testnet, getRwdCred = KeyHashObj (KeyHash 40b799908a211d514d71845cecc48c1de71912d64853ac1c82bf044ea7d4d3f0)},Coin 500000000)]

PoolDepositFee of 500 fADA was sent back to the Rewards Account :+1:

Can we please have a json output format for this? Or a —output-format json option in the commandline?

A follow up test to my last Pool-Retirement Test:

I was able to Register the Pool again on the blockchain with the old values, now the owner.payment account shows:
Delegations: fromList [(KeyHashObj (KeyHash 40b799908a211d514d71845cecc48c1de71912d64853ac1c82bf044ea7d4d3f0),KeyHash cdb27adb2fc21b979a589e866e171e8934860b6bdc29aa7f07df9ad3d2126e81)]
Reward accounts: fromList [(RewardAcnt {getRwdNetwork = Testnet, getRwdCred = KeyHashObj (KeyHash 40b799908a211d514d71845cecc48c1de71912d64853ac1c82bf044ea7d4d3f0)},Coin 500000000)]

Shouldn’t this be impossible? I thought to register the same Pool again on the Chain requires to have the RewardsAccount completely paid out (0 coin) before?

Looks like this is normal behavior, so, no issue.

1 Like

I guess, when you retire a pool you can just destroy the cold keys if you don’t want anyone to open it back up…