`endpoint` type is defined above (See "Endpoint format").
`endpoint` type is defined above (See "Endpoint format").
The document is represented by an array of bytes containing (peer_card_size + 2) bytes.
The document is represented by an array of bytes containing (peer_card_size + 2) bytes.
...
@@ -378,10 +380,10 @@ If the outcoming quota is already reached at the beginning of an attempt, the le
...
@@ -378,10 +380,10 @@ If the outcoming quota is already reached at the beginning of an attempt, the le
The WS2P module does not attempt to connect randomly to any node among those of which it knows a WS2P endpoint,
The WS2P module does not attempt to connect randomly to any node among those of which it knows a WS2P endpoint,
it classifies them according to the following criteria :
it classifies them according to the following criteria :
### 1st criterion: the network layer
### 1st criterion: network features
If the node is configured to use an X network layer, then all nodes that accept a connection through this X network layer will have priority.
Some network features, imply that the node prioritizes endpoints having such or such network feature.
Currently, only the TOR network layer is implemented.
For example, if the node has the TOR feature, it will prioritize nodes that also have the TOR feature.
_Note: the first criterion takes precedence over the second one._
_Note: the first criterion takes precedence over the second one._
...
@@ -551,7 +553,7 @@ Some WS2Pv1 messages are accepted within WS2Pv2 connections, here is the exhaust
...
@@ -551,7 +553,7 @@ Some WS2Pv1 messages are accepted within WS2Pv2 connections, here is the exhaust
* v1 requests
* v1 requests
* responses to v1 requests
* responses to v1 requests
WARNING : Exception with the RBF api feature : In a WS2P connection between two nodes that both support RBF api feature, any WS2Pv1 message is rejected !
WARNING : Exception with the ABF api feature : In a WS2P connection between two nodes that both support ABF api feature, any WS2Pv1 message is rejected !
### REQUESTS
### REQUESTS
...
@@ -744,7 +746,7 @@ There are still 5 flags for future network layers that could be implemented in t
...
@@ -744,7 +746,7 @@ There are still 5 flags for future network layers that could be implemented in t
### Documents messages
### Documents messages
All WS2Pv2 documents are necessarily in RBF (Rust Binary Format). When document binarization is coded in Duniter-ts, then it will be necessary to define a common binary format for each document. For performance reasons, we will probably opt for the format in which each document is signed.
All WS2Pv2 documents are necessarily in Binary Format. When document binarization is coded in Duniter-ts, then it will be necessary to define a common binary format for each document. For performance reasons, we will probably opt for the format in which each document is signed.
We must therefore wait for the binarization of the blockchain protocol.
We must therefore wait for the binarization of the blockchain protocol.