aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [qt] Make network disabled icon 50% opaqueMarcoFalke2016-11-137-34/+15
|
* Merge #9124: Use better name for local variable to prevent -Wshadow compiler ↵Wladimir J. van der Laan2016-11-111-2/+2
|\ | | | | | | | | | | warning bf49f10 Use better name for local variable to prevent -Wshadow compiler warning (Pavel Janík)
| * Use better name for local variable to prevent -Wshadow compiler warningPavel Janík2016-11-101-2/+2
| |
* | Merge #9115: Mention reporting security issues responsiblyWladimir J. van der Laan2016-11-111-0/+2
|\ \ | | | | | | | | | 7d1de30 Mention reporting security issues responsibly (Pavel Janík)
| * | Mention reporting security issues responsiblyPavel Janík2016-11-101-0/+2
| | |
* | | Merge #8996: Network activity toggleJonas Schnelli2016-11-1117-13/+285
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 19f46f1 Qt: New network_disabled icon (Luke Dashjr) 54cf997 RPC/Net: Use boolean consistently for networkactive, and remove from getinfo (Luke Dashjr) b2b33d9 Overhaul network activity toggle (Jonas Schnelli) 32efa79 Qt: Add GUI feedback and control of network activity state. (Jon Lund Steffensen) e38993b RPC: Add "togglenetwork" method to toggle network activity temporarily (Jon Lund Steffensen) 7c9a98a Allow network activity to be temporarily suspended. (Jon Lund Steffensen)
| * | | Qt: New network_disabled iconLuke Dashjr2016-10-243-1/+71
| | | |
| * | | RPC/Net: Use boolean consistently for networkactive, and remove from getinfoLuke Dashjr2016-10-243-13/+11
| | | |
| * | | Overhaul network activity toggleJonas Schnelli2016-10-249-14/+75
| | | | | | | | | | | | | | | | | | | | | | | | - Rename RPC command "togglenetwork" to "setnetworkactive (true|false)" - Add simple test case - GUI toggle added to connections icon in statusbar
| * | | Qt: Add GUI feedback and control of network activity state.Jon Lund Steffensen2016-10-248-7/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add getNetworkActive()/setNetworkActive() method to client model. Send network active status through NotifyNetworkActiveChanged. Indicate in tool tip of gui status bar network indicator whether network activity is disabled. Indicate in debug window whether network activity is disabled and add button to allow user to toggle network activity state.
| * | | RPC: Add "togglenetwork" method to toggle network activity temporarilyJon Lund Steffensen2016-10-243-1/+23
| | | | | | | | | | | | | | | | | | | | RPC command "togglenetwork" toggles network and returns new state after command. RPC command "getinfo" returns "networkactive" field in output.
| * | | Allow network activity to be temporarily suspended.Jon Lund Steffensen2016-10-242-0/+31
| | | | | | | | | | | | | | | | Added the function SetNetworkActive() which when called with argument set to false disconnects all nodes and sets the flag fNetworkActive to false. As long as this flag is false no new connections are attempted and no incoming connections are accepted. Network activity is reenabled by calling the function with argument true.
* | | | Merge #9058: Fixes for p2p-compactblocks.py test timeouts on travis (#8842)Wladimir J. van der Laan2016-11-112-5/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | dac53b5 Modify getblocktxn handler not to drop requests for old blocks (Russell Yanofsky) 55bfddc [qa] Fix stale data bug in test_compactblocks_not_at_tip (Russell Yanofsky) 47e9659 [qa] Fix bug in compactblocks v2 merge (Russell Yanofsky)
| * | | | Modify getblocktxn handler not to drop requests for old blocksRussell Yanofsky2016-11-072-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current getblocktxn implementation drops and ignores requests for old blocks, which causes occasional sync_block timeouts during the p2p-compactblocks.py test as reported in https://github.com/bitcoin/bitcoin/issues/8842. The p2p-compactblocks.py test setup creates many new blocks in a short period of time, which can lead to getblocktxn requests for blocks below the hardcoded depth limit of 10 blocks. This commit changes the getblocktxn handler not to ignore these requests, so the peer nodes in the test setup will reliably be able to sync. The protocol change is documented in BIP-152 update "Allow block responses to getblocktxn requests" at https://github.com/bitcoin/bips/pull/469. The protocol change is not expected to affect nodes running outside the test environment, because there shouldn't normally be lots of new blocks being rapidly added that need to be synced.
| * | | | [qa] Fix stale data bug in test_compactblocks_not_at_tipRussell Yanofsky2016-11-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clear test_node.last_block before requesting blocks in the compactblocks_not_at_tip test so comparisons won't fail if a blocks were received before the test started. The bug doesn't currently cause any problems due to the order tests run, but this will change in the next commit.
| * | | | [qa] Fix bug in compactblocks v2 mergeRussell Yanofsky2016-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug caused the wait_for_block_announcement to be called on the wrong node, leading to nondeterminism and occasional test failures. Bug was introduced in merge commit: d075479 Merge #8882: [qa] Fix race conditions in p2p-compactblocks.py and sendheaders.py Underlying commits which conflicted were: 27acfc1 [qa] Update p2p-compactblocks.py for compactblocks v2 6976db2 [qa] Another attempt to fix race condition in p2p-compactblocks.py The first commit changed the test_compactblock_construction function signature and second commit added code which wasn't updated during the merge to use the new arguments. Suhas Daftuar <[email protected]> noticed the bug and suggested the fix.
* | | | | Merge #9112: Avoid ugly exception in log on unknown inv typeWladimir J. van der Laan2016-11-111-1/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | e9f25dd Avoid ugly exception in log on unknown inv type (Wladimir J. van der Laan)
| * | | | | Avoid ugly exception in log on unknown inv typeWladimir J. van der Laan2016-11-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is unexpected behavior for `ToString` to raise an exception. It is expected to do a best-effort attempt at formatting but never fail. Catch the exception and simply print unknown inv types as hexadecimal. Fixes #9110.
* | | | | | Merge #9114: [depends] Set OSX_MIN_VERSION to 10.8Wladimir J. van der Laan2016-11-111-1/+1
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | 617c96d [depends] Set OSX_MIN_VERSION to 10.8 (fanquake)
| * | | | | [depends] Set OSX_MIN_VERSION to 10.8fanquake2016-11-091-1/+1
| | | | | |
* | | | | | Merge #9049: Remove duplicatable duplicate-input check from CheckTransactionWladimir J. van der Laan2016-11-105-11/+82
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | e2b3fb3 Optimize vInOutPoints insertion a bit (Matt Corallo) eecffe5 Remove redundant duplicate-input check from CheckTransaction (Matt Corallo) b2e178a Add deserialize + CheckBlock benchmarks, and a full block hex (Matt Corallo)
| * | | | | Optimize vInOutPoints insertion a bitMatt Corallo2016-11-091-2/+1
| | | | | |
| * | | | | Remove redundant duplicate-input check from CheckTransactionMatt Corallo2016-11-092-10/+12
| | | | | |
| * | | | | Add deserialize + CheckBlock benchmarks, and a full block hexMatt Corallo2016-11-093-1/+71
| |/ / / /
* | | | | Merge #9097: [qa] Rework sync_* and preciousblock.pyMarcoFalke2016-11-103-49/+54
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | fa97ccb [qa] util: Rework sync_*() (MarcoFalke) fac1141 [qa] preciousblock: Use assert_equal and BitcoinTestFramework.__init__ (MarcoFalke)
| * | | | | [qa] util: Rework sync_*()MarcoFalke2016-11-072-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Only allow named args in sync_*() * Make sync_* fails more verbose * Add timeout to sync_chain()
| * | | | | [qa] preciousblock: Use assert_equal and BitcoinTestFramework.__init__MarcoFalke2016-11-071-31/+34
| | | | | |
* | | | | | Merge #9122: fix getnettotals RPC description about timemillis.MarcoFalke2016-11-101-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | a79f864 fix getnettotals RPC description about timemillis. (Masahiko Hyuga)
| * | | | | | fix getnettotals RPC description about timemillis.Masahiko Hyuga2016-11-101-1/+1
| | | | | | |
* | | | | | | Merge #9121: Initialize variable to prevent compiler warningWladimir J. van der Laan2016-11-101-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bdcba6d Initialize variable to prevent compiler warning (Pavel Janík)
| * | | | | | | Initialize variable to prevent compiler warningPavel Janík2016-11-101-1/+1
| |/ / / / / /
* | | | | | | Merge #9120: bug: Missed one "return false" in recent refactoring in #9067Wladimir J. van der Laan2016-11-101-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | 45d372f Missed one "return false" in recent refactoring in #9067 (UdjinM6)
| * | | | | | Missed one "return false" in recent refactoring in #9067UdjinM62016-11-101-1/+1
| | |/ / / / | |/| | | |
* | | | | | Merge #8894: [Testing] Include fRelay in mininode version messagesWladimir J. van der Laan2016-11-091-6/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | e5d682f Fix mininode version message format (jnewbery)
| * | | | | | Fix mininode version message formatjnewbery2016-11-091-6/+20
| | | | | | |
* | | | | | | Merge #9111: Remove unused variable UNLIKELY_PCT from fees.hWladimir J. van der Laan2016-11-091-1/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | d8edf03 Remove unused var UNLIKELY_PCT from fees.h (fanquake)
| * | | | | | | Remove unused var UNLIKELY_PCT from fees.hfanquake2016-11-091-1/+0
| | |/ / / / / | |/| | | | |
* | | | | | | Revert "Check and enable -Wshadow by default."Wladimir J. van der Laan2016-11-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit fd5654cab1e5d317119f747abd245c620e8ba29b. This is still causing too many warnings for some compiler combinations, forget it for now.
* | | | | | | Merge #8794: Enable -Wshadow by defaultWladimir J. van der Laan2016-11-092-0/+27
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 359bac7 Add notes about variable names and shadowing (Pavel Janík) fd5654c Check and enable -Wshadow by default. (Pavel Janík)
| * | | | | | | Add notes about variable names and shadowingPavel Janík2016-11-091-0/+26
| | | | | | | |
| * | | | | | | Check and enable -Wshadow by default.Pavel Janík2016-09-221-0/+1
| | | | | | | |
* | | | | | | | Merge #9039: Various serialization simplifcations and optimizationsWladimir J. van der Laan2016-11-0939-543/+409
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d59a518 Use fixed preallocation instead of costly GetSerializeSize (Pieter Wuille) 25a211a Add optimized CSizeComputer serializers (Pieter Wuille) a2929a2 Make CSerAction's ForRead() constexpr (Pieter Wuille) a603925 Avoid -Wshadow errors (Pieter Wuille) 5284721 Get rid of nType and nVersion (Pieter Wuille) 657e05a Make GetSerializeSize a wrapper on top of CSizeComputer (Pieter Wuille) fad9b66 Make nType and nVersion private and sometimes const (Pieter Wuille) c2c5d42 Make streams' read and write return void (Pieter Wuille) 50e8a9c Remove unused ReadVersion and WriteVersion (Pieter Wuille)
| * | | | | | | Use fixed preallocation instead of costly GetSerializeSizePieter Wuille2016-11-071-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dbwrapper used GetSerializeSize() to compute the size of the buffer to preallocate. For some cases (specifically: CCoins) this requires a costly compression call. Avoid this by just using fixed size preallocations instead.
| * | | | | | | Add optimized CSizeComputer serializersPieter Wuille2016-11-072-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To get the advantages of faster GetSerializeSize() implementations back that were removed in "Make GetSerializeSize a wrapper on top of CSizeComputer", reintroduce them in the few places in the form of a specialized Serialize() implementation. This actually gets us in a better state than before, as these even get used when they're invoked indirectly in the serialization of another object.
| * | | | | | | Make CSerAction's ForRead() constexprPieter Wuille2016-11-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CSerAction's ForRead() method does not depend on any runtime data, so guarantee that requests to it can be optimized out by making it constexpr. Suggested by Cory Fields.
| * | | | | | | Avoid -Wshadow errorsPieter Wuille2016-11-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Pavel Janik.
| * | | | | | | Get rid of nType and nVersionPieter Wuille2016-11-0736-280/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the nType and nVersion as parameters to all serialization methods and functions. There is only one place where it's read and has an impact (in CAddress), and even there it does not impact any of the recursively invoked serializers. Instead, the few places that need nType or nVersion are changed to read it directly from the stream object, through GetType() and GetVersion() methods which are added to all stream classes.
| * | | | | | | Make GetSerializeSize a wrapper on top of CSizeComputerPieter Wuille2016-11-0714-210/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given that in default GetSerializeSize implementations created by ADD_SERIALIZE_METHODS we're already using CSizeComputer(), get rid of the specialized GetSerializeSize methods everywhere, and just use CSizeComputer. This removes a lot of code which isn't actually used anywhere. For CCompactSize and CVarInt this actually removes a more efficient size computing algorithm, which is brought back in a later commit.
| * | | | | | | Make nType and nVersion private and sometimes constPieter Wuille2016-11-074-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the various stream implementations' nType and nVersion private and const (except in CDataStream where we really need a setter).
| * | | | | | | Make streams' read and write return voidPieter Wuille2016-11-074-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The stream implementations had two cascading layers (the upper one with operator<< and operator>>, and a lower one with read and write). The lower layer's functions are never cascaded (nor should they, as they should only be used from the higher layer), so make them return void instead.