/dports/net-p2p/bitcoin-utils/bitcoin-22.0/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; in main() 75 prevouts.push_back(std::move(txout)); in main() 77 return prevouts; in main() 151 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in main() 152 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); in main() 162 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in main() 163 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… in main() 168 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … in main() 177 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in main() 178 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… in main() [all …]
|
/dports/net-p2p/bitcoin/bitcoin-22.0/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 75 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 77 return prevouts; in TxOutsFromJSON() 151 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in Test() local 152 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); in Test() 162 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 163 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… in Test() 168 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … in Test() 177 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 178 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… in Test() [all …]
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; 75 prevouts.push_back(std::move(txout)); 77 return prevouts; 151 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); 152 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); 162 txdata.Init(tx, std::vector<CTxOut>(prevouts)); 163 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… 168 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … 177 txdata.Init(tx, std::vector<CTxOut>(prevouts)); 178 …MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata, MissingDataBeha… [all …]
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 75 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 77 return prevouts; in TxOutsFromJSON() 152 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in Test() local 153 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); in Test() 163 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 164 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() 169 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … in Test() 178 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 179 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() [all …]
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 75 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 77 return prevouts; in TxOutsFromJSON() 152 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in Test() local 153 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); in Test() 163 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 164 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() 169 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … in Test() 178 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 179 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() [all …]
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | script_assets_test_minimizer.cpp | 67 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 75 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 77 return prevouts; in TxOutsFromJSON() 152 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in Test() local 153 if (prevouts.size() != tx.vin.size()) throw std::runtime_error("Incorrect number of prevouts"); in Test() 163 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 164 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() 169 …(void)VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitness, … in Test() 178 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in Test() 179 MutableTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, txdata); in Test() [all …]
|
/dports/finance/py-python-bitcoinlib/python-bitcoinlib-0.11.0/bitcoin/tests/ |
H A D | test_transactions.py | 31 prevouts = {} 38 prevouts[prevout] = parse_script(json_prevout[2]) 43 yield (prevouts, tx, enforceP2SH) 124 for prevouts, tx, enforceP2SH in load_test_vectors('tx_valid.json'): 129 + str((prevouts, b2x(tx.serialize()), enforceP2SH))) 137 VerifyScript(tx.vin[i].scriptSig, prevouts[tx.vin[i].prevout], tx, i, flags=flags) 141 for prevouts, tx, enforceP2SH in load_test_vectors('tx_invalid.json'): 153 … VerifyScript(tx.vin[i].scriptSig, prevouts[tx.vin[i].prevout], tx, i, flags=flags)
|
/dports/finance/py-pycoin/pycoin-0.91.20210515/tests/btc/ |
H A D | bc_transaction_test.py | 44 prevouts = tvec[0] 45 for prevout in prevouts: 59 for prevout in prevouts:
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/test/functional/ |
H A D | qtum_block_index_cleanup.py | 73 prevouts = collect_prevouts(self.node, min_confirmations=2*COINBASE_MATURITY+100) 86 …block = self.create_pos_block(prevouts, block, modifier, tip['height']+1+i, start_time_addition=st… 88 self._remove_from_staking_prevouts(block, prevouts)
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/ |
H A D | miner.cpp | 1318 std::vector<COutPoint> prevouts; member in StakeMinerPriv 1377 prevouts.clear(); in clearCache() 1622 … d->prevouts.insert(d->prevouts.end(), d->setDelegateCoins.begin(), d->setDelegateCoins.end()); in UpdateData() 1625 d->prevouts.push_back(COutPoint(pcoin.first->GetHash(), pcoin.second)); in UpdateData() 1628 d->pwallet->UpdateMinerStakeCache(true, d->prevouts, d->pindexPrev); in UpdateData() 1668 const COutPoint &prevoutStake = d->prevouts[i]; in SloveBlock() 1688 size_t listSize = d->prevouts.size(); in SloveBlock()
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/src/test/ |
H A D | script_tests.cpp | 1482 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1486 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1488 return prevouts; in TxOutsFromJSON() 1677 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1678 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1688 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1689 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1694 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1705 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1706 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/net-p2p/bitcoin/bitcoin-22.0/src/test/ |
H A D | script_tests.cpp | 1482 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1486 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1488 return prevouts; in TxOutsFromJSON() 1677 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1678 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1688 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1689 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1694 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1705 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1706 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/src/test/ |
H A D | script_tests.cpp | 1482 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1486 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1488 return prevouts; in TxOutsFromJSON() 1677 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1678 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1688 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1689 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1694 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1705 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1706 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/test/ |
H A D | script_tests.cpp | 1483 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1487 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1489 return prevouts; in TxOutsFromJSON() 1678 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1679 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1689 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1690 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1695 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1706 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1707 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/test/ |
H A D | script_tests.cpp | 1483 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1487 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1489 return prevouts; in TxOutsFromJSON() 1678 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1679 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1689 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1690 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1695 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1706 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1707 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/test/ |
H A D | script_tests.cpp | 1483 std::vector<CTxOut> prevouts; in TxOutsFromJSON() local 1487 prevouts.push_back(std::move(txout)); in TxOutsFromJSON() 1489 return prevouts; in TxOutsFromJSON() 1678 const std::vector<CTxOut> prevouts = TxOutsFromJSON(test["prevouts"]); in AssetTest() local 1679 BOOST_CHECK(prevouts.size() == mtx.vin.size()); in AssetTest() 1689 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1690 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() 1695 …bool ret = VerifyScript(tx.vin[idx].scriptSig, prevouts[idx].scriptPubKey, &tx.vin[idx].scriptWitn… in AssetTest() 1706 txdata.Init(tx, std::vector<CTxOut>(prevouts)); in AssetTest() 1707 CachingTransactionSignatureChecker txcheck(&tx, idx, prevouts[idx].nValue, true, txdata); in AssetTest() [all …]
|
/dports/finance/electrum/Electrum-4.1.5/electrum/ |
H A D | transaction.py | 1786 prevouts = set() 1789 if prevout_str in prevouts: 1792 prevouts.add(prevout_str)
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/test/functional/test_framework/ |
H A D | messages.py | 624 def solve_stake(self, stakeModifier, prevouts): argument 626 for prevout, nValue, txBlockTime in prevouts:
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/wallet/ |
H A D | wallet.h | 1078 …void UpdateMinerStakeCache(bool fStakeCache, const std::vector<COutPoint>& prevouts, CBlockIndex* …
|
H A D | wallet.cpp | 5966 void CWallet::UpdateMinerStakeCache(bool fStakeCache, const std::vector<COutPoint> &prevouts, CBloc… in UpdateMinerStakeCache() argument 5968 if(minerStakeCache.size() > prevouts.size() + 100){ in UpdateMinerStakeCache() 5974 for(const COutPoint &prevoutStake : prevouts) in UpdateMinerStakeCache()
|