| 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 | |
| 153 | struct WalletDestination |
nothing calls this directly
no test coverage detected