Skip to content

feat(rpc): Disable submission of triggers and gobject vote-conf RPC - #5552

Merged
PastaPastaPasta merged 5 commits into
dashpay:developfrom
ogabrielides:gobject_rpc_rename
Aug 31, 2023
Merged

PastaPastaPasta merged 5 commits into
dashpay:developfrom
ogabrielides:gobject_rpc_rename

Conversation

@ogabrielides

@ogabrielides ogabrielides commented Aug 30, 2023 •

Copy link
Copy Markdown

Issue being fixed or feature implemented

With #5525 , MNs shouldn't use Sentinel anymore.

What was done?

In order to force them to remove Sentinel:

  • gobject submit RPC won't accept triggers anymore.
  • gobject vote-conf RPC isn't available anymore.

How Has This Been Tested?

feature_governance.py and feature_governance_object.py

Breaking Changes

Normally, only Sentinel should be broken.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@ogabrielides ogabrielides added this to the 20 milestone Aug 30, 2023
@ogabrielides ogabrielides added the RPC Some notable changes to RPC params/behaviour/descriptions label Aug 30, 2023
@PastaPastaPasta

Copy link
Copy Markdown
Member

Only functionality only intended to be used by sentinel should be broken IMO; we shouldn't break simply voting or creating a proposal as that would break lots of documentation and automated processes for proposal creation

Comment thread doc/release-notes-5552.md Resolved
@thephez

thephez commented Aug 30, 2023 •

Copy link
Copy Markdown
Collaborator

Only functionality only intended to be used by sentinel should be broken IMO; we shouldn't break simply voting or creating a proposal as that would break lots of documentation and automated processes for proposal creation

I was about to mention this too 🙂 As far as I can tell, gobject submit and gobject vote-conf are the only commands Sentinel uses that matter (gobject list and gobject getcurrentvotes just read info and should be harmless). That being said, I think this will be a breaking change anyway because gobject submit is also used to submit proposals. gobject vote-conf could be used by some people to vote, but probably not many.
image

@ogabrielides
ogabrielides marked this pull request as draft August 30, 2023 15:47
@ogabrielides
ogabrielides marked this pull request as ready for review August 30, 2023 16:24
@ogabrielides ogabrielides changed the title feat(rpc): Gobject rpc rename feat(rpc): Disable submission of triggers in gobject submit RPC Aug 30, 2023
@ogabrielides
ogabrielides requested a review from thephez August 30, 2023 16:34

@thephez thephez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I like that this minimizes the impact on external tools. Should the same thing be done with gobject vote-conf?

@ogabrielides

Copy link
Copy Markdown
Author

👍 I like that this minimizes the impact on external tools. Should the same thing be done with gobject vote-conf?

Well in #5525, trigger creation is done automatically. This is the feature that we want to protect.

@thephez

thephez commented Aug 30, 2023

Copy link
Copy Markdown
Collaborator

👍 I like that this minimizes the impact on external tools. Should the same thing be done with gobject vote-conf?

Well in #5525, trigger creation is done automatically. This is the feature that we want to protect.

Yes, but don't we want to prevent Sentinel from trying to vote on triggers also? I assume that is also done automatically in Core now too.

@ogabrielides

Copy link
Copy Markdown
Author

👍 I like that this minimizes the impact on external tools. Should the same thing be done with gobject vote-conf?

Well in #5525, trigger creation is done automatically. This is the feature that we want to protect.

Yes, but don't we want to prevent Sentinel from trying to vote on triggers also? I assume that is also done automatically in Core now too.

@UdjinM6 thoughts ?

@UdjinM6

UdjinM6 commented Aug 30, 2023

Copy link
Copy Markdown

Agree, it should not be possible to submit triggers and vote for them via rpc.

@ogabrielides
ogabrielides marked this pull request as draft August 30, 2023 18:06
@ogabrielides ogabrielides changed the title feat(rpc): Disable submission of triggers in gobject submit RPC feat(rpc): Disable submission/votings of triggers in gobject submit RPC Aug 31, 2023
@ogabrielides
ogabrielides marked this pull request as ready for review August 31, 2023 09:05
@ogabrielides
ogabrielides requested a review from thephez August 31, 2023 09:05
@ogabrielides

Copy link
Copy Markdown
Author

@UdjinM6 Voting for triggers is also disabled

@ogabrielides ogabrielides changed the title feat(rpc): Disable submission/votings of triggers in gobject submit RPC feat(rpc): Disable submission/votings of triggers in gobject submit/vote-conf RPC Aug 31, 2023
@UdjinM6

UdjinM6 commented Aug 31, 2023

Copy link
Copy Markdown

vote-conf can't be used for proposals, it should be dropped imo 8e20f76. gobject submit help should not mention a possibility of submitting triggers, must require all params and maybe have a bit better description 217a82f.

@ogabrielides ogabrielides changed the title feat(rpc): Disable submission/votings of triggers in gobject submit/vote-conf RPC feat(rpc): Disable submission of triggers and gobject vote-conf RPC Aug 31, 2023

@thephez thephez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK 👍

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK for squash merge

@PastaPastaPasta
PastaPastaPasta merged commit 811f617 into dashpay:develop Aug 31, 2023
@ogabrielides
ogabrielides deleted the gobject_rpc_rename branch August 31, 2023 17:15
thephez added a commit to thephez/docs-core that referenced this pull request Sep 28, 2023
thephez added a commit to dashpay/docs-core that referenced this pull request Oct 2, 2023
* docs(rpc): minor update to unloadwallet description

* style: update v20 rpc highlight to be consistent

* docs(rpc): remove gobject vote-conf

* style: update warning on removed rpc page

* docs(rpc): fix table

* docs(rpc): update gobject submit

No longer supports triggers (dashpay/dash#5552)

* docs(rpc): update fundraw, sendmany, sendtoaddr, and walletcreatefundedpsbt

Changes from dashpay/dash#5360

* chore(rpc): update getwalletinfo

* docs(rpc): update quick ref version notes

* docs(rpc): update getgovernanceinfo

Related to dashpay/dash#5581
thephez added a commit to dashpay/docs-core that referenced this pull request Nov 15, 2023
* docs(rpc): minor update to unloadwallet description

* style: update v20 rpc highlight to be consistent

* docs(rpc): remove gobject vote-conf

* style: update warning on removed rpc page

* docs(rpc): fix table

* docs(rpc): update gobject submit

No longer supports triggers (dashpay/dash#5552)

* docs(rpc): update fundraw, sendmany, sendtoaddr, and walletcreatefundedpsbt

Changes from dashpay/dash#5360

* chore(rpc): update getwalletinfo

* docs(rpc): update quick ref version notes

* docs(rpc): update getgovernanceinfo

Related to dashpay/dash#5581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RPC Some notable changes to RPC params/behaviour/descriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants