Skip to content

Commit e47c94e

Browse files
committed
Merge pull request #6135
f13dac9 Comment edits and cleanup (BitcoinPRReadingGroup) ff734e9 Alphabetic order in makefile (Jorge Timón) 5207f33 fix header include groups (Philip Kaufmann) 59b149f remove unneeded incude of wallet/db.h from rpcmining.cpp (Philip Kaufmann) 3703385 remove unused classes from db.h (Philip Kaufmann) 0a7bcb7 fix IDE/compiler warning "extra ';'" in validationinterface.h (Philip Kaufmann) 3b00e7c [Trivial] Update COPYING (sandakersmann) dd9e688 Trivial: Corrected owner of DNS seeder (ayeowch) a60bfd8 [init] better message when no wallet support is compiled in (Philip Kaufmann) 78f44b6 Capitalized P2P (sandakersmann) 8e9248d [Trivial] Cryptocurrency is one word (sandakersmann) 803f51e Typo in GetRawMemPool RPC method help: "]" --> "}" (Chris Arnesen) 605a735 addrman: update comments (Pavel Vasin)
2 parents f0043c2 + f13dac9 commit e47c94e

File tree

13 files changed

+48
-53
lines changed

13 files changed

+48
-53
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009-2015 Bitcoin Developers
1+
Copyright (c) 2009-2015 The Bitcoin Core developers
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

contrib/init/bitcoind.openrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BITCOIND_NICE=${BITCOIND_NICE:-${NICELEVEL:-0}}
1919
BITCOIND_OPTS="${BITCOIND_OPTS:-${BITCOIN_OPTS}}"
2020

2121
name="Bitcoin Core Daemon"
22-
description="Bitcoin crypto-currency p2p network daemon"
22+
description="Bitcoin cryptocurrency P2P network daemon"
2323

2424
command="/usr/bin/bitcoind"
2525
command_args="-pid=\"${BITCOIND_PIDFILE}\" \

src/Makefile.am

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,22 @@ BITCOIN_CORE_H = \
7777
base58.h \
7878
bloom.h \
7979
chain.h \
80-
chainparamsbase.h \
8180
chainparams.h \
81+
chainparamsbase.h \
8282
chainparamsseeds.h \
8383
checkpoints.h \
8484
checkqueue.h \
8585
clientversion.h \
8686
coincontrol.h \
8787
coins.h \
8888
compat.h \
89+
compat/byteswap.h \
90+
compat/endian.h \
91+
compat/sanity.h \
8992
compressor.h \
9093
consensus/consensus.h \
9194
consensus/params.h \
9295
core_io.h \
93-
wallet/db.h \
9496
eccryptoverify.h \
9597
ecwrapper.h \
9698
hash.h \
@@ -104,8 +106,8 @@ BITCOIN_CORE_H = \
104106
merkleblock.h \
105107
miner.h \
106108
mruset.h \
107-
netbase.h \
108109
net.h \
110+
netbase.h \
109111
noui.h \
110112
policy/fees.h \
111113
pow.h \
@@ -119,8 +121,8 @@ BITCOIN_CORE_H = \
119121
rpcserver.h \
120122
scheduler.h \
121123
script/interpreter.h \
122-
script/script_error.h \
123124
script/script.h \
125+
script/script_error.h \
124126
script/sigcache.h \
125127
script/sign.h \
126128
script/standard.h \
@@ -146,12 +148,10 @@ BITCOIN_CORE_H = \
146148
validationinterface.h \
147149
version.h \
148150
wallet/crypter.h \
149-
wallet/walletdb.h \
151+
wallet/db.h \
150152
wallet/wallet.h \
151153
wallet/wallet_ismine.h \
152-
compat/byteswap.h \
153-
compat/endian.h \
154-
compat/sanity.h
154+
wallet/walletdb.h
155155

156156
JSON_H = \
157157
json/json_spirit.h \
@@ -218,39 +218,37 @@ libbitcoin_wallet_a_SOURCES = \
218218
# crypto primitives library
219219
crypto_libbitcoin_crypto_a_CPPFLAGS = $(BITCOIN_CONFIG_INCLUDES)
220220
crypto_libbitcoin_crypto_a_SOURCES = \
221-
crypto/sha1.cpp \
222-
crypto/sha256.cpp \
223-
crypto/sha512.cpp \
224-
crypto/hmac_sha256.cpp \
225-
crypto/hmac_sha512.cpp \
226-
crypto/ripemd160.cpp \
227221
crypto/common.h \
228-
crypto/sha256.h \
229-
crypto/sha512.h \
222+
crypto/hmac_sha256.cpp \
230223
crypto/hmac_sha256.h \
224+
crypto/hmac_sha512.cpp \
231225
crypto/hmac_sha512.h \
226+
crypto/ripemd160.cpp \
227+
crypto/ripemd160.h \
228+
crypto/sha1.cpp \
232229
crypto/sha1.h \
233-
crypto/ripemd160.h
230+
crypto/sha256.cpp \
231+
crypto/sha256.h \
232+
crypto/sha512.cpp \
233+
crypto/sha512.h
234234

235235
# univalue JSON library
236236
univalue_libbitcoin_univalue_a_SOURCES = \
237237
univalue/univalue.cpp \
238-
univalue/univalue_read.cpp \
239-
univalue/univalue_write.cpp \
238+
univalue/univalue.h \
240239
univalue/univalue_escapes.h \
241-
univalue/univalue.h
240+
univalue/univalue_read.cpp \
241+
univalue/univalue_write.cpp
242242

