| 148 | } |
| 149 | |
| 150 | CAmount valueFor(const CAmountMap& mapValue, const CAsset& asset) { |
| 151 | CAmountMap::const_iterator it = mapValue.find(asset); |
| 152 | if (it != mapValue.end()) { |
| 153 | return it->second; |
| 154 | } else { |
| 155 | return CAmount(0); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | std::ostream& operator<<(std::ostream& out, const CAmountMap& map) |
| 160 | { |