From e7494052975c60032629112390325f7e20817308 Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 29 Jun 2012 17:26:45 +0800 Subject: Fix a few typos --- src/addrman.h | 4 ++-- src/base58.h | 6 +++--- src/sync.cpp | 2 +- src/util.cpp | 2 +- src/wallet.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/addrman.h b/src/addrman.h index b996839e3c..0392654366 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -23,13 +23,13 @@ private: // 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) diff --git a/src/base58.h b/src/base58.h index b492cd683c..58149976f2 100644 --- a/src/base58.h +++ b/src/base58.h @@ -119,7 +119,7 @@ inline bool DecodeBase58(const char* psz, std::vector& 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& vchRet) { return DecodeBase58(str.c_str(), vchRet); @@ -139,7 +139,7 @@ inline std::string EncodeBase58Check(const std::vector& 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& vchRet) { if (!DecodeBase58(psz, vchRet)) @@ -160,7 +160,7 @@ inline bool DecodeBase58Check(const char* psz, std::vector& 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& vchRet) { return DecodeBase58Check(str.c_str(), vchRet); diff --git a/src/sync.cpp b/src/sync.cpp index dbd9ebdaee..54ad7de4e6 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -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 diff --git a/src/util.cpp b/src/util.cpp index 9d0f9ab347..9881545a02 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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 diff --git a/src/wallet.h b/src/wallet.h index b2e0e5260e..9807ececd6 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -69,7 +69,7 @@ private: // 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: -- cgit v1.2.3