Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_antireplay_tests.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(test_antireplay) { | ||||
const int nUAHFHeight = config.GetChainParams().GetConsensus().uahfHeight; | const int nUAHFHeight = config.GetChainParams().GetConsensus().uahfHeight; | ||||
const int nSunsetHeight = params.antiReplayOpReturnSunsetHeight; | const int nSunsetHeight = params.antiReplayOpReturnSunsetHeight; | ||||
const int64_t nUAHFStartTime = 123456; | const int64_t nUAHFStartTime = 123456; | ||||
CMutableTransaction tx; | CMutableTransaction tx; | ||||
tx.nVersion = 1; | tx.nVersion = 1; | ||||
tx.vin.resize(1); | tx.vin.resize(1); | ||||
tx.vin[0].prevout.hash = GetRandHash(); | tx.vin[0].prevout.unspentid = unspentid_t(GetRandHash()); | ||||
tx.vin[0].prevout.n = 0; | tx.vin[0].prevout.n = 0; | ||||
tx.vin[0].scriptSig = CScript(); | tx.vin[0].scriptSig = CScript(); | ||||
tx.vout.resize(1); | tx.vout.resize(1); | ||||
tx.vout[0].nValue = 1; | tx.vout[0].nValue = 1; | ||||
tx.vout[0].scriptPubKey = CScript(); | tx.vout[0].scriptPubKey = CScript(); | ||||
{ | { | ||||
// Base transaction is valid. | // Base transaction is valid. | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |