aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-09-08net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::OptionsCory Fields
2016-09-08net: Introduce CConnection::Options to avoid passing so many paramsCory Fields
2016-09-08net: Drop StartNode/StopNode and use CConnman directlyCory Fields
2016-09-08net: pass CClientUIInterface into CConnmanCory Fields
2016-09-08net: Pass best block known height into CConnmanCory Fields
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.
2016-09-08net: move max/max-outbound to CConnmanCory Fields
2016-09-08net: move semOutbound to CConnmanCory Fields
2016-09-08net: move nLocalServices/nRelevantServices to CConnmanCory Fields
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).
2016-09-08net: move SendBufferSize/ReceiveFloodSize to CConnmanCory Fields
2016-09-08net: move send/recv statistics to CConnmanCory Fields
2016-09-08net: SocketSendData returns written sizeCory Fields
2016-09-08net: move messageHandlerCondition to CConnmanCory Fields
2016-09-08net: move nLocalHostNonce to CConnmanCory Fields
This behavior seems to have been quite racy and broken. Move nLocalHostNonce into CNode, and check received nonces against all non-fully-connected nodes. If there's a match, assume we've connected to ourself.
2016-09-08net: move nLastNodeId to CConnmanCory Fields
2016-09-08net: move whitelist functions into CConnmanCory Fields
2016-09-08net: create generic functor accessors and move vNodes to CConnmanCory Fields
2016-09-08net: Add most functions needed for vNodes to CConnmanCory Fields
2016-09-08net: move added node functions to CConnmanCory Fields
2016-09-08net: Add oneshot functions to CConnmanCory Fields
2016-09-08net: move ban and addrman functions into CConnmanCory Fields
2016-09-08net: handle nodesignals in CConnmanCory Fields
2016-09-08net: move OpenNetworkConnection into CConnmanCory Fields
2016-09-08net: Move socket binding into CConnmanCory Fields
2016-09-08net: Pass CConnection to wallet rather than using the globalCory Fields
2016-09-08net: Pass CConnman around as neededCory Fields
2016-09-08net: Add rpc error for missing/disabled p2p functionalityCory Fields
2016-09-08net: Create CConnman to encapsulate p2p connectionsCory Fields
2016-09-08net: move CBanDB and CAddrDB out of net.h/cppCory Fields
This will eventually solve a circular dependency
2016-09-08gui: add NodeID to the peer tableCory Fields
2016-09-08Merge #8671: Minimal fix to slow prevector tests as stopgap measureMarcoFalke
f71d4a3 Minimal fix to slow prevector tests as stopgap measure (Jeremy Rubin)
2016-09-07Performance Regression Fix: Pre-Allocate txChanged vectorJeremy Rubin
2016-09-07Merge #8673: Trivial: Fix obvious assignment/equality error in testMarcoFalke
426e7bc Fix obvious assignment/equality error in test (Jeremy Rubin)
2016-09-07add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for testsCory Fields
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.
2016-09-07[Qt][CoinControl] fix UI bug that could result in paying unexpected feeJonas Schnelli
2016-09-07Do not shadow upper local variable 'send', prevent -Wshadow compiler warning.Pavel Janík
2016-09-07Merge #8594: Do not add random inbound peers to addrman.Pieter Wuille
eb3596f Do not add random inbound peers to addrman. (Gregory Maxwell)
2016-09-07Merge #8606: Fix some locksPieter Wuille
144ed76 Fix some locks (Pieter Wuille)
2016-09-06qt: Adding transaction size to transaction details windowHampus Sjöberg
2016-09-06Adding method GetTotalSize() to CTransactionHampus Sjöberg
GetTotalSize() returns the total transaction size (including witness) in bytes.
2016-09-06Fix obvious assignment/equality error in testJeremy Rubin
2016-09-06Minimal fix to slow prevector tests as stopgap measureJeremy Rubin
2016-09-06Merge #8663: trivial: remove unnecessary variable fDaemonWladimir J. van der Laan
ff2ed7a trivial: remove unnecessary variable fDaemon (mruddy)
2016-09-05Do not store witness txn in rejection cachePieter Wuille
2016-09-05Merge #8651: Predeclare PrecomputedTransactionData as structPieter Wuille
4424af5 Predeclare PrecomputedTransactionData as sturct (Pieter Wuille)
2016-09-04Clear witness with vin/vout in CWallet::CreateTransaction()Suhas Daftuar
2016-09-04trivial: remove unnecessary variable fDaemonmruddy
2016-09-02Merge #8466: [Trivial] Do not shadow variables in networking codeWladimir J. van der Laan
b7c349d Do not shadow variables in networking code (Pavel Janík)
2016-09-02Merge #8449: [Trivial] Do not shadow local variable, cleanupWladimir J. van der Laan
a159f25 Remove redundand (and shadowing) declaration (Pavel Janík) cce3024 Do not shadow local variable, cleanup (Pavel Janík)
2016-09-02Predeclare PrecomputedTransactionData as sturctPieter Wuille
2016-09-02Merge #8629: C++11: s/boost::scoped_ptr/std::unique_ptr/Wladimir J. van der Laan
cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)