aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-30Improvement of documentation of command line parameter 'whitelist'wodry
2016-11-30[qa] Dump debug logs on travis failures.Suhas Daftuar
2016-11-30Merge #9234: torcontrol: Explicitly request RSA1024 private keyWladimir J. van der Laan
7d3b627 torcontrol: Explicitly request RSA1024 private key (Wladimir J. van der Laan)
2016-11-30Trivial refactor: Remove extern keyword from function declarations, as they ↵Karl-Johan Alm
are extern by default.
2016-11-29Make GUI incapable of setting tx confirm target of 1Alex Morcos
2016-11-29Disable fee estimates for a confirm target of 1 blockAlex Morcos
2016-11-29init: Get rid of fServer flagWladimir J. van der Laan
There is no need to store this flag globally, the variable is only used inside the initialization process. Thanks to Alex Morcos for the idea.
2016-11-29init: Try to aquire datadir lock before and after daemonizationWladimir J. van der Laan
Before daemonization, just probe the data directory lock and print an early error message if possible. After daemonization get the data directory lock again and hold on to it until exit This creates a slight window for a race condition to happen, however this condition is harmless: it will at most make us exit without printing a message to console. $ src/bitcoind -testnet -daemon Bitcoin server starting $ src/bitcoind -testnet -daemon Error: Cannot obtain a lock on data directory /home/orion/.bitcoin/testnet3. Bitcoin Core is probably already running.
2016-11-29init: Split up AppInit2 into multiple phasesWladimir J. van der Laan
This allows doing some of the steps before e.g. daemonization and some fater.
2016-11-29Merge #9202: bench: Add support for measuring CPU cyclesWladimir J. van der Laan
3532818 bench: Add support for measuring CPU cycles (Wladimir J. van der Laan)
2016-11-29Merge #9225: Fix some benign racesWladimir J. van der Laan
dfed983 Fix unlocked access to vNodes.size() (Matt Corallo) 3033522 Remove double brackets in addrman (Matt Corallo) dbfaade Fix AddrMan locking (Matt Corallo) 047ea10 Make fImporting an std::atomic (Matt Corallo) 42071ca Make fDisconnect an std::atomic (Matt Corallo)
2016-11-29Merge #9224: Prevent FD_SETSIZE error building on OpenBSDWladimir J. van der Laan
498a1d7 Include select.h when WIN32 is not defined (Ivo van der Sangen)
2016-11-29Include select.h when WIN32 is not definedIvo van der Sangen
2016-11-29Merge #9233: Fix some typosMarcoFalke
15fa95d Fix some typos (fsb4000)
2016-11-28torcontrol: Explicitly request RSA1024 private keyWladimir J. van der Laan
When generating a new service key, explicitly request a RSA1024 one. The bitcoin P2P protocol has no support for the longer hidden service names that will come with ed25519 keys, until it does, we depend on the old hidden service type so make this explicit. See #9214.
2016-11-28Fix some typosfsb4000
2016-11-27Make fStartedNewLine an std::atomic_boolMatt Corallo
While this doesnt really fix the race of adding timestamps mid-logical-line, it avoids the undefined behavior of using a bool in multiple threads.
2016-11-27Fix race when accessing std::locale::classic()Matt Corallo
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78552
2016-11-27Merge #9219: doc: Improve windows build instructions using Linux subsystemMarcoFalke
dd34570 doc: Improve windows build instructions using Linux subsystem (Wladimir J. van der Laan)
2016-11-27Remove pnodeLocalHost.Gregory Maxwell
Mostly a legacy of the long removed pub/sub system.
2016-11-27Remove fNetworkNode.Gregory Maxwell
Matt pointed out to me that this appeared to be doing nothing (except involving itself in data races).
2016-11-26Fix unlocked access to vNodes.size()Matt Corallo
2016-11-26Remove double brackets in addrmanMatt Corallo
2016-11-26Fix AddrMan lockingMatt Corallo
2016-11-26Make fImporting an std::atomicMatt Corallo
2016-11-26unification of Bloom filter representationS. Matthew English
Output instances of "BloomFilter" changed to "Bloom filter", in accordance with Wikipedia standard notation: https://en.wikipedia.org/wiki/Bloom_filter also to sync with the majority of cases in the self-same file
2016-11-25Make fDisconnect an std::atomicMatt Corallo
2016-11-25Merge #9128: net: Decouple CConnman and message serializationPieter Wuille
c7be56d net: push only raw data into CConnman (Cory Fields) 2ec935d net: add CVectorWriter and CNetMsgMaker (Cory Fields) b7695c2 net: No need to check individually for disconnection anymore (Cory Fields) fedea8a net: don't send any messages before handshake or after requested disconnect (Cory Fields) d74e352 net: Set feelers to disconnect at the end of the version message (Cory Fields)
2016-11-25net: push only raw data into CConnmanCory Fields
This fixes one of the last major layer violations in the networking stack. The network side is no longer in charge of message serialization, so it is now decoupled from Bitcoin structures. Only the header is serialized and attached to the payload.
2016-11-25net: add CVectorWriter and CNetMsgMakerCory Fields
CVectorWriter is useful for overwriting or appending an existing byte vector. CNetMsgMaker is a shortcut for creating messages on-the-fly which are suitable for pushing to CConnman.
2016-11-25net: No need to check individually for disconnection anymoreCory Fields
2016-11-25Merge #9220: Refactor: Stop using namespace std (bitcoin-cli/-tx).MarcoFalke
2f2625a Removed using namespace std from bitcoin-cli/-tx and added std:: in appropriate places. (Karl-Johan Alm)
2016-11-25Merge #9100: tx_valid: re-order inputs to how they are encodedMarcoFalke
5262a15 tx_valid: re-order inputs to how they are encoded (Daniel Cousens)
2016-11-25doc: Improve windows build instructions using Linux subsystemWladimir J. van der Laan
I did a build on a windows 10 laptop and took notes, and tried to improve the document: - It's the Linux subsystem for Windows, not the other way around. - Split out dependencies: general ones, 64-bit, 32-bit. Remove the reference to `build-unix.md`, easy enough to be self-contained. - Place 64-bit instructions first. 99% will want these. - Installation instructions: recommend using `/` for prefix, same as we do on gitian builds. This will allow copying the files to a usable (from Windows) place using just `make DESTDIR=...`. - Remove double spaces / consistent width reformatting.
2016-11-25Removed using namespace std from bitcoin-cli/-tx and added std:: in ↵Karl-Johan Alm
appropriate places.
2016-11-25Merge #9189: Always add default_witness_commitment with GBT client supportWladimir J. van der Laan
95f4a03 [qa] Test getblocktemplate default_witness_commitment (Suhas Daftuar) ad04d1c Always add default_witness_commitment with GBT client support (Pieter Wuille)
2016-11-24qt: Show progress overlay when clicking spinner iconWladimir J. van der Laan
Bring up the modal progress overlay when the user clicks the spinner icon in the task bar. I think this is the intuitive thing to do when that icon is clicked.
2016-11-24qt: Replace NetworkToggleStatusBarControl with generic ClickableLabelWladimir J. van der Laan
Generalize the clickable label functionality. We will use this to add similar functionality to the sync icon.
2016-11-24Merge #9216: Doc: Fix copypasted commentMarcoFalke
f26da35 Fix copypasted comment. (Pavel Janík)
2016-11-24Merge #9144: [Trivial] Correct waitforblockheight example help textMarcoFalke
e3c4f7e Correct help output for waitfor RPC commands (fanquake)
2016-11-24Correct help output for waitfor RPC commandsfanquake
2016-11-24Merge #9190: qt: Plug many memory leaksWladimir J. van der Laan
ed998ea qt: Avoid OpenSSL certstore-related memory leak (Wladimir J. van der Laan) 5204598 qt: Avoid shutdownwindow-related memory leak (Wladimir J. van der Laan) e4f126a qt: Avoid splash-screen related memory leak (Wladimir J. van der Laan) 693384e qt: Prevent thread/memory leak on exiting RPCConsole (Wladimir J. van der Laan) 47db075 qt: Plug many memory leaks (Wladimir J. van der Laan)
2016-11-24Fix copypasted comment.Pavel Janík
2016-11-23net: don't send any messages before handshake or after requested disconnectCory Fields
Also, send reject messages earlier in SendMessages(), so that disconnections are processed earlier. These changes combined should ensure that no message is ever sent after fDisconnect is set.
2016-11-23net: Set feelers to disconnect at the end of the version messageCory Fields
This way we're not relying on messages going out after fDisconnect has been set. This should not cause any real behavioral changes, though feelers should arguably disconnect earlier in the process. That can be addressed in a later functional change.
2016-11-23Split ::HEADERS processing into two separate cs_main locksMatt Corallo
This will allow NotifyHeaderTip to be called from an AcceptBlockHeader wrapper function without holding cs_main.
2016-11-23Expose AcceptBlockHeader through main.hMatt Corallo
2016-11-23Merge #8930: Move orphan processing to ActivateBestChainPieter Wuille
d2b88f9 Move orphan-conflict removal from main logic into a callback (Matt Corallo) 97e2802 Erase orphans per-transaction instead of per-block (Matt Corallo) ec4525c Move orphan processing to ActivateBestChain (Matt Corallo)
2016-11-23Merge #9199: Always drop the least preferred HB peer when adding a new one.Pieter Wuille
ca8549d Always drop the least preferred HB peer when adding a new one. (Gregory Maxwell)
2016-11-23Move orphan-conflict removal from main logic into a callbackMatt Corallo
This makes the orphan map a part of net-processing logic instead of main logic.