Return-Path: Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 67943C000E for ; Tue, 13 Jul 2021 01:00:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5B2CF60629 for ; Tue, 13 Jul 2021 01:00:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: 1.795 X-Spam-Level: * X-Spam-Status: No, score=1.795 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URI_DOTEDU=1.997] autolearn=no autolearn_force=no Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=wuille.net Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jreUleY0PFNC for ; Tue, 13 Jul 2021 01:00:09 +0000 (UTC) X-Greylist: delayed 00:05:24 by SQLgrey-1.8.0 Received: from mail-41103.protonmail.ch (mail-41103.protonmail.ch [185.70.41.103]) by smtp3.osuosl.org (Postfix) with ESMTPS id EBA4160591 for ; Tue, 13 Jul 2021 01:00:08 +0000 (UTC) Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41103.protonmail.ch (Postfix) with ESMTPS id 4GP2GT5bKgz4wyXY for ; Tue, 13 Jul 2021 00:54:41 +0000 (UTC) Authentication-Results: mail-41103.protonmail.ch; dkim=pass (2048-bit key) header.d=wuille.net header.i=@wuille.net header.b="bQfCUGFZ" Date: Tue, 13 Jul 2021 00:54:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wuille.net; s=protonmail3; t=1626137671; bh=mFVJ+9d4jT4Ra1Odtc7Y7LFfWbnB93z9B77+W500HKM=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=bQfCUGFZyOaQ0772aquU+7udXJylxlUJXBgh/rWxcAtIte6t+aaWSbdu8AFIOMNzz ++M9ALBm/Gu59BmHSeUZ9TVpOZnFK/YKSUrfVzJrkUYKLAEEYNI6ninVkn7M5SoH/8 pP+27+rb4oq8mO/4j+VNgqf3UMkYpird5KXc4/a7nqt6lzqBURTNNIwriDU0J8B2N8 COBIju/tsKgfyDczmIN9uTcd8Lq9VAoQbPdStGHTFAF68RmTT1LBNn/BNpXU/eQWa3 8ox3olyojBgLT+ye5gYjW0uNqs+H8RChDhvdqUGS7DJOPEo1W1huzR3ht6TNg+tWpF bS0v8cEPBIM6g== To: Ali Sherief , Bitcoin Protocol Discussion From: Pieter Wuille Reply-To: Pieter Wuille Message-ID: <7onDqKwXHBsQUhahHnz9HH2127d2xdI-r2GgcX1DiOarSlWj9569-lEmppxRkY-aDfGHyqk62_YwxaoAUYAVJfCwK90-khTmPYntT7veF_g=@wuille.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_UHMgUPq13wH7RngeWTjY8UXJYzDM7EAuTTfEioTZfss" X-Mailman-Approved-At: Tue, 13 Jul 2021 01:42:27 +0000 Subject: Re: [bitcoin-dev] An idea to block invalid addresses from reaching the peers.dat buckets X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2021 01:00:11 -0000 This is a multi-part message in MIME format. --b1_UHMgUPq13wH7RngeWTjY8UXJYzDM7EAuTTfEioTZfss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 PiB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