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
Cory Fields
d6a5dc4a2e
add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for tests
...
waitfornewblock waits until a new block is received, or the timeout expires, then
returns the current block height/hash.
waitforblock waits for a specific blockhash, or until the timeout expires, then
returns the current block height/hash. If the target blockhash is the current
tip, it will return immediately.
waitforblockheight waits until the tip has reached a certain height or higher,
then returns the current height and hash.
waitforblockheight is used to avoid polling in the rpc tests.
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
MarcoFalke
fa5d276c90
[init] ParameterInteraction() iff wallet enabled
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
9 years ago
Pieter Wuille
1acf1db76f
Do not ask a UI question from bitcoind
9 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
Wladimir J. van der Laan
581ddff05c
net: Add fRelayTxes flag
...
Add a fRelayTxes to keep track of the relay transaction flag
we send to other peers.
9 years ago
Wladimir J. van der Laan
3e2c946cfd
init: Move berkeleydb version reporting to wallet
...
Move the version reporting to Wallet::Verify, before starting
verification of the wallet.
This removes the dependency of init on a specific wallet database
library.
A further, trivial step towards resolving #7965 .
9 years ago
Chirag Davé
326231611b
fReopenDebugLog and fRequestShutdown should be type sig_atomic_t
...
This allows access as an atomic variable in the presence
of async interrupts.
See issue #7433 for more details
fixes : #7433
9 years ago