Bitcoin full node and query server

Nov 16, 2018

View in context in the libbitcoin Slack #general mirror.

M
Mlmikael14:48
What's the idea of declaring main/testnet_p2kh/p2sh consts in payment_address.hpp but then writing the actual const values in payment_adress.cpp? .hpp: static const uint8_t mainnet_p2kh; static const uint8_t mainnet_p2sh; static const uint8_t testnet_p2kh; static const uint8_t testnet_p2sh; .cpp: const uint8_t payment_address::mainnet_p2kh = 0x00; const uint8_t payment_address::mainnet_p2sh = 0x05; const uint8_t payment_address::testnet_p2kh = 0x6f; const uint8_t payment_address::testnet_p2sh = 0xc4; is there an inheritance point here that if someone would make a "litecoin_address" or something, then the child could override in this code model?