Disable block production for the peer if it's not bioauth-unauthorized#101
Disable block production for the peer if it's not bioauth-unauthorized#101dmitrylavrenov merged 8 commits intomasterfrom
Conversation
…he peer isn't bioauth-unauthorized
|
I think for today there are the following possible solutions to make it in a simple way.
Here is a documentation for DisableValidators trait - https://github.com/paritytech/substrate/blob/864d096214cbde236f1ced7fdf4017ac22f5e5f5/frame/support/src/traits/validation.rs#L249. Here is a documentation for CanAuthorWith trait - https://github.com/paritytech/substrate/blob/026a8491694783dd95c9c3d2f917b11cf609cb49/primitives/consensus/common/src/lib.rs#L273. That's why I think that CanAuthorWith looks more suitable for this PR goals. |
|
One more thing. Maybe we should use this one - https://github.com/paritytech/substrate/blob/864d096214cbde236f1ced7fdf4017ac22f5e5f5/primitives/consensus/common/src/lib.rs#L91 |
|
Since work is ongoing here, I've set it back to draft. Please re-request review when you're ready. |
MOZGIII
left a comment
There was a problem hiding this comment.
I wanted to do some improvements, but we can address those later.
LGTM, except for outstanding comments.
Closes #67