Cory Fields
502dd3a8a0
net: Add oneshot functions to CConnman
8 years ago
Cory Fields
a0f3d3cdad
net: move ban and addrman functions into CConnman
8 years ago
Cory Fields
aaf018e3b7
net: handle nodesignals in CConnman
8 years ago
Cory Fields
b1a5f43208
net: move OpenNetworkConnection into CConnman
8 years ago
Cory Fields
02137f11e2
net: Move socket binding into CConnman
8 years ago
Cory Fields
5b446dd5b1
net: Pass CConnection to wallet rather than using the global
8 years ago
Cory Fields
8d58c4d81f
net: Pass CConnman around as needed
8 years ago
Cory Fields
d7349ca50d
net: Add rpc error for missing/disabled p2p functionality
8 years ago
Cory Fields
cd16f48028
net: Create CConnman to encapsulate p2p connections
8 years ago
Cory Fields
d93b14dc5d
net: move CBanDB and CAddrDB out of net.h/cpp
...
This will eventually solve a circular dependency
8 years ago
Cory Fields
531214fb10
gui: add NodeID to the peer table
8 years ago
Jeremy Rubin
426e7bce0e
Fix obvious assignment/equality error in test
8 years ago
Jeremy Rubin
f71d4a3786
Minimal fix to slow prevector tests as stopgap measure
8 years ago
mruddy
ff2ed7a5bc
trivial: remove unnecessary variable fDaemon
8 years ago
Pieter Wuille
4424af5190
Predeclare PrecomputedTransactionData as sturct
8 years ago
Jorge Timón
cdd79eb70f
C++11: s/boost::scoped_ptr/std::unique_ptr/
8 years ago
Pieter Wuille
854f1af22e
Make the dummy argument to getaddednodeinfo optional
8 years ago
djpnewton
f012a857f5
rest.cpp: change HTTP_INTERNAL_SERVER_ERROR to HTTP_BAD_REQUEST
8 years ago
Pavel Janík
b175cb755b
Do not shadow variables.
8 years ago
Alexey Vesnin
323a5fe06a
Berkeley DB v6 compatibility fix
...
Fixes building error looking like this:
CXX wallet/libbitcoin_wallet_a-db.o
wallet/db.cpp: In member function ‘void CDBEnv::EnvShutdown()’:
wallet/db.cpp:46:16: error: call of overloaded ‘DbEnv(int)’ is ambiguous
DbEnv(0).remove(strPath.c_str(), 0);
^
wallet/db.cpp:46:16: note: candidates are:
In file included from wallet/db.h:21:0,
from wallet/db.cpp:6:
/usr/include/db_cxx.h:916:2: note: DbEnv::DbEnv(const DbEnv&)
DbEnv(const DbEnv &);
^
/usr/include/db_cxx.h:518:2: note: DbEnv::DbEnv(DB_ENV)
DbEnv(DB_ENV *dbenv);
^
/usr/include/db_cxx.h:516:2: note: DbEnv::DbEnv(u_int32_t)
DbEnv(u_int32_t flags);
^
Makefile:5780: recipe for target 'wallet/libbitcoin_wallet_a-db.o' failed
make[2]: ** [wallet/libbitcoin_wallet_a-db.o] Error 1
8 years ago
Pieter Wuille
203f2121be
Reduce default number of blocks to check at startup
8 years ago
Pieter Wuille
887919c7b7
Check for compatibility with download in FindNextBlocksToDownload
8 years ago
Pieter Wuille
144ed76ea0
Fix some locks
...
This makes sure that cs_filter is never held while taking cs_main
or CNode::cs_vSend.
8 years ago
Pieter Wuille
35fe0393f2
Rename to PrecomputedTransactionData
8 years ago
Gregory Maxwell
eb3596f7c2
Do not add random inbound peers to addrman.
...
We should learn about new peers via address messages.
An inbound peer connecting to us tells us nothing about
its ability to accept incoming connections from us, so
we shouldn't assume that we can connect to it based on
this.
The vast majority of nodes on the network do not accept
incoming connections, adding them will only slow down
the process of making a successful connection in the
future.
Nodes which have configured themselves to not announce would prefer we
not violate their privacy by announcing them in GETADDR responses.
8 years ago
Pavel Janík
de1bbe3b78
Do not shadow global RPC table variable (tableRPC)
8 years ago
MarcoFalke
fa6dc9f0e5
Remove unused variables
8 years ago
R E Broadley
4c3e2cb2df
Show XTHIN in GUI
8 years ago
MarcoFalke
fa1cf9e7b8
[test] Remove unused code
8 years ago
MarcoFalke
fab5ecb771
[wallet] rpc: Drop misleading option
8 years ago
Andrew Chow
57acb82e70
Load choose datadir dialog after options reset
8 years ago
MarcoFalke
fa8dd785a2
[qt] Remove Priority from coincontrol dialog
8 years ago
Jonas Schnelli
40a95cfd8f
Set jonasschnellis dns-seeder filter flag
8 years ago
Ethan Heilman
dbb1f640e6
Added feeler connections increasing good addrs in the tried table.
...
Tests if addresses are online or offline by briefly connecting to them. These short lived connections are referred to as feeler connections. Feeler connections are designed to increase the number of fresh online addresses in tried by selecting and connecting to addresses in new. One feeler connection is attempted on average once every two minutes.
This change was suggested as Countermeasure 4 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.
8 years ago
Jonas Schnelli
beef966e36
[Wallet] remove unused code/conditions in ReadAtCursor
8 years ago
R E Broadley
259ee09f88
Show "end" instead of many zeros when getheaders request received with a hashStop of Null.
8 years ago
Christian Barcenas
7bd5ff4623
Trivial: Fix two VarInt examples in serialize.h
8 years ago
MarcoFalke
fa27c0a2c4
[doc] Fix typos in comments, doxygen: Fix comment syntax
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
Wladimir J. van der Laan
653bb3d640
Add copyright header to wallet_text_fixture.cpp
...
I created the file but forgot to add this header.
8 years ago
Patrick Strateman
8680d3aa80
Move wallet initialization logic from AppInit2 to CWallet::InitLoadWallet
8 years ago
Daniel Kraft
4207630f5a
trivial: remove unused variable
...
Remove the unused variable "blockTmp" in CMerkleTx::SetMerkleBranch. It
was previously used to read the block from disk if not provided as
argument, but is no longer needed.
8 years ago
MarcoFalke
fa785d1211
Use __func__ to get function name for output printing
8 years ago
Jonas Schnelli
7e5d94df1f
[Wallet] Trivial cleanup of HD wallet changes
8 years ago
Jonas Schnelli
914154f0cc
[Qt] add HD enabled/disabled icon to the status bar
8 years ago
Wladimir J. van der Laan
b4a9aa511c
qt: Fix random segfault when closing "Choose data directory" dialog
...
The `pickDataDirectory()` function was calling `exit(0)` to quit
the application when the user closes the dialog without choosing
a data directory.
This is a bad idea because a background thread is created (to
check free space on the drive of the currently selected datadir).
The thread is not stopped and unwound properly, resulting in a potential
race condition somewhere deep in Qt.
So replace the `exit()` by a boolean return value, and let the
stack unwind normally.
8 years ago
crowning-
fab2e26d20
CDB: fix debug output
...
It doesn't really help to clear a variable before printing it to the debug log.
8 years ago
Patrick Strateman
e86eb71604
Move CWallet::setKeyPool to private section of CWallet
8 years ago
Nicolas DORIER
ab48c5e721
Unit test for sighash caching
8 years ago
Pieter Wuille
d2c5d044d0
Precompute sighashes
...
Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
8 years ago