Cory Fields
fa2f8bc47f
net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options
8 years ago
Cory Fields
a19553b992
net: Introduce CConnection::Options to avoid passing so many params
8 years ago
Cory Fields
bafa5fc5a1
net: Drop StartNode/StopNode and use CConnman directly
8 years ago
Cory Fields
e81a602cf0
net: pass CClientUIInterface into CConnman
8 years ago
Cory Fields
f60b9059e4
net: Pass best block known height into CConnman
...
CConnman then passes the current best height into CNode at creation time.
This way CConnman/CNode have no dependency on main for height, and the signals
only move in one direction.
This also helps to prevent identity leakage a tiny bit. Before this change, an
attacker could theoretically make 2 connections on different interfaces. They
would connect fully on one, and only establish the initial connection on the
other. Once they receive a new block, they would relay it to your first
connection, and immediately commence the version handshake on the second. Since
the new block height is reflected immediately, they could attempt to learn
whether the two connections were correlated.
This is, of course, incredibly unlikely to work due to the small timings
involved and receipt from other senders. But it doesn't hurt to lock-in
nBestHeight at the time of connection, rather than letting the remote choose
the time.
8 years ago
Cory Fields
fdf69ff21a
net: move max/max-outbound to CConnman
8 years ago
Cory Fields
bd72937dc4
net: move nLocalServices/nRelevantServices to CConnman
...
These are in-turn passed to CNode at connection time. This allows us to offer
different services to different peers (or test the effects of doing so).
8 years ago
Cory Fields
63cafa6329
net: move send/recv statistics to CConnman
8 years ago
Cory Fields
6c19d92361
net: move whitelist functions into CConnman
8 years ago
Cory Fields
502dd3a8a0
net: Add oneshot functions to CConnman
8 years ago
Cory Fields
02137f11e2
net: Move socket binding into CConnman
8 years ago
Cory Fields
cd16f48028
net: Create CConnman to encapsulate p2p connections
8 years ago
Jorge Timón
cdd79eb70f
C++11: s/boost::scoped_ptr/std::unique_ptr/
8 years ago
MarcoFalke
fa6dc9f0e5
Remove unused variables
8 years ago
Wladimir J. van der Laan
67a55025a1
init: Fix typo in help message for -whitelistforcerelay
...
Reported by pryds on Transifex in the Danish translation.
8 years ago
Patrick Strateman
8680d3aa80
Move wallet initialization logic from AppInit2 to CWallet::InitLoadWallet
8 years ago
Patrick Strateman
e86eb71604
Move CWallet::setKeyPool to private section of CWallet
8 years ago
instagibbs
edb6cf1432
remove no-longer-used InitError logic
8 years ago
leijurv
1aacfc2da5
various typos
8 years ago
Cory Fields
8945384bca
net: Have LookupNumeric return a CService directly
...
Also fix up a few small issues:
- Lookup with "badip:port" now sets the port to 0
- Don't allow assert to have side-effects
8 years ago
Pavel Janík
0fc00bea5d
Do not shadow previous local variable
8 years ago
Pavel Janík
115265bb10
Trivial: bip -> BIP in help text and comment
8 years ago
Cory Fields
21ba407a73
net: narrow include scope after moving to netaddress
...
Net functionality is no longer needed for CAddress/CAddrman/etc. now that
CNetAddr/CService/CSubNet are dumb storage classes.
8 years ago
Cory Fields
b6c3ff3dae
net: Split resolving out of CSubNet
8 years ago
Cory Fields
f96c7c4d91
net: Split resolving out of CService
8 years ago
Pieter Wuille
9d4eb9ad99
Do diskspace check before import thread is started
8 years ago
Pieter Wuille
0fd2a33648
Use a signal to continue init after genesis activation
8 years ago
Suhas Daftuar
56c87e9211
Allow changing BIP9 parameters on regtest
8 years ago
fanquake
208d37f116
[trivial] Remove URLs from About dialog translations
8 years ago
Pieter Wuille
ab942c15bd
Treat high-sigop transactions as larger rather than rejecting them
8 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
8 years ago
Wladimir J. van der Laan
8cef5bd58a
mining: Improve `-blockmaxcost` help message
...
One-word replacement to #8354 .
8 years ago
Wladimir J. van der Laan
32cab91278
Bump `-dbcache` default to 300MiB
...
Also cap the allocation for the leveldb-specific cache for the UTXO set
to 8MiB.
This avoids that the extra cache memory goes to the much less effective
leveldb cache instead of our application-level cache.
8 years ago
Suhas Daftuar
c1d61fbd08
Add warning if -blockminsize is used.
8 years ago
Suhas Daftuar
27362dda4d
Remove -blockminsize option
8 years ago
Pieter Wuille
1acf1db76f
Do not ask a UI question from bitcoind
8 years ago
Pieter Wuille
6032f6930a
Add rewind logic to deal with post-fork software updates
...
Includes logic for dealing with pruning by Suhas Daftuar.
9 years ago
Pieter Wuille
2b1f6f9ccf
BIP141: Other consensus critical limits, and BIP145
...
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
9 years ago
Pieter Wuille
b8a97498df
BIP144: Handshake and relay (receiver side)
...
Service bit logic by Nicolas Dorier.
Only download blocks from witness peers after fork.
9 years ago
MarcoFalke
fa58e5ee93
[doc] Add website links to about dialog
9 years ago
BtcDrak
ab8be98fdb
Remove bad chain alert partition check
...
As per meeting 2016-03-31
https://bitcoincore.org/en/meetings/2016/03/31/#bad-chain-alerts
The partition checker was producing huge number of false-positives
and was disabled in 0.12.1 on the understanding it would either be
fixed in 0.13 or removed entirely from master if not.
9 years ago
Pieter Wuille
ee06e04369
Introduce enum ServiceFlags for service flags
9 years ago
Wladimir J. van der Laan
d096d22446
build: Get rid of `CLIENT_DATE`
...
Putting the build date in the executable is a practice that has no place
in these days, now that deterministic building is increasingly common.
Continues #7732 which did this for the GUI.
9 years ago
MarcoFalke
fa51a1d2b7
[init] Make feefilter option debug option
9 years ago
Pieter Wuille
a886dbf8e7
Use std::atomic for fRequestShutdown and fReopenDebugLog
9 years ago
Pieter Wuille
fa2637a3be
Always require OS randomness when generating secret keys
9 years ago
Suhas Daftuar
bd477f4e8b
VerifyDB: don't check blocks that have been pruned
9 years ago
Patrick Strateman
46b0c3b688
Acquire lock to check for genesis block.
9 years ago
Pieter Wuille
d3d7547911
Add -reindex-chainstate that does not rebuild block index
9 years ago
Pieter Wuille
316623f2c1
Switch reindexing to AcceptBlock in-loop and ActivateBestChain afterwards
9 years ago