Skip to content

Commit c478d68

Browse files
committed
build: Fail if RDTS_CONSENT is set
1 parent cab2b73 commit c478d68

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,17 @@ if(BUILD_FOR_FUZZING)
313313
)
314314
endif()
315315

316+
if(DEFINED CACHE{RDTS_CONSENT})
317+
message(FATAL_ERROR
318+
"RDTS_CONSENT is set, but this version does not support RDTS.\n"
319+
"You are attempting to configure BIP110 (RDTS) consent, but this source code is too old to support the RDTS network upgrade, which fixes critical vulnerabilities in long-standing network design.\n"
320+
"Important: Because this upgrade already has broad community support, continuing to run older versions (such as this version) does not reject it. Running outdated software after any network upgrade only leaves your node vulnerable to displaying fake or fraudulent transactions. To effectively reject this upgrade, you need to run alternative software designed to split away from the upgraded network.\n"
321+
"If you intend to build a node that supports this upgrade, please update your source code to a newer version: https://bitcoinknots.org\n"
322+
"If you intentionally wish to build this older version, you can replace -D RDTS_CONSENT=... with -U RDTS_CONSENT in your CMake options.\n"
323+
"For more information, see: https://bitcoinknots.org/learn/2026-rdts"
324+
)
325+
endif()
326+
316327
# The external_lib_interface interface library aims to encapsulate build flags, which
317328
# are specific to non-internal libraries.
318329
# It is intended to be a usage requirement for non-internal library

contrib/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
# check=error=true
13
FROM alpine:3.22 AS builder
24

35
RUN apk add --no-cache \

0 commit comments

Comments
 (0)