File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ class CMainParams : public CChainParams {
6666 */
6767 const char * pszTimestamp = " The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" ;
6868 CMutableTransaction txNew;
69+ txNew.nVersion = 1 ;
6970 txNew.vin .resize (1 );
7071 txNew.vout .resize (1 );
7172 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)
7474 pblock->nVersion = 1 ;
7575 pblock->nTime = chainActive.Tip ()->GetMedianTimePast ()+1 ;
7676 CMutableTransaction txCoinbase (pblock->vtx [0 ]);
77+ txCoinbase.nVersion = 1 ;
7778 txCoinbase.vin [0 ].scriptSig = CScript ();
7879 txCoinbase.vin [0 ].scriptSig .push_back (blockinfo[i].extranonce );
7980 txCoinbase.vin [0 ].scriptSig .push_back (chainActive.Height ());
You can’t perform that action at this time.
0 commit comments