File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ class CMainParams : public CChainParams {
66
66
*/
67
67
const char * pszTimestamp = " The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" ;
68
68
CMutableTransaction txNew;
69
+ txNew.nVersion = 1 ;
69
70
txNew.vin .resize (1 );
70
71
txNew.vout .resize (1 );
71
72
txNew.vin [0 ].scriptSig = CScript () << 486604799 << CScriptNum (4 ) << vector<unsigned char >((const unsigned char *)pszTimestamp, (const unsigned char *)pszTimestamp + strlen (pszTimestamp));
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
74
74
pblock->nVersion = 1 ;
75
75
pblock->nTime = chainActive.Tip ()->GetMedianTimePast ()+1 ;
76
76
CMutableTransaction txCoinbase (pblock->vtx [0 ]);
77
+ txCoinbase.nVersion = 1 ;
77
78
txCoinbase.vin [0 ].scriptSig = CScript ();
78
79
txCoinbase.vin [0 ].scriptSig .push_back (blockinfo[i].extranonce );
79
80
txCoinbase.vin [0 ].scriptSig .push_back (chainActive.Height ());
You can’t perform that action at this time.
0 commit comments