substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Remove `without_storage_info` for the `node-authorization` pallet

Open koute opened this issue 3 years ago • 8 comments

Part of https://github.com/paritytech/substrate/issues/8629

This PR changes the logic in the following way:

  • The well known nodes inserted during genesis are now bound by the MaxPeerIdLength and MaxWellKnownNodes constants. (Previously this wasn't enforced.)
  • The reset_well_known_nodes now enforces that the peer IDs passed in the nodes are bound by MaxPeerIdLength. (Previously this wasn't enforced.)
  • The reset_well_known_nodes now enforces that the number of nodes is bound by exactly MaxWellKnownNodes. (Previously it enforced a limit of MaxWellKnownNodes - 1, which I assume was an off-by-one error?)
  • The set inside of the AdditionalConnections is now bound by the MaxAdditionalConnections constant. (Previously it was uncapped.)
  • The add_connections and remove_connections now enforce that the peer IDs passed in the connections are bound by MaxPeerIdLength. (Previously this wasn't enforced.)
  • The offchain_worker hook now enforces that the state.peer_id is now at most MaxPeerIdLength long. (Previously this wasn't enforced.)

Marking as D5-nicetohaveaudit since this does change the logic.

Since this enforces extra bounds which weren't previously enforced do we need to do anything extra here?

koute avatar Jun 08 '22 07:06 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 16 '22 08:07 stale[bot]

not stale

koute avatar Jul 16 '22 09:07 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 15 '22 09:08 stale[bot]

not stale

koute avatar Aug 15 '22 09:08 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 14 '22 10:09 stale[bot]

not stale

koute avatar Sep 14 '22 12:09 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 14 '22 17:10 stale[bot]

not stale

koute avatar Oct 15 '22 10:10 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 17 '22 01:11 stale[bot]

not stale

koute avatar Nov 17 '22 02:11 koute

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 17 '22 02:12 stale[bot]

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 09 '23 10:02 stale[bot]

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 12 '23 13:03 stale[bot]

@koute do you feel like taking this over again? We will review it 😇

juangirini avatar Jun 09 '23 12:06 juangirini

@koute do you feel like taking this over again? We will review it

Sure I can. Could I get some feedback as to how this should be done? Is the way I did it okay, or does anything else has to change? (Besides @ggwpez 's comments which I'll address.)

koute avatar Jun 09 '23 12:06 koute

I think this is pretty much ready. @ggwpez I loop you in as you are more familiar with it to answer koute

juangirini avatar Jun 09 '23 13:06 juangirini