-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
@kianenigma Could you please review this? |
You can explore it, but probably we need both. The old
Would be good if we make sure that the deposit needed for this is a configurable multiple of the normal signed deposit.
Indeed! Once we have some tests, I will take a closer look. So far looks good! 🚀 |
@niklasad1 PTAL, this will need integration in the miner. |
I have added two tests and made it possible to configure the multiple of the normal signed deposit. I am not sure why some of these CI checks are failing. |
@kianenigma I have added tests, so I hope you could take a closer look. |
@kianenigma @niklasad1 It seems like the CI fails are not caused by the changes made in this PR. |
Co-authored-by: Niklas Adolfsson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would be good with some sharper eyes on this one :)
It seems like this didn't work, maybe because I didn't have any dot at that address, which is not the case anymore. |
@kianenigma The tip command should probably work now, thanks! |
/tip large |
A large tip was successfully submitted for Szegoo (126X27SbhrV19mBFawys3ovkyBS87SGfYwtwa8J2FjHrtbmA on polkadot). https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips |
@Szegoo companions needed. |
Does this PR need a companion on Cumulus? I don't see that it is using the pallet I modified, but for some reason, the CI check for it is failing. The error message doesn't seem to be related to this PR. Also, thanks for your patience, I realized just now that I need a companion on Polkadot for this PR and may need one on Cumulus. |
unfortunately I am going to have to close this for now, but I will add it to a queue to revisit later. The main reason is that we have received an audit report that allowing arbitrary solutions to be submitted from any origin at the emergency phase could open attack vectors. One idea is to restrict this so that only a specific origin can submit it, but at that point it becomes really similar to @Szegoo I checked that you have already been reimbursed for your work here, apologies for the change of plans! |
This attempts to fix #11472
Questions:
set_emergency_election_result
function when havingsubmit_emergency_solution
?finalize_signed_phase_reject_solution
good enough?This pr is not finished yet, I will need to change the documentation when I am assured that the code inside the
submit_emergency_solution
is correct. Also, I will probably write tests for it.polkadot companion: paritytech/polkadot#5795
Polkadot address: 126X27SbhrV19mBFawys3ovkyBS87SGfYwtwa8J2FjHrtbmA