stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

[Stacks 2.1] burnchain op for `revoke-delegate-stx`

Open friedger opened this issue 2 years ago • 8 comments

Describe the bug When users delegate stx using burnchain operations they are not able to change the pool, the amount or the membership period.

Steps To Reproduce Try to revoke delegation using a burnchain operation, it is not possible

Expected behavior A burnchain operation exists that creates synthetic events and that revokes delegation

friedger avatar Jan 25 '23 05:01 friedger

Hi @friedger,

Try to revoke delegation using a burnchain operation, it is not possible

Can you explain this a bit more? Is there a failed 2.1 Stacks transaction that tried to revoked delegation that I can look at in the explorer?

jcnelson avatar Jan 25 '23 16:01 jcnelson

@jcnelson There is a burnchain op code definition for delegate-stx, but there is not for revoke-delegate-stx

friedger avatar Jan 25 '23 16:01 friedger

I fear that the synthetic events for delegate-stx are not relevant if we don't have events for revoke-delegate-stx. @jcnelson

friedger avatar Feb 11 '23 22:02 friedger

I thought the node already generated synthetic events for revoke-delegate-stx? If not, then it could be added without breaking consensus. CC @zone117x @pavitthrap

jcnelson avatar Feb 12 '23 02:02 jcnelson

Temporarily assigning this to @zone117x so it has an owner. Please feel free to re-assign!

jcnelson avatar Feb 21 '23 20:02 jcnelson

I'm not going to be working on this area of the code, however, I'm happy to work on the API part of this. @pavitthrap I'm re-assigning to you since you helped with the last one of these.

zone117x avatar Feb 24 '23 18:02 zone117x

available in pox-3: https://github.com/stacks-network/stacks-blockchain/blob/master/src/chainstate/stacks/boot/pox-3.clar#L632

wileyj avatar Aug 09 '23 16:08 wileyj

@wileyj this issue is about burn chain operation. Currently, it is not possible to revoke via a btc tx.

friedger avatar Aug 10 '23 11:08 friedger