243243
# common: shared between bitcoind, and bitcoin-qt and non-server tools
244244
libbitcoin_common_a_CPPFLAGS = $(BITCOIN_INCLUDES)
245245
libbitcoin_common_a_SOURCES = \
246-
arith_uint256.cpp \
247246
amount.cpp \
247+
arith_uint256.cpp \
248248
base58.cpp \
249249
chainparams.cpp \
250250
coins.cpp \
251251
compressor.cpp \
252-
primitives/block.cpp \
253-
primitives/transaction.cpp \
254252
core_read.cpp \
255253
core_write.cpp \
256254
eccryptoverify.cpp \
@@ -259,14 +257,16 @@ libbitcoin_common_a_SOURCES = \
259257
key.cpp \
260258
keystore.cpp \
261259
netbase.cpp \
260+
primitives/block.cpp \
261+
primitives/transaction.cpp \
262262
protocol.cpp \
263263
pubkey.cpp \
264264
scheduler.cpp \
265265
script/interpreter.cpp \
266266
script/script.cpp \
267+
script/script_error.cpp \
267268
script/sign.cpp \
268269
script/standard.cpp \
269-
script/script_error.cpp \
270270
$(BITCOIN_CORE_H)
271271

272272
# util: shared between all executables.

src/addrman.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ class CAddrInfo : public CAddress
110110
*
111111
* To that end:
112112
* * Addresses are organized into buckets.
113-
* * Address that have not yet been tried go into 1024 "new" buckets.
114-
* * Based on the address range (/16 for IPv4) of source of the information, 64 buckets are selected at random
113+
* * Addresses that have not yet been tried go into 1024 "new" buckets.
114+
* * Based on the address range (/16 for IPv4) of the source of information, 64 buckets are selected at random.
115115
* * The actual bucket is chosen from one of these, based on the range in which the address itself is located.
116-
* * One single address can occur in up to 8 different buckets, to increase selection chances for addresses that
116+
* * One single address can occur in up to 8 different buckets to increase selection chances for addresses that
117117
* are seen frequently. The chance for increasing this multiplicity decreases exponentially.
118118
* * When adding a new address to a full bucket, a randomly chosen entry (with a bias favoring less recently seen
119119
* ones) is removed from it first.
@@ -231,7 +231,6 @@ class CAddrMan
231231
void Attempt_(const CService &addr, int64_t nTime);
232232

233233
//! Select an address to connect to.
234-
//! nUnkBias determines how much to favor new addresses over tried ones (min=0, max=100)
235234
CAddrInfo Select_();
236235

237236
#ifdef DEBUG_ADDRMAN
@@ -532,7 +531,6 @@ class CAddrMan
532531

533532
/**
534533
* Choose an address to connect to.
535-
* nUnkBias determines how much "new" entries are favored over "tried" ones (0-100).
536534
*/
537535
CAddrInfo Select()
538536
{

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class CMainParams : public CChainParams {
8686
vSeeds.push_back(CDNSSeedData("bitcoin.sipa.be", "seed.bitcoin.sipa.be")); // Pieter Wuille
8787
vSeeds.push_back(CDNSSeedData("bluematt.me", "dnsseed.bluematt.me")); // Matt Corallo
8888
vSeeds.push_back(CDNSSeedData("dashjr.org", "dnsseed.bitcoin.dashjr.org")); // Luke Dashjr
89-
vSeeds.push_back(CDNSSeedData("bitcoinstats.com", "seed.bitcoinstats.com")); // Addy Yeow
89+
vSeeds.push_back(CDNSSeedData("bitcoinstats.com", "seed.bitcoinstats.com")); // Christian Decker
9090
vSeeds.push_back(CDNSSeedData("xf2.org", "bitseed.xf2.org")); // Jeff Garzik
9191
vSeeds.push_back(CDNSSeedData("bitcoin.jonasschnelli.ch", "seed.bitcoin.jonasschnelli.ch")); // Jonas Schnelli
9292

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
13351335
pwalletMain->SetBroadcastTransactions(GetBoolArg("-walletbroadcast", true));
13361336
} // (!fDisableWallet)
13371337
#else // ENABLE_WALLET
1338-
LogPrintf("No wallet compiled in!\n");
1338+
LogPrintf("No wallet support compiled in!\n");
13391339
#endif // !ENABLE_WALLET
13401340
// ********************************************************* Step 9: import blocks
13411341

src/rpcblockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Value getrawmempool(const Array& params, bool fHelp)
170170
" \"transactionid\", (string) parent transaction id\n"
171171
" ... ]\n"
172172
" }, ...\n"
173-
"]\n"
173+
"}\n"
174174
"\nExamples\n"
175175
+ HelpExampleCli("getrawmempool", "true")
176176
+ HelpExampleRpc("getrawmempool", "true")

src/rpcmining.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "util.h"
1717
#include "validationinterface.h"
1818
#ifdef ENABLE_WALLET
19-
#include "wallet/db.h"
2019
#include "wallet/wallet.h"
2120
#endif
2221

src/script/script.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BITCOIN_SCRIPT_SCRIPT_H
77
#define BITCOIN_SCRIPT_SCRIPT_H
88

9+
#include "crypto/common.h"
10+
911
#include <assert.h>
1012
#include <climits>
1113
#include <limits>
@@ -14,7 +16,6 @@
1416
#include <string.h>
1517
#include <string>
1618
#include <vector>
17-
#include "crypto/common.h"
1819

1920
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes
2021

src/serialize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BITCOIN_SERIALIZE_H
77
#define BITCOIN_SERIALIZE_H
88

9+
#include "compat/endian.h"
10+
911
#include <algorithm>
1012
#include <assert.h>
1113
#include <ios>
@@ -18,8 +20,6 @@
1820
#include <utility>
1921
#include <vector>
2022

21-
#include "compat/endian.h"
22-
2323
class CScript;
2424

2525
static const unsigned int MAX_SIZE = 0x02000000;

0 commit comments

Comments
 (0)