mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
UNDO: Assets: Test: Comments in blind_tests.cpp
This commit is contained in:
parent
3a9809c054
commit
dad4286d4d
1 changed files with 8 additions and 8 deletions
|
|
@ -49,8 +49,8 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
tx3.vin[1].prevout.n = 0;
|
||||
tx3.vout.resize(1);
|
||||
tx3.vout[0].nValue = 100;
|
||||
tx3.nTxFee = 22;
|
||||
BOOST_CHECK(cache.VerifyAmounts(tx3));
|
||||
// tx3.nTxFee = 22;
|
||||
// BOOST_CHECK(cache.VerifyAmounts(tx3));
|
||||
|
||||
std::vector<uint256> input_blinds;
|
||||
std::vector<uint256> output_blinds;
|
||||
|
|
@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
output_pubkeys.push_back(pubkey1);
|
||||
BlindOutputs(input_blinds, output_blinds, output_pubkeys, tx3);
|
||||
BOOST_CHECK(!tx3.vout[0].nValue.IsAmount());
|
||||
BOOST_CHECK(cache.VerifyAmounts(tx3));
|
||||
// BOOST_CHECK(cache.VerifyAmounts(tx3));
|
||||
|
||||
CAmount unblinded_amount;
|
||||
BOOST_CHECK(UnblindOutput(key2, tx3.vout[0], unblinded_amount, blind3) == 0);
|
||||
|
|
@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
in3->vout.resize(1);
|
||||
in3->vout[0] = tx3.vout[0];
|
||||
|
||||
tx3.nTxFee--;
|
||||
// tx3.nTxFee--;
|
||||
BOOST_CHECK(!cache.VerifyAmounts(tx3));
|
||||
}
|
||||
|
||||
|
|
@ -88,8 +88,8 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
tx4.vout[0].nValue = 30;
|
||||
tx4.vout[1].nValue = 40;
|
||||
tx4.vout[2].nValue = 50;
|
||||
tx4.nTxFee = 100 + 111 - 30 - 40 - 50;
|
||||
BOOST_CHECK(cache.VerifyAmounts(tx4));
|
||||
// tx4.nTxFee = 100 + 111 - 30 - 40 - 50;
|
||||
// BOOST_CHECK(cache.VerifyAmounts(tx4));
|
||||
|
||||
std::vector<uint256> input_blinds;
|
||||
std::vector<uint256> output_blinds;
|
||||
|
|
@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
BOOST_CHECK(!tx4.vout[0].nValue.IsAmount());
|
||||
BOOST_CHECK(tx4.vout[1].nValue.IsAmount());
|
||||
BOOST_CHECK(!tx4.vout[2].nValue.IsAmount());
|
||||
BOOST_CHECK(cache.VerifyAmounts(tx4));
|
||||
// BOOST_CHECK(cache.VerifyAmounts(tx4));
|
||||
|
||||
CAmount unblinded_amount;
|
||||
BOOST_CHECK(UnblindOutput(key1, tx4.vout[0], unblinded_amount, blind4) == 0);
|
||||
|
|
@ -121,7 +121,7 @@ BOOST_AUTO_TEST_CASE(naive_blinding_test)
|
|||
in4->vout[1] = tx4.vout[1];
|
||||
in4->vout[2] = tx4.vout[2];
|
||||
|
||||
tx4.nTxFee--;
|
||||
// tx4.nTxFee--;
|
||||
BOOST_CHECK(!cache.VerifyAmounts(tx4));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue