Fix CI: update test for UTXO model, remove bootstrap from installer
- Update script_P2SH_tests.cpp to use new MapPrevTx (COutPoint->CUtxoEntry) - Remove obsolete bootstrap download from NSIS installer (requires inetc plugin; nodes now sync fast from network) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -236,7 +236,7 @@ BOOST_AUTO_TEST_CASE(switchover)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(AreInputsStandard)
|
||||
{
|
||||
std::map<uint256, std::pair<CTxIndex, CTransaction> > mapInputs;
|
||||
MapPrevTx mapInputs;
|
||||
CBasicKeyStore keystore;
|
||||
CKey key[3];
|
||||
vector<CKey> keys;
|
||||
@@ -273,7 +273,19 @@ BOOST_AUTO_TEST_CASE(AreInputsStandard)
|
||||
oneOfEleven << OP_11 << OP_CHECKMULTISIG;
|
||||
txFrom.vout[5].scriptPubKey.SetDestination(oneOfEleven.GetID());
|
||||
|
||||
mapInputs[txFrom.GetHash()] = make_pair(CTxIndex(), txFrom);
|
||||
// Populate UTXO entries for each output of txFrom
|
||||
uint256 hashFrom = txFrom.GetHash();
|
||||
for (unsigned int i = 0; i < txFrom.vout.size(); i++)
|
||||
{
|
||||
CUtxoEntry entry;
|
||||
entry.nValue = txFrom.vout[i].nValue;
|
||||
entry.nHeight = 1;
|
||||
entry.scriptPubKey = txFrom.vout[i].scriptPubKey;
|
||||
entry.fCoinBase = false;
|
||||
entry.fCoinStake = false;
|
||||
entry.nTxTime = 0;
|
||||
mapInputs[COutPoint(hashFrom, i)] = entry;
|
||||
}
|
||||
|
||||
CTransaction txTo;
|
||||
txTo.vout.resize(1);
|
||||
|
||||
Reference in New Issue
Block a user