![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
Template containing all coinbase transaction fields that are set by our miner code. More...
#include <types.h>
Public Attributes | |
| uint32_t | version |
| uint32_t | sequence |
| CScript | script_sig_prefix |
| Prefix which needs to be placed at the beginning of the scriptSig. More... | |
| std::optional< uint256 > | witness |
| The first (and only) witness stack element of the coinbase input. More... | |
| CAmount | block_reward_remaining |
| Block subsidy plus fees, minus any non-zero required_outputs. More... | |
| std::vector< CTxOut > | required_outputs |
| uint32_t | lock_time |
Template containing all coinbase transaction fields that are set by our miner code.
Clients are expected to add their own outputs and typically also expand the scriptSig.
| CAmount node::CoinbaseTx::block_reward_remaining |
| CScript node::CoinbaseTx::script_sig_prefix |
Prefix which needs to be placed at the beginning of the scriptSig.
Clients may append extra data to this as long as the overall scriptSig size is 100 bytes or less, to avoid the block being rejected with "bad-cb-length" error.
Currently with BIP 34, the prefix is guaranteed to be less than 8 bytes, but future soft forks could require longer prefixes.
| std::optional<uint256> node::CoinbaseTx::witness |