mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
Merge branch 'master' of https://github.com/DeathRay1977/darkcoin
This commit is contained in:
commit
8d5eca5adc
@ -10,26 +10,25 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
/*BOOST_AUTO_TEST_SUITE(Checkpoints_tests)
|
||||
BOOST_AUTO_TEST_SUITE(Checkpoints_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(sanity)
|
||||
{
|
||||
uint256 p1500 = uint256("0x841a2965955dd288cfa707a755d05a54e45f8bd476835ec9af4402a2b59a2967");
|
||||
uint256 p120000 = uint256("0xbd9d26924f05f6daa7f0155f32828ec89e8e29cee9e7121b026a7a3552ac6131");
|
||||
uint256 p1500 = uint256("0x000000aaf0300f59f49bc3e970bad15c11f961fe2347accffff19d96ec9778e3");
|
||||
uint256 p88805 = uint256("0x00000000001392f1652e9bf45cd8bc79dc60fe935277cd11538565b4a94fa85f");
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(1500, p1500));
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(120000, p120000));
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(88805, p88805));
|
||||
|
||||
|
||||
|
||||
// Wrong hashes at checkpoints should fail:
|
||||
BOOST_CHECK(!Checkpoints::CheckBlock(1500, p120000));
|
||||
BOOST_CHECK(!Checkpoints::CheckBlock(120000, p1500));
|
||||
BOOST_CHECK(!Checkpoints::CheckBlock(1500, p88805));
|
||||
BOOST_CHECK(!Checkpoints::CheckBlock(88805, p1500));
|
||||
|
||||
// ... but any hash not at a checkpoint should succeed:
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(1500+1, p120000));
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(120000+1, p1500));
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(1500+1, p88805));
|
||||
BOOST_CHECK(Checkpoints::CheckBlock(88805+1, p1500));
|
||||
|
||||
BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate() >= 120000);
|
||||
}
|
||||
BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate() >= 88805);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
*/
|
Loading…
Reference in New Issue
Block a user