Interface PermissioningService
- All Superinterfaces:
BesuService
This service allows plugins to decide who you should connect to and what you should send them.
Currently, there are two hooks available: connection permissioning and message permissioning.
- Connection permissioning - checks if inbound and outbound connections to peers are
permitted.
NodeConnectionPermissioningProvider - Message permissioning - checks if a devp2p message can be sent to a peer.
NodeMessagePermissioningProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters a callback to allow the interception of a devp2p message sending requestvoidRegisters a callback to allow the interception of a peer connection requestvoidRegisters a callback for transaction permission.
-
Method Details
-
registerNodePermissioningProvider
Registers a callback to allow the interception of a peer connection request- Parameters:
provider- The provider to register
-
registerTransactionPermissioningProvider
Registers a callback for transaction permission.- Parameters:
provider- The provider to register
-
registerNodeMessagePermissioningProvider
Registers a callback to allow the interception of a devp2p message sending request- Parameters:
provider- The provider to register
-