| 250 | } |
| 251 | |
| 252 | static void CmpSerializationPubkey(const CPubKey& pubkey) |
| 253 | { |
| 254 | CDataStream stream{SER_NETWORK, INIT_PROTO_VERSION}; |
| 255 | stream << pubkey; |
| 256 | CPubKey pubkey2; |
| 257 | stream >> pubkey2; |
| 258 | BOOST_CHECK(pubkey == pubkey2); |
| 259 | } |
| 260 | |
| 261 | BOOST_AUTO_TEST_CASE(pubkey_unserialize) |
| 262 | { |
no outgoing calls
no test coverage detected