Archive of the libbitcoin Slack #general channel.
in the block version field
The ability selectively support specific soft forks gives Libbitcoin the greater flexibility to support various chains.
Bitcoin soft fork rule support The rule_fork argument tells the script interpreter which Bitcoin soft fork rules
Bitcoin soft fork rule support are signalled with a 32-bit sequence in the block version field, with each of the first 29 bits each representing support for a given BIP.
auto opportunities, e.g.:
script multisig_script = script::to_pay_multisig_pattern(signatures, points);
short_hash multisig_script_hash = bitcoin_short_hash(multisig_script.to_data(false));
script p2sh_multisig_script = script::to_pay_script_hash_pattern(multisig_script_hash);
auto multisig_script = script::to_pay_multisig_pattern(signatures, points);
auto multisig_script_hash = bitcoin_short_hash(multisig_script.to_data(false));
auto p2sh_multisig_script = script::to_pay_script_hash_pattern(multisig_script_hash);script::verify(p2sh_transaction, 0, vs. script::verify(p2sh_transaction, 0u, in cases where the default constant will not produce an ambiguity.uint32_t my_fork_rules = rule_fork::all_rules ^ rule_fork::bip16_rule;
since not all Bitcoin rules are true by default. Testnet is a positive rule in v3 (changed in v4 for this reason).// Prints success (Bitcoin:0) std::cout << ec << std::endl;
0. But you should also use ec.message().