Skip to content

Commit

Permalink
build fix(10)
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed Aug 8, 2024
1 parent 2e0c4c5 commit eb2b555
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
4 changes: 3 additions & 1 deletion explorer/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ class Adapter : public Node::IObserver, public IAdapter {
}

Blob blob(&ret, sizeof(ret));
_node.get_Processor().get_DB().ParamSet(NodeDB::ParamID::TreasuryTotals, &s_TotalsVer, &blob);

auto ver = s_TotalsVer; // copy value, don't use static const in the following expression (this will lead to link error on gcc)
_node.get_Processor().get_DB().ParamSet(NodeDB::ParamID::TreasuryTotals, &ver, &blob);
}

void OnTotalsTxo(Totals::CountAndSize& dst, NodeDB::WalkerTxo& wlk)
Expand Down
28 changes: 14 additions & 14 deletions wallet/core/wallet_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,20 +295,20 @@ namespace fs = std::filesystem;

#define IM_FIELDS ENUM_IM_FIELDS(LIST, COMMA, )

namespace std
{
template<>
struct hash<pair<beam::Amount, beam::Amount>>
{
typedef pair<beam::Amount, beam::Amount> argument_type;
typedef std::size_t result_type;

result_type operator()(const argument_type& a) const noexcept
{
return boost::hash<argument_type>()(a);
}
};
}
//namespace std
//{
// template<>
// struct hash<pair<beam::Amount, beam::Amount>>
// {
// typedef pair<beam::Amount, beam::Amount> argument_type;
// typedef std::size_t result_type;
//
// result_type operator()(const argument_type& a) const noexcept
// {
// return boost::hash<argument_type>()(a);
// }
// };
//}

namespace beam::wallet
{
Expand Down

0 comments on commit eb2b555

Please sign in to comment.