v29.4-roots.3 · Commit 3: [PATCH 03/30] policy: restore conservative relay and network controls
src/test/txvalidationcache_tests.cpp
Before: src/test/txvalidationcache_tests.cpp · After: src/test/txvalidationcache_tests.cpp
File metadata
index af36a9569315bd3ab0e2f362b47477941bb703e1..d22b815fcd68a36aa8d0b547002b24c767e206e5 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/txvalidationcache_tests.cpp
CHANGED
|
@@ -54,7 +54,7 @@ BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, Dersig100Setup)
|
|
| 54 |
spends[i].vin[0].prevout.n = 0;
|
| 55 |
spends[i].vout.resize(1);
|
| 56 |
spends[i].vout[0].nValue = 11*CENT;
|
| 57 |
-
spends[i].vout[0].scriptPubKey = scriptPubKey;
|
| 58 |
|
| 59 |
// Sign:
|
| 60 |
std::vector<unsigned char> vchSig;
|
|
|
|
| 54 |
spends[i].vin[0].prevout.n = 0;
|
| 55 |
spends[i].vout.resize(1);
|
| 56 |
spends[i].vout[0].nValue = 11*CENT;
|
| 57 |
+
spends[i].vout[0].scriptPubKey = GetScriptForDestination(PKHash(coinbaseKey.GetPubKey()));
|
| 58 |
|
| 59 |
// Sign:
|
| 60 |
std::vector<unsigned char> vchSig;
|