From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 18 Aug 2026 02:17:50 -0700 Received: from mail-oa1-f63.google.com ([209.85.160.63]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1wwFx8-0001Ce-Bn for bitcoindev@gnusha.org; Tue, 18 Aug 2026 02:17:50 -0700 Received: by mail-oa1-f63.google.com with SMTP id 586e51a60fabf-45e6091d8a1sf1574125fac.1 for ; Tue, 18 Aug 2026 02:17:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1787044664; cv=pass; d=google.com; s=arc-20260327; b=HJisvkgNDahL5f2Wt+P+gBjubWRpJsOyKRXGLI/P1xc8AqfgF7cjbbrhmfnuIvQvYK n+doItTSjaXoNsL6qI1IoKkItJI5xzQ/wPoHSOmn2BY4wPX/++NHPKyJfJP3kvXdHCQs lBDpGab3GXIFWdC7xchJEoCS6siMGQvaIQUpoXikfhXLRPfdQAZdEVZCPEqBHJuW5Rua lprFl4Iemlkct4hUdca+94M8uobOKZ5tqFjm7xVg1bLUnRlhWPGgIEW40U4v+5IkY1yp TB8BWHqQKCgwnV6jYm8FhS2wcLwoGY8YmdrvzytofpTMFpNu+Z6HhBp+MKVS/jpTUDB+ yTew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:feedback-id :message-id:subject:from:to:date:dkim-signature; bh=ZUJh9YRDvPTwvj9Rm7r+/Jit0FRHYIEmbEFHxh1IN98=; fh=9+0icmA75sIAPknhIJZjoyrvavEbQKFKJLDkmnCoGTs=; b=OGKwDf6Ujlm7xFyHF5m1seTXoO4M1TdtLvaA0n/7gepnv++7DPpAbV29yDTeUWczDN 5vh8bL8yxNMNpTtIZrW+npXxVMU8S+zyBX3if98Aio2DcF7KuXg+XQgpqMswCdkQrqzw g6exf5nq22SSuWO0KFRMGhvT11Nj18vgerCbdsnz9lJpkJJKQBGFkcN/ymLgpIL+uEoa oDc7H0Kd6jvzR9go09V9TlALCHxV/KCuHpfeW2Wo7rkfzpvy6aRTGNHbdkNAxwLA1z1A 9nW2xhDXRXqJhDCyaOYE+57sosBub32vVUFv5uEJ+8pjO1J56nN0a2MOBx8vwgbzJQd+ o3IA==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b=XATqtqSP; spf=pass (google.com: domain of nervana21@pm.me designates 185.70.43.16 as permitted sender) smtp.mailfrom=nervana21@pm.me; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1787044664; x=1787649464; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:content-type :mime-version:feedback-id:message-id:subject:from:to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=ZUJh9YRDvPTwvj9Rm7r+/Jit0FRHYIEmbEFHxh1IN98=; b=u3/xevIqe9/kWn4f9jrfwEtrOZRFaNwBLk3DgXHWvDC+Mh0iyJ1NGeIxHY9RlAwyUg /DQZL5FD84wCaAY43sbCFM+StaKj6Tm8xmNoW2+bGv1oIe1RVrlYjumCWgtoUCxjRhyD Mc21J77M7esLdMYZN9z4Q8SnTseGlndDQQqfSl/RS0uoctq6OtjQjEvE4ixRpvsneP3N UHktxL50wN8QTj1gI8FJuY+3zPSViMgnIsQ7HY9z2yQdqhiHawO+e2Lr2mVE8UbDZg0+ yBli3+sUPzSA2C5gsGREs25Rll3SXULWCp55AkOpauG+1uPIG6hy+ItKO6/jcG7Ssdun swdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787044664; x=1787649464; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:content-type :mime-version:feedback-id:message-id:subject:from:to:date :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ZUJh9YRDvPTwvj9Rm7r+/Jit0FRHYIEmbEFHxh1IN98=; b=JabYufwEAAGKjH3OB2Z9LB2+mtsODoIuC/ZEhlSv8+2kr/pvPo7EuXsu0bTH2cvvB2 ZuFJ0PJWZK5oHnysHdjvrKJ/0jzR03eUDqJLvEOcjS8LaP/uttYqO20Jv4PXk+H+eokI 0CC0Wye8zlG8u8bBHqzJAHGwSHqsh4BNPdJr4hloqaEATMWlajCfBroFCDvbNjq+BDXY S08NLbFzVMm4JX7tfPvWpVTZgraK4SseFTwisdFVWaPg4FM94XO6idslroylE+HLptoW J4G8gsl0Bf0tiz7pN3kOPE6zC+mcUUTfbQfGDsh9dov4yQG2xE+Jfe5R40KFCqLTEph1 2xKw== X-Forwarded-Encrypted: i=2; AHgh+RoKY+aHdTycqVc2avXyiBXAsIHWdGn1PfQOqWuH0CesneY7vwl6MlxdBazGp3c3MIxQOp2OBE9o7OYa@gnusha.org X-Gm-Message-State: AOJu0YxPchcf7d/V2E/8e2V2FeC56kKXQ9llVTu5FPE8QNw3tzYNald2 kjpzHhBO6cFMExaJNPPFCKQhZP2zP+6mKXk3tF+ldKZpG0jm+7+jbSdE X-Received: by 2002:a05:687c:41dc:20b0:45e:d529:40cc with SMTP id 586e51a60fabf-45ed5298fb7mr13270316fac.18.1787044664398; Tue, 18 Aug 2026 02:17:44 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com; h="ATskLdceEyTS6SvPe7TxQ7XUbSXjQn4of1v8vABGomf4LZ3NTg==" Received: by 2002:a05:6871:553:b0:456:6f58:d522 with SMTP id 586e51a60fabf-45e5e48a276ls4080808fac.1.-pod-prod-04-us; Tue, 18 Aug 2026 02:17:38 -0700 (PDT) X-Received: by 2002:a05:6808:220b:b0:496:11f1:f2b5 with SMTP id 5614622812f47-4b241e1589dmr31815847b6e.10.1787044658722; Tue, 18 Aug 2026 02:17:38 -0700 (PDT) Received: by 2002:a05:600c:2944:b0:495:6266:d77a with SMTP id 5b1f17b1804b1-4995b133611ms5e9; Tue, 18 Aug 2026 01:00:09 -0700 (PDT) X-Received: by 2002:a05:600c:6296:b0:498:519:e660 with SMTP id 5b1f17b1804b1-4999fb07d28mr106245265e9.4.1787040007782; Tue, 18 Aug 2026 01:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1787040007; cv=none; d=google.com; s=arc-20260327; b=bjNz4ZrUYbk3wV815YiNa485PyeRUEaMoHgBpGPnri16QZ8jjSSujU/5dSH/A0Fi5e rI4T7ZiZylYDsHOT92oyO9j/DdfpRjVXje5orJHRYD5Xc05jcRVcgqO2GumklA1l3Zqt x7Xv0VuucS7GfySzYCMVujPmsk5Mn5LqAuhnWIPZLgBPEZRCpy5zLf+keBwY/dYTBIi0 qMQyMgktmEwHn2Oy+O5MCQMxdfZ/53mDnCWz6hbJzhAZ2zh3CQ9rm6oroJjQmhGJNjp6 i1lzjnmvIIjVuOad+Gkbo7Jri9qOZIDvS/z9VxsRS27z7UqHGaLxxkH9FgCrqjT1vYrD +YZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:feedback-id:message-id :subject:from:to:date:dkim-signature; bh=J20xJ/gfCYhmDigo5SzqyK6G97EiS5otxHY5+V5af48=; fh=lhFSo2W/mHC0QoJ9oNg3A35n0DTltt3CQl1/0RggJlk=; b=CCvS8hJm7QOb3/SAKL9Wms0hrS+mcTdGPlVzPqDfWdeRVvyRw9LKBIe1La7ryj5asF TNWgR77MHaHgtPeXEDLgnuyft1v0LieXxRdJ5/++ZYqSwdsMyZwGhroLEy5G2wnuEusQ d5o5tbzAJXjTBqgkbk/TZFBZBow4FZezhkjg2G68RX79/6tCmiU517ve8HuQ8b/1DPDM duPGM/gyJvYBabZmBQRWuS4W8T8fW+HmgKBDGoU0bCeRhVORvBjR+cjV5aG+VhUNt6nv A4dDH46k/ReL/Z1Lxd+bn5EAof7nU1T5p1pApwKeT+vtbJOalDfMivhJSvSR/rkZXqG9 e0hw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b=XATqtqSP; spf=pass (google.com: domain of nervana21@pm.me designates 185.70.43.16 as permitted sender) smtp.mailfrom=nervana21@pm.me; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch. [185.70.43.16]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4998af5195csi1464515e9.4.2026.08.18.01.00.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 01:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of nervana21@pm.me designates 185.70.43.16 as permitted sender) client-ip=185.70.43.16; Date: Tue, 18 Aug 2026 08:00:01 +0000 To: "bitcoindev@googlegroups.com" From: "'nervana21' via Bitcoin Development Mailing List" Subject: [bitcoindev] [BIP Proposal] Anti-Fee-Sniping with LockTime Message-ID: Feedback-ID: 215169482:user:proton X-Pm-Message-ID: 376684f07657c90fc4bc480ed766b9ace4873d55 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: nervana21@pm.me X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b=XATqtqSP; spf=pass (google.com: domain of nervana21@pm.me designates 185.70.43.16 as permitted sender) smtp.mailfrom=nervana21@pm.me; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me X-Original-From: nervana21 Reply-To: nervana21 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: -1.0 (-) Hello all, Anti-fee-sniping with nLockTime has been present in Bitcoin Core since 2014 and in Electrum since 2017. BIP326 assumes this nLockTime behavior as the baseline and uses nSequence instead for some taproot spends. However, the nLockTime rules themselves were never specified in a BIP. https://github.com/nervana21/bips/blob/anti-fee-snipe/bip-anti-fee-sniping-with-locktime.md The BIP draft follows Bitcoin Core's DiscourageFeeSniping and IsCurrentForAntiFeeSniping functions. nLockTime is set to the current tip height. With probability 10%, a uniform random integer in 0..99 is subtracted and the result is clamped at 0. A locktime equal to the tip height cannot be included in a remine of the tip. An older locktime chosen on the privacy branch can. nLockTime is set to 0 during initial block download or when the tip is more than 8 hours old. The policy is not applied when nLockTime is already set or when any input already has a preset nSequence. Test vectors are included. Constructive criticism is greatly appreciated. Cheers, nervana21 -- 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/wWGWjMw9TI22vp4VzCm4xJJS3IGA1UhndMKynUkB04BqeoRjhe-QbDbJU-GMQq0nnOnXuB__u8KcdIcxU5i8Cy9pbTbtJ7Hi583FzLVojek%3D%40pm.me.