~ubuntu-branches/debian/stretch/bitcoin/stretch

« back to all changes in this revision

Viewing changes to src/test/bip32_tests.cpp

  • Committer: Package Import Robot
  • Author(s): Anthony Towns
  • Date: 2016-10-21 17:13:13 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20161021171313-7eu2ltpbk0xag3q1
Tags: 0.13.0-0.1
* Non-maintainer upload.
* New upstream release.
* Allow compilation with gcc/g++ 6. (Closes: Bug#835963)
* Additional fixes for openssl 1.1 compatibility. (See Bug#828248)
* Check if -latomic is needed (it is on mips*).
* Remove reproducible build patch, since leveldb build system is
  no longer used in 0.13. (See Bug#791834)
* Update description since the blockchain is much more than "several GB"
  now. (Closes: Bug#835809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        }
118
118
        key = keyNew;
119
119
        pubkey = pubkeyNew;
 
120
 
 
121
        CDataStream ssPub(SER_DISK, CLIENT_VERSION);
 
122
        ssPub << pubkeyNew;
 
123
        BOOST_CHECK(ssPub.size() == 75);
 
124
 
 
125
        CDataStream ssPriv(SER_DISK, CLIENT_VERSION);
 
126
        ssPriv << keyNew;
 
127
        BOOST_CHECK(ssPriv.size() == 75);
 
128
 
 
129
        CExtPubKey pubCheck;
 
130
        CExtKey privCheck;
 
131
        ssPub >> pubCheck;
 
132
        ssPriv >> privCheck;
 
133
 
 
134
        BOOST_CHECK(pubCheck == pubkeyNew);
 
135
        BOOST_CHECK(privCheck == keyNew);
120
136
    }
121
137
}
122
138