In a Taproot script path spend, the last witness element is the control block: 33 bytes plus 32 bytes for each Merkle path node, and Bitcoin Core accepts at most 128 path nodes, which limits a script tree to a depth of 128.
Sources and checks
T1BIP 341, TaprootBIP, says this directly
The last stack element is called the control block
Specification, Script validation rules, script path, read 2026-11-20
T1Bitcoin Core src/script/interpreter.h, Taproot constantsSource code, says this directly
inline constexpr size_t TAPROOT_CONTROL_MAX_NODE_COUNT = 128;
TAPROOT_CONTROL_MAX_NODE_COUNT, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/script/interpreter.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/script/interpreter.h | grep -nF 'inline constexpr size_t TAPROOT_CONTROL_BASE_SIZE = 33;'bitcoin/bitcoin at f498a5a671 contains this text in src/script/interpreter.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/script/interpreter.h | grep -nF 'inline constexpr size_t TAPROOT_CONTROL_NODE_SIZE = 32;'bitcoin/bitcoin at f498a5a671 contains this text in src/script/interpreter.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/script/interpreter.h | grep -nF 'inline constexpr size_t TAPROOT_CONTROL_MAX_NODE_COUNT = 128;'Checked at block 976,759, 20 Nov 2026, 17:27 UTC: quotes 2/2, code 3/3
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:27 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-taproot