-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Labels
A-jormungandrArea: Issues affecting jörmungandrArea: Issues affecting jörmungandrenhancementNew feature or requestNew feature or requestsubsys-networknetwork relatednetwork related
Milestone
Description
The #1972 describe a new kind of client service. We will receive messages from the network, need to process some blobs data (can we decrypt them?) and then update the poldercast 4th layer (#1978).
in the context of a passive node (no VRF)
- store received blobs's hash in a LRU Cache (see crate
lru); - if the blob is already in the LRU Cache, ignore;
- if not, query the
P2PTopologyfor aviewand broadcast the blob to them;
in the context of a stake pool
This module will need to perform the following actions:
sending bottles
- wait for interval between 2 bottles to yield (need configuration option);
- from the
tipof the blockchain, select thestake poolviews and selectNnumber of them (need configuration option); - prepare
our bottleand encrypt with shared_asymlock for these pools ([bottle in the sea]: add shared asymmetric encryption chain-libs#310); - query the
P2PTopologyfor aviewand broadcast the blob to them;
receiving bottles
- store the received blob's hash in a LRU Cache (see crate
lru); - if the blob is already in the LRU Cache, ignore;
- query the
enclaveto decrypt the blob: if blob is a message for us, send it to the4th layer([bottle in the sea]: the 4th layer #1978); - query the
P2PTopologyfor aviewand broadcast the blob to them;
Compatibility considerations
it may be some nodes in our view do not support this new network message, do not strike them if we cannot send that message otherwise we will quarantine nodes that are perfectly valid.
Configurations
We will need to be able to configure some parameters:
- send bottle interval: a
jormungandr_lib::time::Durationprovides already the UX to read it from both CLI orserde(config file): this is the interval between trying
danielSanchezQ
Metadata
Metadata
Assignees
Labels
A-jormungandrArea: Issues affecting jörmungandrArea: Issues affecting jörmungandrenhancementNew feature or requestNew feature or requestsubsys-networknetwork relatednetwork related