mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-10 03:47:39 +00:00
Don't double add to canon scratch
This commit is contained in:
@@ -786,7 +786,8 @@ bool StoreForwardPlusPlusModule::handleReceivedProtobuf(const meshtastic_MeshPac
|
||||
addToScratch(incoming_link);
|
||||
} else if (incoming_link.commit_hash_len == SFPP_HASH_SIZE && chain_end.counter == 0) {
|
||||
addToChain(incoming_link);
|
||||
} else if (incoming_link.counter != 0) {
|
||||
} else if (incoming_link.counter != 0 &&
|
||||
!isInCanonScratch(incoming_link.message_hash, incoming_link.message_hash_len)) {
|
||||
|
||||
// We've received a link provide, and it doesn't fit. But it may be legit. Add it to canon_scratch
|
||||
addToCanonScratch(incoming_link);
|
||||
|
||||
Reference in New Issue
Block a user