Merge 12eda278ac into merged_master (Bitcoin PR bitcoin/bitcoin#23288)

Added implementation of << for CAmountMap to fix compilation error
This commit is contained in:
Byron Hambly 2023-05-15 09:34:18 +00:00
commit 45c6a83737
12 changed files with 307 additions and 265 deletions

View file

@ -155,3 +155,11 @@ CAmount valueFor(const CAmountMap& mapValue, const CAsset& asset) {
return CAmount(0);
}
}
std::ostream& operator<<(std::ostream& out, const CAmountMap& map)
{
for(std::map<CAsset, CAmount>::const_iterator it = map.begin(); it != map.end(); ++it) {
out << it->first.GetHex() << ": " << it->second << ", ";
}
return out;
}