Skip to content

Commit aeedd8a

Browse files
committed
Merge pull request #7157
fabd10a Fix typo in wallet.cpp (MarcoFalke) fad2460 Update contrib/devtools/README.md (MarcoFalke) 5e151a8 PartitionCheck: remove useless spaces (paveljanik) fad0088 TRIVIAL: Chainparams: Remove unused CBaseUnitTestParams (Jorge Timón) 74f7341 Update miner.cpp: Fix typo in comment (antonio-fr) e69bad1 [trivial] Fix typo in peertablemodel.cpp (MarcoFalke) 8a03727 Fix various typos (paveljanik)
2 parents df2ced5 + fabd10a commit aeedd8a

File tree

10 files changed

+44
-56
lines changed

10 files changed

+44
-56
lines changed

contrib/devtools/README.md

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,37 @@ clang-format.py
77

88
A script to format cpp source code according to [.clang-format](../../src/.clang-format). This should only be applied to new files or files which are currently not actively developed on. Also, git subtrees are not subject to formatting.
99

10+
fix-copyright-headers.py
11+
========================
12+
13+
Every year newly updated files need to have its copyright headers updated to reflect the current year.
14+
If you run this script from src/ it will automatically update the year on the copyright header for all
15+
.cpp and .h files if these have a git commit from the current year.
16+
17+
For example a file changed in 2014 (with 2014 being the current year):
18+
19+
```// Copyright (c) 2009-2013 The Bitcoin Core developers```
20+
21+
would be changed to:
22+
23+
```// Copyright (c) 2009-2014 The Bitcoin Core developers```
24+
25+
git-subtree-check.sh
26+
====================
27+
28+
Run this script from the root of the repository to verify that a subtree matches the contents of
29+
the commit it claims to have been updated to.
30+
31+
To use, make sure that you have fetched the upstream repository branch in which the subtree is
32+
maintained:
33+
* for `src/secp256k1`: https://github.com/bitcoin/secp256k1.git (branch master)
34+
* for `src/leveldb`: https://github.com/bitcoin/leveldb.git (branch bitcoin-fork)
35+
* for `src/univalue`: https://github.com/bitcoin/univalue.git (branch master)
36+
37+
Usage: `git-subtree-check.sh DIR COMMIT`
38+
39+
`COMMIT` may be omitted, in which case `HEAD` is used.
40+
1041
github-merge.sh
1142
===============
1243

@@ -41,21 +72,6 @@ Configuring the github-merge tool for the bitcoin repository is done in the foll
4172
git config githubmerge.testcmd "make -j4 check" (adapt to whatever you want to use for testing)
4273
git config --global user.signingkey mykeyid (if you want to GPG sign)
4374

44-
fix-copyright-headers.py
45-
========================
46-
47-
Every year newly updated files need to have its copyright headers updated to reflect the current year.
48-
If you run this script from src/ it will automatically update the year on the copyright header for all
49-
.cpp and .h files if these have a git commit from the current year.
50-
51-
For example a file changed in 2014 (with 2014 being the current year):
52-
53-
```// Copyright (c) 2009-2013 The Bitcoin Core developers```
54-
55-
would be changed to:
56-
57-
```// Copyright (c) 2009-2014 The Bitcoin Core developers```
58-
5975
optimize-pngs.py
6076
================
6177

@@ -98,18 +114,3 @@ It will do the following automatically:
98114
- add missing translations to the build system (TODO)
99115

100116
See doc/translation-process.md for more information.
101-
102-
git-subtree-check.sh
103-
====================
104-
105-
Run this script from the root of the repository to verify that a subtree matches the contents of
106-
the commit it claims to have been updated to.
107-
108-
To use, make sure that you have fetched the upstream repository branch in which the subtree is
109-
maintained:
110-
* for src/secp256k1: https://github.com/bitcoin/secp256k1.git (branch master)
111-
* for sec/leveldb: https://github.com/bitcoin/leveldb.git (branch bitcoin-fork)
112-
113-
Usage: git-subtree-check.sh DIR COMMIT
114-
115-
COMMIT may be omitted, in which case HEAD is used.

contrib/seeds/generate-seeds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python
2-
# Copyright (c) 2014 Wladmir J. van der Laan
2+
# Copyright (c) 2014 Wladimir J. van der Laan
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
'''

doc/release-notes/release-notes-0.6.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ hundreds of blocks long.
2323
Bitcoin-Qt no longer automatically selects the first address
2424
in the address book (Issue #1384).
2525

26-
Fixed minimize-to-dock behavior of Bitcon-Qt on the Mac.
26+
Fixed minimize-to-dock behavior of Bitcoin-Qt on the Mac.
2727

2828
Added a block checkpoint at block 185,333 to speed up initial
2929
blockchain download.

src/amount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern const std::string CURRENCY_UNIT;
3030
static const CAmount MAX_MONEY = 21000000 * COIN;
3131
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
3232

33-
/** Type-safe wrapper class to for fee rates
33+
/** Type-safe wrapper class for fee rates
3434
* (how much to pay based on transaction size)
3535
*/
3636
class CFeeRate

src/chainparamsbase.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ class CBaseRegTestParams : public CBaseChainParams
6565
};
6666
static CBaseRegTestParams regTestParams;
6767

68-
/*
69-
* Unit test
70-
*/
71-
class CBaseUnitTestParams : public CBaseMainParams
72-
{
73-
public:
74-
CBaseUnitTestParams()
75-
{
76-
strDataDir = "unittest";
77-
}
78-
};
79-
static CBaseUnitTestParams unitTestParams;
80-
8168
static CBaseChainParams* pCurrentBaseParams = 0;
8269

8370
const CBaseChainParams& BaseParams()

src/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ namespace {
134134
set<CBlockIndex*, CBlockIndexWorkComparator> setBlockIndexCandidates;
135135
/** Number of nodes with fSyncStarted. */
136136
int nSyncStarted = 0;
137-
/** All pairs A->B, where A (or one if its ancestors) misses transactions, but B has transactions.
138-
* Pruned nodes may have entries where B is missing data.
139-
*/
137+
/** All pairs A->B, where A (or one of its ancestors) misses transactions, but B has transactions.
138+
* Pruned nodes may have entries where B is missing data.
139+
*/
140140
multimap<CBlockIndex*, CBlockIndex*> mapBlocksUnlinked;
141141

142142
CCriticalSection cs_LastBlockFile;
@@ -1945,8 +1945,8 @@ void PartitionCheck(bool (*initialDownloadCheck)(), CCriticalSection& cs, const
19451945
// How likely is it to find that many by chance?
19461946
double p = boost::math::pdf(poisson, nBlocks);
19471947

1948-
LogPrint("partitioncheck", "%s : Found %d blocks in the last %d hours\n", __func__, nBlocks, SPAN_HOURS);
1949-
LogPrint("partitioncheck", "%s : likelihood: %g\n", __func__, p);
1948+
LogPrint("partitioncheck", "%s: Found %d blocks in the last %d hours\n", __func__, nBlocks, SPAN_HOURS);
1949+
LogPrint("partitioncheck", "%s: likelihood: %g\n", __func__, p);
19501950

19511951
// Aim for one false-positive about every fifty years of normal running:
19521952
const int FIFTY_YEARS = 50*365*24*60*60;
@@ -3047,7 +3047,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
30473047

30483048
// Reject block.nVersion=2 blocks when 95% (75% on testnet) of the network has upgraded:
30493049
if (block.nVersion < 3 && IsSuperMajority(3, pindexPrev, consensusParams.nMajorityRejectBlockOutdated, consensusParams))
3050-
return state.Invalid(error("%s : rejected nVersion=2 block", __func__),
3050+
return state.Invalid(error("%s: rejected nVersion=2 block", __func__),
30513051
REJECT_OBSOLETE, "bad-version");
30523052

30533053
// Reject block.nVersion=3 blocks when 95% (75% on testnet) of the network has upgraded:

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& s
9898

9999
// Largest block you're willing to create:
100100
unsigned int nBlockMaxSize = GetArg("-blockmaxsize", DEFAULT_BLOCK_MAX_SIZE);
101-
// Limit to betweeen 1K and MAX_BLOCK_SIZE-1K for sanity:
101+
// Limit to between 1K and MAX_BLOCK_SIZE-1K for sanity:
102102
nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE-1000), nBlockMaxSize));
103103

104104
// How much of the block should be dedicated to high-priority transactions,

src/qt/peertablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PeerTablePriv
8585
}
8686

8787
if (sortColumn >= 0)
88-
// sort cacheNodeStats (use stable sort to prevent rows jumping around unneceesarily)
88+
// sort cacheNodeStats (use stable sort to prevent rows jumping around unnecessarily)
8989
qStableSort(cachedNodeStats.begin(), cachedNodeStats.end(), NodeLessThan(sortColumn, sortOrder));
9090

9191
// build index map

src/rest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
494494
if (vOutPoints.size() > MAX_GETUTXOS_OUTPOINTS)
495495
return RESTERR(req, HTTP_INTERNAL_SERVER_ERROR, strprintf("Error: max outpoints exceeded (max: %d, tried: %d)", MAX_GETUTXOS_OUTPOINTS, vOutPoints.size()));
496496

497-
// check spentness and form a bitmap (as well as a JSON capable human-readble string representation)
497+
// check spentness and form a bitmap (as well as a JSON capable human-readable string representation)
498498
vector<unsigned char> bitmap;
499499
vector<CCoin> outs;
500500
std::string bitmapStringRepresentation;

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
18721872
// Discourage fee sniping.
18731873
//
18741874
// For a large miner the value of the transactions in the best block and
1875-
// the mempool can exceed the cost of delibrately attempting to mine two
1875+
// the mempool can exceed the cost of deliberately attempting to mine two
18761876
// blocks to orphan the current best block. By setting nLockTime such that
18771877
// only the next block can include the transaction, we discourage this
18781878
// practice as the height restricted and limited blocksize gives miners

0 commit comments

Comments
 (0)