aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-08-12 17:33:03 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-08-12 17:33:03 +0000
commit8ddc257a4b422aee2a0e58362f31fbd32301f12f (patch)
treefb959be4432cd9d8eea9402de79890a7131e39f0 /src
parent982f4fd301435e56bb959267a8f69ff793b10e26 (diff)
parent448f6b3d9b6d598f6a3db7807934d10fe94d5a71 (diff)
downloadbitcoin-8ddc257a4b422aee2a0e58362f31fbd32301f12f.tar.xz
Merge branch '0.4.x' into 0.5.x
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
-rw-r--r--src/main.h2
-rw-r--r--src/script.cpp2
-rw-r--r--src/util.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0e6830e465..c06eb88887 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -469,7 +469,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi
// Continuously rate-limit free transactions
// This mitigates 'penny-flooding' -- sending thousands of free transactions just to
- // be annoying or make other's transactions take longer to confirm.
+ // be annoying or make others' transactions take longer to confirm.
if (nFees < MIN_RELAY_TX_FEE)
{
static CCriticalSection cs;
@@ -957,7 +957,7 @@ bool CTransaction::FetchInputs(CTxDB& txdb, const map<uint256, CTxIndex>& mapTes
}
}
- // Make sure all prevout.n's are valid:
+ // Make sure all prevout.n indexes are valid:
for (unsigned int i = 0; i < vin.size(); i++)
{
const COutPoint prevout = vin[i].prevout;
@@ -1192,7 +1192,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex)
// being sent to another address.
// See BIP30 and http://r6.ca/blog/20120206T005236Z.html for more information.
// This logic is not necessary for memory pool transactions, as AcceptToMemoryPool
- // already refuses previously-known transaction id's entirely.
+ // already refuses previously-known transaction ids entirely.
// This rule applies to all blocks whose timestamp is after March 15, 2012, 0:00 UTC.
// On testnet it is enabled as of februari 20, 2012, 0:00 UTC.
if (pindex->nTime > 1331769600 || (fTestNet && pindex->nTime > 1329696000))
diff --git a/src/main.h b/src/main.h
index 5357413cdc..13931d077a 100644
--- a/src/main.h
+++ b/src/main.h
@@ -564,7 +564,7 @@ public:
if (nBlockSize == 1)
{
// Transactions under 10K are free
- // (about 4500bc if made of 50bc inputs)
+ // (about 4500 BTC if made of 50 BTC inputs)
if (nBytes < 10000)
nMinFee = 0;
}
diff --git a/src/script.cpp b/src/script.cpp
index d9101fbdeb..3b9d6c8db5 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1269,7 +1269,7 @@ int CScript::GetSigOpCount(const CScript& scriptSig) const
return 0;
}
- /// ... and return it's opcount:
+ /// ... and return its opcount:
CScript subscript(data.begin(), data.end());
return subscript.GetSigOpCount(true);
}
diff --git a/src/util.cpp b/src/util.cpp
index c70b9d9e6e..d496a44d2d 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -352,7 +352,7 @@ string FormatMoney(int64 n, bool fPlus)
int64 remainder = n_abs%COIN;
string str = strprintf("%"PRI64d".%08"PRI64d, quotient, remainder);
- // Right-trim excess 0's before the decimal point:
+ // Right-trim excess zeros before the decimal point:
int nTrim = 0;
for (int i = str.size()-1; (str[i] == '0' && isdigit(str[i-2])); --i)
++nTrim;