Skip to content

Commit

Permalink
Fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Jun 29, 2012
1 parent 5fa8396 commit e749405
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/addrman.h
Expand Up @@ -23,13 +23,13 @@ class CAddrInfo : public CAddress
// where knowledge about this address first came from
CNetAddr source;

// last succesfull connection by us
// last successful connection by us
int64 nLastSuccess;

// last try whatsoever by us:
// int64 CAddress::nLastTry

// connection attempts since last succesful attempt
// connection attempts since last successful attempt
int nAttempts;

// reference count in new sets (memory only)
Expand Down
6 changes: 3 additions & 3 deletions src/base58.h
Expand Up @@ -119,7 +119,7 @@ inline bool DecodeBase58(const char* psz, std::vector<unsigned char>& vchRet)
}

// Decode a base58-encoded string str into byte vector vchRet
// returns true if decoding is succesful
// returns true if decoding is successful
inline bool DecodeBase58(const std::string& str, std::vector<unsigned char>& vchRet)
{
return DecodeBase58(str.c_str(), vchRet);
Expand All @@ -139,7 +139,7 @@ inline std::string EncodeBase58Check(const std::vector<unsigned char>& vchIn)
}

// Decode a base58-encoded string psz that includes a checksum, into byte vector vchRet
// returns true if decoding is succesful
// returns true if decoding is successful
inline bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet)
{
if (!DecodeBase58(psz, vchRet))
Expand All @@ -160,7 +160,7 @@ inline bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRe
}

// Decode a base58-encoded string str that includes a checksum, into byte vector vchRet
// returns true if decoding is succesful
// returns true if decoding is successful
inline bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet)
{
return DecodeBase58Check(str.c_str(), vchRet);
Expand Down
2 changes: 1 addition & 1 deletion src/sync.cpp
Expand Up @@ -24,7 +24,7 @@ void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
// --> may result in deadlock between the two threads, depending on when they run.
// Solution implemented here:
// Keep track of pairs of locks: (A before B), (A before C), etc.
// Complain if any thread trys to lock in a different order.
// Complain if any thread tries to lock in a different order.
//

struct CLockLocation
Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Expand Up @@ -1142,7 +1142,7 @@ void ShrinkDebugFile()
// "Never go to sea with two chronometers; take one or three."
// Our three time sources are:
// - System clock
// - Median of other nodes's clocks
// - Median of other nodes clocks
// - The user (asking the user to fix the system clock if the first two disagree)
//
static int64 nMockTime = 0; // For unit testing
Expand Down
2 changes: 1 addition & 1 deletion src/wallet.h
Expand Up @@ -69,7 +69,7 @@ class CWallet : public CCryptoKeyStore
// the current wallet version: clients below this version are not able to load the wallet
int nWalletVersion;

// the maxmimum wallet format version: memory-only variable that specifies to what version this wallet may be upgraded
// the maximum wallet format version: memory-only variable that specifies to what version this wallet may be upgraded
int nWalletMaxVersion;

public:
Expand Down

0 comments on commit e749405

Please sign in to comment.