MCPcopy Create free account
hub / github.com/ElementsProject/elements / Unserialize

Method Unserialize

src/primitives/transaction.h:293–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

SetToAmountMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected