Changeset View
Changeset View
Standalone View
Standalone View
src/test/coins_tests.cpp
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "coins.h" | #include <coins.h> | ||||
#include "consensus/validation.h" | |||||
#include "script/standard.h" | |||||
#include "test/test_bitcoin.h" | |||||
#include "uint256.h" | |||||
#include "undo.h" | |||||
#include "utilstrencodings.h" | |||||
#include "validation.h" | |||||
#include <map> | #include <consensus/validation.h> | ||||
#include <vector> | #include <script/standard.h> | ||||
#include <uint256.h> | |||||
#include <undo.h> | |||||
#include <utilstrencodings.h> | |||||
#include <validation.h> | |||||
#include <test/test_bitcoin.h> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <map> | |||||
#include <vector> | |||||
namespace { | namespace { | ||||
//! equality test | //! equality test | ||||
bool operator==(const Coin &a, const Coin &b) { | bool operator==(const Coin &a, const Coin &b) { | ||||
// Empty Coin objects are always equal. | // Empty Coin objects are always equal. | ||||
if (a.IsSpent() && b.IsSpent()) { | if (a.IsSpent() && b.IsSpent()) { | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 870 Lines • Show Last 20 Lines |