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

Method Unserialize

src/wallet/scriptpubkeyman.h:129–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128 template<typename Stream>
129 void Unserialize(Stream& s)
130 {
131 int nVersion = s.GetVersion();
132 if (!(s.GetType() & SER_GETHASH)) {
133 s >> nVersion;
134 }
135 s >> nTime >> vchPubKey;
136 try {
137 s >> fInternal;
138 } catch (std::ios_base::failure&) {
139 /* flag as external address if we can't read the internal boolean
140 (this will be the case for any wallet before the HD chain split version) */
141 fInternal = false;
142 }
143 try {
144 s >> m_pre_split;
145 } catch (std::ios_base::failure&) {
146 /* flag as postsplit address if we can't read the m_pre_split boolean
147 (this will be the case for any wallet that upgrades to HD chain split) */
148 m_pre_split = false;
149 }
150 }
151};
152
153struct WalletDestination

Callers

nothing calls this directly

Calls 2

GetVersionMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected