Skip to content

Commit 5082b50

Browse files
committed
Merge pull request #3258
fabba0e orphan spaces cleanup ;-) (Philip Kaufmann)
2 parents 4fc2412 + fabba0e commit 5082b50

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/net.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ void CNode::copyStats(CNodeStats &stats)
626626
X(nSendBytes);
627627
X(nRecvBytes);
628628
stats.fSyncNode = (this == pnodeSync);
629-
629+
630630
// It is common for nodes with good ping times to suddenly become lagged,
631631
// due to a new block arriving or other large transfer.
632632
// Merely reporting pingtime might fool the caller into thinking the node was still responsive,
@@ -637,11 +637,11 @@ void CNode::copyStats(CNodeStats &stats)
637637
if ((0 != nPingNonceSent) && (0 != nPingUsecStart)) {
638638
nPingUsecWait = GetTimeMicros() - nPingUsecStart;
639639
}
640-
640+
641641
// Raw ping time is in microseconds, but show it to user as whole seconds (Bitcoin users should be well used to small numbers with many decimal places by now :)
642642
stats.dPingTime = (((double)nPingUsecTime) / 1e6);
643643
stats.dPingWait = (((double)nPingUsecWait) / 1e6);
644-
644+
645645
// Leave string empty if addrLocal invalid (not filled in yet)
646646
stats.addrLocal = addrLocal.IsValid() ? addrLocal.ToString() : "";
647647
}
@@ -1542,9 +1542,9 @@ void ThreadMessageHandler()
15421542
CNode* pnodeTrickle = NULL;
15431543
if (!vNodesCopy.empty())
15441544
pnodeTrickle = vNodesCopy[GetRand(vNodesCopy.size())];
1545-
1545+
15461546
bool fSleep = true;
1547-
1547+
15481548
BOOST_FOREACH(CNode* pnode, vNodesCopy)
15491549
{
15501550
if (pnode->fDisconnect)
@@ -1557,7 +1557,7 @@ void ThreadMessageHandler()
15571557
{
15581558
if (!g_signals.ProcessMessages(pnode))
15591559
pnode->CloseSocketDisconnect();
1560-
1560+
15611561
if (pnode->nSendSize < SendBufferSize())
15621562
{
15631563
if (!pnode->vRecvGetData.empty() || (!pnode->vRecvMsg.empty() && pnode->vRecvMsg[0].complete()))
@@ -1583,7 +1583,7 @@ void ThreadMessageHandler()
15831583
BOOST_FOREACH(CNode* pnode, vNodesCopy)
15841584
pnode->Release();
15851585
}
1586-
1586+
15871587
if (fSleep)
15881588
MilliSleep(100);
15891589
}

src/script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ void CScript::SetMultisig(int nRequired, const std::vector<CPubKey>& keys)
19071907

19081908
bool CScriptCompressor::IsToKeyID(CKeyID &hash) const
19091909
{
1910-
if (script.size() == 25 && script[0] == OP_DUP && script[1] == OP_HASH160
1910+
if (script.size() == 25 && script[0] == OP_DUP && script[1] == OP_HASH160
19111911
&& script[2] == 20 && script[23] == OP_EQUALVERIFY
19121912
&& script[24] == OP_CHECKSIG) {
19131913
memcpy(&hash, &script[3], 20);

src/walletdb.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ bool CWalletDB::WriteKey(const CPubKey& vchPubKey, const CPrivKey& vchPrivKey, c
8282
return Write(std::make_pair(std::string("key"), vchPubKey), std::make_pair(vchPrivKey, Hash(vchKey.begin(), vchKey.end())), false);
8383
}
8484

85-
bool CWalletDB::WriteCryptedKey(const CPubKey& vchPubKey,
86-
const std::vector<unsigned char>& vchCryptedSecret,
85+
bool CWalletDB::WriteCryptedKey(const CPubKey& vchPubKey,
86+
const std::vector<unsigned char>& vchCryptedSecret,
8787
const CKeyMetadata &keyMeta)
8888
{
8989
const bool fEraseUnencryptedKey = true;
@@ -429,7 +429,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
429429
CKey key;
430430
CPrivKey pkey;
431431
uint256 hash = 0;
432-
432+
433433
if (strType == "key")
434434
{
435435
wss.nKeys++;
@@ -439,7 +439,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
439439
ssValue >> wkey;
440440
pkey = wkey.vchPrivKey;
441441
}
442-
442+
443443
// Old wallets store keys as "key" [pubkey] => [privkey]
444444
// ... which was slow for wallets with lots of keys, because the public key is re-derived from the private key
445445
// using EC operations as a checksum.
@@ -450,26 +450,26 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
450450
ssValue >> hash;
451451
}
452452
catch(...){}
453-
453+
454454
bool fSkipCheck = false;
455-
455+
456456
if (hash != 0)
457457
{
458458
// hash pubkey/privkey to accelerate wallet load
459459
std::vector<unsigned char> vchKey;
460460
vchKey.reserve(vchPubKey.size() + pkey.size());
461461
vchKey.insert(vchKey.end(), vchPubKey.begin(), vchPubKey.end());
462462
vchKey.insert(vchKey.end(), pkey.begin(), pkey.end());
463-
463+
464464
if (Hash(vchKey.begin(), vchKey.end()) != hash)
465465
{
466466
strErr = "Error reading wallet database: CPubKey/CPrivKey corrupt";
467467
return false;
468468
}
469-
469+
470470
fSkipCheck = true;
471471
}
472-
472+
473473
if (!key.Load(pkey, vchPubKey, fSkipCheck))
474474
{
475475
strErr = "Error reading wallet database: CPrivKey corrupt";

0 commit comments

Comments
 (0)