delvingbitcoin

Combined summary - What happens after we "run out" of script flags?

Combined summary - What happens after we "run out" of script flags?

The discussion revolves around the technical nuances of implementing changes within Bitcoin Core's scripting mechanism, particularly concerning script flags.

These flags are integral to instructing the script interpreter on the validation checks to be performed but are not deemed consensus critical. This means their modification or extension is not expected to directly impact the broader consensus rules that underpin the network's operation.

A current point of contention is the limitation imposed by the existing data structure used for script flags, which is a 32-bit unsigned integer. The dialogue highlights a hypothetical scenario where adding an additional 11 script flags would exhaust the available space within this structure. Such an expansion raises questions about the future scalability of script flags and the potential need to transition to a larger data structure, such as a 64-bit integer, to accommodate more flags.

Furthermore, there's an ongoing debate regarding the best approach to handle concurrent overlapping activations, with specific reference to LNHANCE, which currently utilizes three flag bits, and C3PO, which is gaining preference among developers. This situation underscores the challenges faced in balancing technical feasibility with community preferences and the need for forward-thinking solutions in Bitcoin Core's development.

Discussion History

0
moonsettlerOriginal Post
January 12, 2025 19:29 UTC
1
January 12, 2025 23:08 UTC
2
January 12, 2025 23:32 UTC
3
January 13, 2025 00:00 UTC
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback