IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
43 stars 15 forks source link

[FR] - Proactive protection against `GovAction` deposit losses #900

Open gitmachtl opened 1 month ago

gitmachtl commented 1 month ago

As we talked about this issue in the CLI/API workgroup meeting #2 , i will leave a link here to the original issue raised on the ledger repo. https://github.com/IntersectMBO/cardano-ledger/issues/4605

If not possible to implement it on the ledger level, we should at least try to implement a basic guard against governance action deposit losses via a wrong or retired deposit-return stake address on the cardano-cli level.

So the major two things to check would be:

CarlosLopezDeLara commented 1 month ago

Perhaps the most natural place would be in build, however that would leave build-raw users without this protection. So I think it makes sense to add the check on transaction submit as suggested by @gitmachtl.

EDIT: Since https://github.com/IntersectMBO/cardano-ledger/pull/4639 prevents us from using unregistered stake addresses in proposals' deposits and treasury withdrawals, we can now just implement a fail on build.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.