| 291 | |
| 292 | template <typename Stream> |
| 293 | inline void Unserialize(Stream& s) { |
| 294 | if (g_con_elementsmode) { |
| 295 | s >> nAsset; |
| 296 | s >> nValue; |
| 297 | s >> nNonce; |
| 298 | if (nAsset.IsNull() || nValue.IsNull()) { |
| 299 | throw std::ios_base::failure("Confidential values may not be null"); |
| 300 | } |
| 301 | } else { |
| 302 | CAmount value; |
| 303 | s >> value; |
| 304 | nValue.SetToAmount(value); |
| 305 | } |
| 306 | s >> scriptPubKey; |
| 307 | } |
| 308 | |
| 309 | void SetNull() |
| 310 | { |
nothing calls this directly
no test coverage detected