Delivery-date: Sat, 27 Sep 2025 18:38:09 -0700 Received: from mail-oi1-f187.google.com ([209.85.167.187]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1v2gMa-00078R-W3 for bitcoindev@gnusha.org; Sat, 27 Sep 2025 18:38:09 -0700 Received: by mail-oi1-f187.google.com with SMTP id 5614622812f47-435de7c0722sf3334859b6e.2 for ; Sat, 27 Sep 2025 18:38:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1759023482; cv=pass; d=google.com; s=arc-20240605; b=EnxTuYOZbBEgD5oWsDuwH5QqU+lKY9DnhJWDrECfNxTTSj3Xi+o18V5VfPHAPvIagB 8Znb1J8tcezfqTEUi9bjSKNAZHqvo+CdlUg2OgmlNYPFuxEQ0yDuKchBasMNKgVNVKqz 3eb2tQdv6XBjJQBkW5QA9t8+DCkLhRQofA7VZyKnYQ9Ngd8eixUvazcw2lVCkWnBSR9n +ChSUtkLq4bFTDdPsIDgFJaYGp6i4+wc06aqFUoGK8JU1/J3Bzh2j3TALYSCqCISVghW VA1X3TZYIcnbqaVHlQJ6FTjmlR52HOQfk1SXT1BzVcusa1BFTpSKT/Nvu+q3DGvjkPyd djhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=gXPv8GDjphrqXZfkh7Km0AceghFWQQBsQVl1OZR/F0c=; fh=LdIN5r0mC2QOW7v3xafXDCCkdE9f4wSFibALizwEWGc=; b=iQI717eFEvMYAG2cEeQj5xYud+oIYyoU2CLV+Wqq+pggtjQKD+dTeaJZI9IU4ur1jT I3mBoTcVKGHWmgfDBvNepod+LZNc/s9BABDCNdk+ognj4qGuLiMW57+WeYGaQ/jabRcp Qb+u7YSlhdEYFyc4t9JkYIHOViR77dhnFnsXnRHGB21sLHSaQp0eRiWVUobDMUr2O6gD L8zIyqv/kVaT5+tQNRijOSW52DISAor1HskXNjalNT5eBdEyxyNH1NY6HJzd/kii1NaP Flv1rprpS+jI5Fx2R65o82gbC17Xv4SUol4P6tYRVw/kpcv7aJhQ33DjJV0AM7VZD3no +TXA==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="J6/v2HkL"; spf=pass (google.com: domain of alicexbtong@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=alicexbtong@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1759023482; x=1759628282; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=gXPv8GDjphrqXZfkh7Km0AceghFWQQBsQVl1OZR/F0c=; b=LvyXtUn058gQ2VXDbqE+dsTQ1mRixNhNs10bHMVYf+BPG/wMZF9jBUTcojQaA2tXno rPsXT+/1NGvvfozg/9Jb8C1GjGrZfzh6VgbicB7rH7WIWj3E6Qrtd1sQCpseuWWsX3wE sjWtqX26bA+WjrBWDu3ZqyTc9+UN5+7Rs95G7iysO/7OcJ9yWv8dPcsnnOKjHBD9aH03 clWrZoENpOvFSvNQTYOLcAOOe/VxZnNk7zjr0PuT4MAJRcAmJHd4QaI4bxWDGmn0vbMh RAoBvmn4LbVfhTISBD/GC6R1OV3R1EepaQa2Sq7k62Pt1QUryhCfaFQGbBHACWOVYWyh bH2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759023482; x=1759628282; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gXPv8GDjphrqXZfkh7Km0AceghFWQQBsQVl1OZR/F0c=; b=EPuWWrHYyyA2i8GnLr3/D7+4zEG6HF0s2hOoaiaSOEd+TUCqsmgdoJpDE695uuFBVP spNFI8FOIJmI8FFHmWqm76++UPq/FMHTekdUK1mMr2Flo12InEe3EJCcBtbPBBTSxOta 0NcScdWgWokkda8uAWA9LK8VZSkVP+D/i/7OEUoUknClOcr+yfhoob4qwIfsh01bF7I3 yi41tdHyTMhwpAyHpjz2J8U7F3545gkz7J75pR5rivMUJLnjDf4dsQdTn6g/QCM25pjM kFmieIUKvcLwcluaVtrj4bM7BSQIV5ehxWS+r3tQmMTQk4OTrt7hPvJ3uGTq0GfaT0Dv m9Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759023482; x=1759628282; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=gXPv8GDjphrqXZfkh7Km0AceghFWQQBsQVl1OZR/F0c=; b=OufyYKwL2uZj34Lp7fBmQthQZOMAAXDQNGZVkvlwF5FKNHpg2kJiuNS9LnkLD2mkmH xQRhEfSvyKT3Sb2b5H6jUiV5uDCpKHFiL3vpHznuhv5MAGPIqeHLgC0Igd46Glc4l+Vz MoIWstKACxbhUdVzg3plvCnl7UrzeFgmhSJllPPFHUvnUxnODNnscHoBHPPvOpvifB9K kKofrNotIKP4M/ij9ysqI47rO7Y8VFHznQF1koqdh51032ND10wJhymWcSFHU/Twn1hv KTzAnoVOSs30IydGGKfVEYi3Vzo2IOb4XEVRVoKvWNVxH7/fXsnmXeDWcOzDWb9PkU+m hl/g== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXfbLH9MHDBeVRyVf91b7MCgFQbTxJKdm8PMGNaykAgl98plQr0QiwrQQDbUT2UUgb40cN7sRJpjcib@gnusha.org X-Gm-Message-State: AOJu0YyTnJ7z8Rbck/bKt2GgjSOh8jA0sdGjHgjIfxTzEvJByScN8Mob kePKNLayh/PqSIcUpUkQYi0g8lwiYl2WmQhoJkSV0to5gb/GRKJdsy8P X-Google-Smtp-Source: AGHT+IHmg34iBf6hglTPsgrFqO5Nrd8bPIKjOVV/kREOytvAnyEH8kL6kt1sghswzjk6jgqFdbPb2A== X-Received: by 2002:a05:6808:6687:20b0:43f:5bee:4e49 with SMTP id 5614622812f47-43f5bee50d4mr4458806b6e.41.1759023482054; Sat, 27 Sep 2025 18:38:02 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com; h="ARHlJd6DMHg5M1VTJ12ngVt/LY0D0kALCpj8o4fVCqKdGjL7KA==" Received: by 2002:a05:6820:490e:b0:62e:5dca:2198 with SMTP id 006d021491bc7-63a71e6c3d5ls541125eaf.1.-pod-prod-01-us; Sat, 27 Sep 2025 18:37:57 -0700 (PDT) X-Received: by 2002:a05:6808:2227:b0:43f:75e2:af41 with SMTP id 5614622812f47-43f75e2b3d1mr998296b6e.15.1759023477736; Sat, 27 Sep 2025 18:37:57 -0700 (PDT) Received: by 2002:a05:6808:1a15:b0:43f:5b9f:a4a0 with SMTP id 5614622812f47-43f5e0fa8c5msb6e; Sat, 27 Sep 2025 18:22:42 -0700 (PDT) X-Received: by 2002:a17:903:19ef:b0:25d:885:5b6b with SMTP id d9443c01a7336-27ed4a76e9emr143434225ad.58.1759022561157; Sat, 27 Sep 2025 18:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1759022561; cv=none; d=google.com; s=arc-20240605; b=RIKi0mHCOQ6XtHCvPftVFkyEtoMwaXJwvx+N/3ujbqB1uUs3ked85Nl68Ifu8jcCzm p4rspTZzHZVau0JidyEchvM7JIO3euGvNSr/6ZrpyvYBsOARpfJSA4kLHX5gbAmbfRr3 lOZq/HTnUydKnGMS300zslatwpmoMm6zCznbKH8dglq5mWoEIM92pfiHjH44p4ioRCvY PufWNpVyoqbdSyCmpMQO8T4e8grEYIshCBGK+XIQB3sKOgr0N/66KJdWcRXjMcR07Wjx AVlxDVcLD98EaZaZt0qxzZr4cL1hIF11rjdguSw7MQGFmLbfHH4eQ9blkl4sibzvEnAv HXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=JQPwpM3DRde2Q6ScyZamnzdlnzp2XcMfiOBe9pK5vA0=; fh=MCnDDl7Yg5BFw0KQ3PmnLIBk+agcytx4WzwkxKVXVl0=; b=Vd6DrQLq0RJp3fToNmZUTrSB7DyrNvd6NXEd8UR4YChUPKLu/+707/Iwe1GYbhUdbI SI4qIjj1CBcdgorzc0uSyoaxuNBlBDt8B401LnKtB0uWiysZxfaSOe9yXzjukZKXNVwl k4Z2R9d1SYWcghObIHsYX5FZtEaacMQjID8UTNVhfLExBOQ8FLAWW7que94XnWPmTzFL siWa0xToBo5hJCvY4KTpAG6IcOpbShGmBceSp6JS4ivg2Uw6rBR78t/XsYLO5PR82C2P kUUNaNY/ILPumwRP1oxcn1tLTBh18wnqCJsvoxJbSbyOa5goqG4JOiUas2d312G1Vo54 QdWA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="J6/v2HkL"; spf=pass (google.com: domain of alicexbtong@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=alicexbtong@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com. [2607:f8b0:4864:20::22d]) by gmr-mx.google.com with ESMTPS id d9443c01a7336-27ed66f34e9si3621515ad.2.2025.09.27.18.22.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Sep 2025 18:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of alicexbtong@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) client-ip=2607:f8b0:4864:20::22d; Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-43f50c2765dso180341b6e.3 for ; Sat, 27 Sep 2025 18:22:41 -0700 (PDT) X-Gm-Gg: ASbGncvIXUmzYGEOr3rMu33jLKR7BNDDOgRgIum28/vC+48zoXuRlhwUjUpewDMSddp vrxiyJzWPTJpMYQL+BAtS57eY/WdM6j89CQM4KeQmV528reWC8F9qHmIyEdn3lSz25azZ5XQT9N Za//zugR+JJbN1rpIY1g8CaOuvXeicfVjtH4q0hMDOvvqEfvfBsRqhDFgA5RbgFfyhKXut6Ag3D ZMlRFcz9vkGwYhW09OmqUWnq2rniLQwF1sWF3HmYHg7nLt8 X-Received: by 2002:a05:6808:150c:b0:43f:76e6:871a with SMTP id 5614622812f47-43f76e698a5mr1097761b6e.24.1759022560333; Sat, 27 Sep 2025 18:22:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "/dev /fd0" Date: Sun, 28 Sep 2025 06:52:28 +0530 X-Gm-Features: AS18NWDBeDL9zNkyrt8EiyR6mBTD1OdjWhPbUnDdJtn3s6IuU4JJyV5LSJ2OgtI Message-ID: Subject: Re: [bitcoindev] [BIP Proposal] Mempool Validation and Relay Policies via User-Defined Scripts To: me@drbonez.dev Cc: Bitcoin Development Mailing List Content-Type: multipart/alternative; boundary="000000000000dc5363063fd25aeb" X-Original-Sender: alicexbtong@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="J6/v2HkL"; spf=pass (google.com: domain of alicexbtong@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=alicexbtong@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -0.5 (/) --000000000000dc5363063fd25aeb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Aiden, There is an easy solution based on my understanding of [transaction validation][0] although I have not tested it: 1. Add a config option `txnotify` similar to `blocknotify` that executes commands or script when a new transaction is received from a peer. 2. Add a function `ExecuteTxNotify()` that will run the script provided by the user in step 1. Script should either return 'accept' for 'reject' and function would return true/false accordingly. 3. Call `ExecuteTxNotify()` in ` AcceptToMemoryPool()` so that rejected transactions do not enter the mempool. [0]: https://bitcoincore.academy/transaction-validation.html /dev/fd0 floppy disk guy On Thu, Sep 25, 2025 at 12:00=E2=80=AFAM Aiden McClelland = wrote: > Hi all, > > I'd like to share for discussion a draft BIP to allow for a modular > mempool/relay policy: https://github.com/bitcoin/bips/pull/1985 > > I think it could potentially reduce conflict within the community around > relay policy, as an alternative to running lots of different node > implementations/forks when there are disagreements. > > I am working on a reference implementation using Bellard's QuickJS, but i= t > has been almost a decade since I've written C++, so it's slow going and I= 'm > sure doesn't follow best-practices. Once it's working, it can be cleaned = up. > > Thanks, > Aiden McClelland > > -- > You received this message because you are subscribed to the Google Groups > "Bitcoin Development Mailing List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to bitcoindev+unsubscribe@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/bitcoindev/cbdab6fa-93bc-44c9-80f0-6c68= c6554f56n%40googlegroups.com > > . > --=20 You received this message because you are subscribed to the Google Groups "= Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoindev+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/= CALiT-ZqFhMV8VfgOdNyamG4oLgyCL5E7W8s3F9gB_k0ihyUAgA%40mail.gmail.com. --000000000000dc5363063fd25aeb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aiden,

There is an easy solution bas= ed on my understanding of [transaction validation][0] although I have not t= ested it:

1. Add a config option `txnotify` similar to `blocknotify`= that executes commands or script when a new transaction is received from a= peer.
2. Add a function `ExecuteTxNotify()` that will run the sc= ript provided by the user in step 1. Script should either return 'accep= t' for 'reject' and function would return true/false accordingl= y.
3. Call `ExecuteTxNotify()` in ` AcceptToMemoryPool()` so that rejected transactions do not enter the mempoo= l.

<= /div>

--
You received this message because you are subscribed to the Google Groups &= quot;Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoind= ev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/ms= gid/bitcoindev/CALiT-ZqFhMV8VfgOdNyamG4oLgyCL5E7W8s3F9gB_k0ihyUAgA%40mail.g= mail.com.
--000000000000dc5363063fd25aeb--