/dports/net-p2p/bitcoin/bitcoin-22.0/src/test/fuzz/ |
H A D | script_flags.cpp | 42 CTxOut prevout; in FUZZ_TARGET_INIT() local 43 ds >> prevout; in FUZZ_TARGET_INIT() 44 if (!MoneyRange(prevout.nValue)) { in FUZZ_TARGET_INIT() 46 prevout.nValue = 1; in FUZZ_TARGET_INIT() 48 spent_outputs.push_back(prevout); in FUZZ_TARGET_INIT() 54 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in FUZZ_TARGET_INIT() local 55 …const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata, MissingDataBehavior::ASS… in FUZZ_TARGET_INIT() 58 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in FUZZ_TARGET_INIT() 70 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in FUZZ_TARGET_INIT()
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/src/test/fuzz/ |
H A D | script_flags.cpp | 42 CTxOut prevout; in FUZZ_TARGET_INIT() local 43 ds >> prevout; in FUZZ_TARGET_INIT() 44 if (!MoneyRange(prevout.nValue)) { in FUZZ_TARGET_INIT() 46 prevout.nValue = 1; in FUZZ_TARGET_INIT() 48 spent_outputs.push_back(prevout); in FUZZ_TARGET_INIT() 54 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in FUZZ_TARGET_INIT() local 55 …const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata, MissingDataBehavior::ASS… in FUZZ_TARGET_INIT() 58 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in FUZZ_TARGET_INIT() 70 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in FUZZ_TARGET_INIT()
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/src/test/fuzz/ |
H A D | script_flags.cpp | 42 CTxOut prevout; in FUZZ_TARGET_INIT() local 43 ds >> prevout; in FUZZ_TARGET_INIT() 44 if (!MoneyRange(prevout.nValue)) { in FUZZ_TARGET_INIT() 46 prevout.nValue = 1; in FUZZ_TARGET_INIT() 48 spent_outputs.push_back(prevout); in FUZZ_TARGET_INIT() 54 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in FUZZ_TARGET_INIT() local 55 …const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata, MissingDataBehavior::ASS… in FUZZ_TARGET_INIT() 58 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in FUZZ_TARGET_INIT() 70 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in FUZZ_TARGET_INIT()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/ |
H A D | pos.cpp | 91 ss << blockFromTime << prevout.hash << prevout.n << nTimeBlock; in CheckStakeKernelHash() 98 blockFromTime, prevout.n, nTimeBlock, in CheckStakeKernelHash() 124 if(!view.GetCoin(prevout, coinPrev)){ in GetStakeCoin() 146 if(prev->prevoutStake == prevout) { in GetStakeCoin() 181 if(txin.prevout == headerPrevout) in CheckProofOfStake() 410 auto it=cache.find(prevout); in CheckKernel() 414 if(!view.GetCoin(prevout, coinPrev)){ in CheckKernel() 450 auto it=cache.find(prevout); in CheckKernelCache() 460 if(cache.find(prevout) != cache.end()){ in CacheKernel() 466 if(!view.GetCoin(prevout, coinPrev)){ in CacheKernel() [all …]
|
/dports/net-p2p/litecoin-daemon/litecoin-0.18.1/src/test/ |
H A D | miner_tests.cpp | 113 tx.vin[0].prevout.n = 0; in TestPackageSelection() 197 tx.vin[0].prevout.n = 1; in TestPackageSelection() 271 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 281 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 333 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 337 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 346 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 398 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 405 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 434 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/litecoin-utils/litecoin-0.18.1/src/test/ |
H A D | miner_tests.cpp | 113 tx.vin[0].prevout.n = 0; in TestPackageSelection() 197 tx.vin[0].prevout.n = 1; in TestPackageSelection() 271 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 281 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 333 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 337 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 346 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 398 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 405 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 434 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/zetacoin-utils/zetacoin-0.13.2.1/src/test/ |
H A D | miner_tests.cpp | 89 tx.vin[0].prevout.n = 0; in TestPackageSelection() 174 tx.vin[0].prevout.n = 1; in TestPackageSelection() 246 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 256 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 309 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 313 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 323 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 334 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 341 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 410 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/test/ |
H A D | miner_tests.cpp | 106 tx.vin[0].prevout.n = 0; in TestPackageSelection() 190 tx.vin[0].prevout.n = 1; in TestPackageSelection() 265 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 275 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 327 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 331 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 340 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 392 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 399 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 428 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/zetacoin-daemon/zetacoin-0.13.2.1/src/test/ |
H A D | miner_tests.cpp | 89 tx.vin[0].prevout.n = 0; in TestPackageSelection() 174 tx.vin[0].prevout.n = 1; in TestPackageSelection() 246 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 256 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 309 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 313 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 323 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 334 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 341 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 410 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/test/ |
H A D | miner_tests.cpp | 106 tx.vin[0].prevout.n = 0; in TestPackageSelection() 190 tx.vin[0].prevout.n = 1; in TestPackageSelection() 265 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 275 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 327 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 331 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 340 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 392 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 399 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 428 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/zetacoin/zetacoin-0.13.2.1/src/test/ |
H A D | miner_tests.cpp | 89 tx.vin[0].prevout.n = 0; in TestPackageSelection() 174 tx.vin[0].prevout.n = 1; in TestPackageSelection() 246 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 256 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 309 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 313 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 323 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 334 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 341 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 410 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/test/ |
H A D | miner_tests.cpp | 106 tx.vin[0].prevout.n = 0; in TestPackageSelection() 190 tx.vin[0].prevout.n = 1; in TestPackageSelection() 265 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 275 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 327 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 331 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 340 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 392 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 399 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 428 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/litecoin/litecoin-0.18.1/src/test/ |
H A D | miner_tests.cpp | 113 tx.vin[0].prevout.n = 0; in TestPackageSelection() 197 tx.vin[0].prevout.n = 1; in TestPackageSelection() 271 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 281 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 333 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 337 tx.vin[1].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 346 tx.vin[0].prevout.SetNull(); in BOOST_AUTO_TEST_CASE() 398 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() 405 tx.vin[0].prevout.hash = hash; in BOOST_AUTO_TEST_CASE() 434 tx.vin[0].prevout.n = 0; in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_flags.cpp | 45 CTxOut prevout; in test_one_input() local 46 ds >> prevout; in test_one_input() 47 spent_outputs.push_back(prevout); in test_one_input() 53 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in test_one_input() local 54 const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata}; in test_one_input() 57 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in test_one_input() 69 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in test_one_input()
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_flags.cpp | 45 CTxOut prevout; in test_one_input() local 46 ds >> prevout; in test_one_input() 47 spent_outputs.push_back(prevout); in test_one_input() 53 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in test_one_input() local 54 const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata}; in test_one_input() 57 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in test_one_input() 69 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in test_one_input()
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_flags.cpp | 45 CTxOut prevout; in test_one_input() local 46 ds >> prevout; in test_one_input() 47 spent_outputs.push_back(prevout); in test_one_input() 53 const CTxOut& prevout = txdata.m_spent_outputs.at(i); in test_one_input() local 54 const TransactionSignatureChecker checker{&tx, i, prevout.nValue, txdata}; in test_one_input() 57 …const bool ret = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).scriptWi… in test_one_input() 69 …const bool ret_fuzzed = VerifyScript(tx.vin.at(i).scriptSig, prevout.scriptPubKey, &tx.vin.at(i).s… in test_one_input()
|
/dports/net-p2p/litecoin-daemon/litecoin-0.18.1/src/consensus/ |
H A D | tx_verify.cpp | 129 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetP2SHSigOpCount() 131 const CTxOut &prevout = coin.out; in GetP2SHSigOpCount() local 132 if (prevout.scriptPubKey.IsPayToScriptHash()) in GetP2SHSigOpCount() 133 nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig); in GetP2SHSigOpCount() 151 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetTransactionSigOpCost() 153 const CTxOut &prevout = coin.out; in GetTransactionSigOpCost() local 154 …nSigOps += CountWitnessSigOps(tx.vin[i].scriptSig, prevout.scriptPubKey, &tx.vin[i].scriptWitness,… in GetTransactionSigOpCost() 188 if (!vInOutPoints.insert(txin.prevout).second) in CheckTransaction() 201 if (txin.prevout.IsNull()) in CheckTransaction() 218 const COutPoint &prevout = tx.vin[i].prevout; in CheckTxInputs() local [all …]
|
/dports/net-p2p/litecoin-utils/litecoin-0.18.1/src/consensus/ |
H A D | tx_verify.cpp | 129 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetP2SHSigOpCount() 131 const CTxOut &prevout = coin.out; in GetP2SHSigOpCount() local 132 if (prevout.scriptPubKey.IsPayToScriptHash()) in GetP2SHSigOpCount() 133 nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig); in GetP2SHSigOpCount() 151 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetTransactionSigOpCost() 153 const CTxOut &prevout = coin.out; in GetTransactionSigOpCost() local 154 …nSigOps += CountWitnessSigOps(tx.vin[i].scriptSig, prevout.scriptPubKey, &tx.vin[i].scriptWitness,… in GetTransactionSigOpCost() 188 if (!vInOutPoints.insert(txin.prevout).second) in CheckTransaction() 201 if (txin.prevout.IsNull()) in CheckTransaction() 218 const COutPoint &prevout = tx.vin[i].prevout; in CheckTxInputs() local [all …]
|
/dports/net-p2p/litecoin/litecoin-0.18.1/src/consensus/ |
H A D | tx_verify.cpp | 129 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetP2SHSigOpCount() 131 const CTxOut &prevout = coin.out; in GetP2SHSigOpCount() local 132 if (prevout.scriptPubKey.IsPayToScriptHash()) in GetP2SHSigOpCount() 133 nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig); in GetP2SHSigOpCount() 151 const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); in GetTransactionSigOpCost() 153 const CTxOut &prevout = coin.out; in GetTransactionSigOpCost() local 154 …nSigOps += CountWitnessSigOps(tx.vin[i].scriptSig, prevout.scriptPubKey, &tx.vin[i].scriptWitness,… in GetTransactionSigOpCost() 188 if (!vInOutPoints.insert(txin.prevout).second) in CheckTransaction() 201 if (txin.prevout.IsNull()) in CheckTransaction() 218 const COutPoint &prevout = tx.vin[i].prevout; in CheckTxInputs() local [all …]
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/src/bench/ |
H A D | ccoins_caching.cpp | 32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 33 t1.vin[0].prevout.n = 1; in CCoinsCaching() 35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[1].prevout.n = 0; in CCoinsCaching() 38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 39 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|
/dports/net-p2p/bitcoin/bitcoin-22.0/src/bench/ |
H A D | ccoins_caching.cpp | 32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 33 t1.vin[0].prevout.n = 1; in CCoinsCaching() 35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[1].prevout.n = 0; in CCoinsCaching() 38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 39 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/src/bench/ |
H A D | ccoins_caching.cpp | 32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 33 t1.vin[0].prevout.n = 1; in CCoinsCaching() 35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[1].prevout.n = 0; in CCoinsCaching() 38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 39 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/bench/ |
H A D | ccoins_caching.cpp | 32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 33 t1.vin[0].prevout.n = 1; in CCoinsCaching() 35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[1].prevout.n = 0; in CCoinsCaching() 38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 39 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/bench/ |
H A D | ccoins_caching.cpp | 29 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 30 t1.vin[0].prevout.n = 1; in CCoinsCaching() 32 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 33 t1.vin[1].prevout.n = 0; in CCoinsCaching() 35 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/bench/ |
H A D | ccoins_caching.cpp | 32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); in CCoinsCaching() 33 t1.vin[0].prevout.n = 1; in CCoinsCaching() 35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 36 t1.vin[1].prevout.n = 0; in CCoinsCaching() 38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); in CCoinsCaching() 39 t1.vin[2].prevout.n = 1; in CCoinsCaching()
|