node::CoinbaseTx::witness

The first (and only) witness stack element of the coinbase input.

Synopsis

Declared in <node/mining_types.h>

std::optional<uint256> witness;

Description

Omitted for block templates without witness data.

This is currently the BIP 141 witness reserved value, and can be chosen arbitrarily by the node, but future soft forks may constrain it.