mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge #10545: Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of
3fb81a8 Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of (practicalswift)
Tree-SHA512: 63a9ac9ec5799472943dce1cd92a4b14e7f1fe12758a5fc4b1efceaf2c85a4ba71dad5ccc50813527f18b192e7714c076e2478ecd6ca0d452b24e88416f872f7
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
class CPartialMerkleTreeTester : public CPartialMerkleTree
|
||||
@@ -109,14 +108,15 @@ BOOST_AUTO_TEST_CASE(pmt_test1)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(pmt_malleability)
|
||||
{
|
||||
std::vector<uint256> vTxid = boost::assign::list_of
|
||||
(ArithToUint256(1))(ArithToUint256(2))
|
||||
(ArithToUint256(3))(ArithToUint256(4))
|
||||
(ArithToUint256(5))(ArithToUint256(6))
|
||||
(ArithToUint256(7))(ArithToUint256(8))
|
||||
(ArithToUint256(9))(ArithToUint256(10))
|
||||
(ArithToUint256(9))(ArithToUint256(10));
|
||||
std::vector<bool> vMatch = boost::assign::list_of(false)(false)(false)(false)(false)(false)(false)(false)(false)(true)(true)(false);
|
||||
std::vector<uint256> vTxid = {
|
||||
ArithToUint256(1), ArithToUint256(2),
|
||||
ArithToUint256(3), ArithToUint256(4),
|
||||
ArithToUint256(5), ArithToUint256(6),
|
||||
ArithToUint256(7), ArithToUint256(8),
|
||||
ArithToUint256(9), ArithToUint256(10),
|
||||
ArithToUint256(9), ArithToUint256(10),
|
||||
};
|
||||
std::vector<bool> vMatch = {false, false, false, false, false, false, false, false, false, true, true, false};
|
||||
|
||||
CPartialMerkleTree tree(vTxid, vMatch);
|
||||
std::vector<unsigned int> vIndex;
|
||||
|
||||
Reference in New Issue
Block a user