Skip to content

Commit

Permalink
Locks/Better Logging/Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerlievens committed Jan 28, 2017
1 parent 56a4276 commit 7309d94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void MineGenesis(CBlock genesis, uint256 bnProofOfWorkLimit){
printf("New best: %s\n", newhash.GetHex().c_str());
}
}
printf("Gensis Hash: %s\n", genesis.GetHash().ToString().c_str());
printf("Gensis Hash Merkle: %s\n", genesis.hashMerkleRoot.ToString().c_str());
printf("Gensis nTime: %u\n", genesis.nTime);
printf("Gensis nBits: %08x\n", genesis.nBits);
printf("Gensis Nonce: %u\n\n\n", genesis.nNonce);
printf("Genesis Hash: %s\n", genesis.GetHash().ToString().c_str());
printf("Genesis Hash Merkle: %s\n", genesis.hashMerkleRoot.ToString().c_str());
printf("Genesis nTime: %u\n", genesis.nTime);
printf("Genesis nBits: %08x\n", genesis.nBits);
printf("Genesis Nonce: %u\n\n\n", genesis.nNonce);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ void AdvertizeLocal(CNode *pnode)
}
if (addrLocal.IsRoutable())
{
LogPrintf("AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
pnode->PushAddress(addrLocal);
}
}
Expand Down Expand Up @@ -361,6 +362,7 @@ uint64_t CNode::nTotalBytesSent = 0;
CCriticalSection CNode::cs_totalBytesRecv;
CCriticalSection CNode::cs_totalBytesSent;


CNode* FindNode(const CNetAddr& ip)
{
LOCK(cs_vNodes);
Expand Down Expand Up @@ -485,6 +487,7 @@ CCriticalSection CNode::cs_setBanned;

void CNode::ClearBanned()
{
LOCK(cs_setBanned);
setBanned.clear();
}

Expand Down

0 comments on commit 7309d94

Please sign in to comment.