From 763c7a191a12ac79bdea3742907dc876e09200e5 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Tue, 30 Jan 2018 14:10:22 +0100 Subject: [PATCH] [fix] mirrors heads are not rebounds --- rfc/0004_ws2p_v1.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rfc/0004_ws2p_v1.md b/rfc/0004_ws2p_v1.md index 5315b9d..6a0244c 100644 --- a/rfc/0004_ws2p_v1.md +++ b/rfc/0004_ws2p_v1.md @@ -308,8 +308,9 @@ When the local node receives a HEAD message, it checks whether all of the follow 2. The head has a block number equal to or greater than all cached heads for the same ws2pid 3. If the block number is equal to the cached head, the head is of a higher or equal version. 4. If the block number is equal to the cached head, and the version is identical, the step field is smaller. +5. If the head pubkey is not a member, make sure there is an active ws2p connection with this pubkey. -If all these conditions are respected, perform the following actions: +If all these conditions are respected, perform the following actions : 1. Save this head in the headCache, overwrite the existing head if it exists. 2. Increment the step field of this head then send it to all established ws2p connections. -- GitLab