use const references where appropriate
This commit is contained in:
committed by
Jack Grigg
parent
5e478618e6
commit
db954a65ac
@@ -740,7 +740,7 @@ bool CheckFinalTx(const CTransaction &tx, int flags)
|
||||
/**
|
||||
* Check transaction inputs to mitigate two
|
||||
* potential denial-of-service attacks:
|
||||
*
|
||||
*
|
||||
* 1. scriptSigs with extra data stuffed into them,
|
||||
* not consumed by scriptPubKey (or P2SH script)
|
||||
* 2. P2SH scripts with a crazy number of expensive
|
||||
@@ -2457,7 +2457,7 @@ static int64_t nTimeFlush = 0;
|
||||
static int64_t nTimeChainState = 0;
|
||||
static int64_t nTimePostConnect = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Connect a new block to chainActive. pblock is either NULL or a pointer to a CBlock
|
||||
* corresponding to pindexNew, to bypass loading it again from disk.
|
||||
*/
|
||||
@@ -4072,7 +4072,7 @@ void static CheckBlockIndex()
|
||||
// CAlert
|
||||
//
|
||||
|
||||
string GetWarnings(string strFor)
|
||||
std::string GetWarnings(const std::string& strFor)
|
||||
{
|
||||
int nPriority = 0;
|
||||
string strStatusBar;
|
||||
|
||||
Reference in New Issue
Block a user