Bitcoin full node and query server

Mar 7, 2025

View in context in the libbitcoin Slack #general mirror.

evoskuil19:25
the hashmap head. the hash function for the point table is a std::hash combine of the tx.hash and the index. the hash of the tx.hash is the first 4 bytes.
evoskuil19:44
namespace std
{
template<>
struct hash<bc::system::chain::point>
{
    size_t operator()(const bc::system::chain::point& value) const NOEXCEPT
    {
        return bc::system::hash_combine(value.index(),
            bc::system::unique_hash(value.hash()));
    }
};

template<>
struct hash<bc::system::chain::point_cref>
{
    std::size_t operator()(
        const bc::system::chain::point_cref& value) const NOEXCEPT
    {
        return std::hash<bc::system::chain::point>{}(value.get());
    }
};