File tree Expand file tree Collapse file tree 2 files changed +8
-24
lines changed
Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Original file line number Diff line number Diff line change @@ -489,24 +489,11 @@ bool AppInit2(int argc, char* argv[])
489489 fAllowDNS = GetBoolArg (" -dns" );
490490 fNoListen = !GetBoolArg (" -listen" , true );
491491
492- // This code can be removed once a super-majority of the network has upgraded.
493- if (GetBoolArg (" -bip16" , true ))
494- {
495- if (fTestNet )
496- SoftSetArg (" -paytoscripthashtime" , " 1329264000" ); // Feb 15
497- else
498- SoftSetArg (" -paytoscripthashtime" , " 1333238400" ); // April 1 2012
499-
500- // Put "/P2SH/" in the coinbase so everybody can tell when
501- // a majority of miners support it
502- const char * pszP2SH = " /P2SH/" ;
503- COINBASE_FLAGS << std::vector<unsigned char >(pszP2SH, pszP2SH+strlen (pszP2SH));
504- }
505- else
506- {
507- const char * pszP2SH = " NOP2SH" ;
508- COINBASE_FLAGS << std::vector<unsigned char >(pszP2SH, pszP2SH+strlen (pszP2SH));
509- }
492+ // Continue to put "/P2SH/" in the coinbase to monitor
493+ // BIP16 support.
494+ // This can be removed eventually...
495+ const char * pszP2SH = " /P2SH/" ;
496+ COINBASE_FLAGS << std::vector<unsigned char >(pszP2SH, pszP2SH+strlen (pszP2SH));
510497
511498 if (!fNoListen )
512499 {
Original file line number Diff line number Diff line change @@ -1278,12 +1278,9 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex)
12781278 return false ;
12791279 }
12801280
1281- // To avoid being on the short end of a block-chain split,
1282- // don't do secondary validation of pay-to-script-hash transactions
1283- // until blocks with timestamps after paytoscripthashtime (see init.cpp for default).
1284- // This code can be removed once a super-majority of the network has upgraded.
1285- int64 nEvalSwitchTime = GetArg (" -paytoscripthashtime" , std::numeric_limits<int64_t >::max ());
1286- bool fStrictPayToScriptHash = (pindex->nTime >= nEvalSwitchTime);
1281+ // BIP16 didn't become active until Apr 1 2012 (Feb 15 on testnet)
1282+ int64 nBIP16SwitchTime = fTestNet ? 1329264000 : 1333238400 ;
1283+ bool fStrictPayToScriptHash = (pindex->nTime >= nBIP16SwitchTime);
12871284
12881285 // // issue here: it doesn't know the version
12891286 unsigned int nTxPos = pindex->nBlockPos + ::GetSerializeSize (CBlock (), SER_DISK) - 1 + GetSizeOfCompactSize (vtx.size ());
You can’t perform that action at this time.
0 commit comments