aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | remove external usage of mempool conflict trackingAlex Morcos2016-12-051-1/+1
| | | | |
* | | | | Remove mapOrphanTransactionsByPrev from DoS_testsPieter Wuille2016-12-051-2/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another violation of the one definition rule, as the type for mapOrphanTransactionsByPrev did not match the one in net_processing.cpp anymore. As it now depends on a custom Iterator, it seems too much hassle to correctly expose it to the tests. Instead, this commit just removes the one test it was referenced in.
* | | | Merge #9269: Align struct COrphan definitionWladimir J. van der Laan2016-12-051-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | 2efc438 Align struct COrphan definition (Pieter Wuille)
| * | | Align struct COrphan definitionPieter Wuille2016-12-051-0/+1
| | | |
* | | | Merge #9014: Fix block-connection performance regressionWladimir J. van der Laan2016-12-052-2/+4
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | dd0df81 Document ConnectBlock connectTrace postconditions (Matt Corallo) 2d6e561 Switch pblock in ProcessNewBlock to a shared_ptr (Matt Corallo) 2736c44 Make the optional pblock in ActivateBestChain a shared_ptr (Matt Corallo) ae4db44 Create a shared_ptr for the block we're connecting in ActivateBCS (Matt Corallo) fd9d890 Keep blocks as shared_ptrs, instead of copying txn in ConnectTip (Matt Corallo) 6fdd43b Add struct to track block-connect-time-generated info for callbacks (Matt Corallo)
| * | | Switch pblock in ProcessNewBlock to a shared_ptrMatt Corallo2016-12-042-2/+4
| |/ / | | | | | | | | | | | | This (finally) fixes a performance regression in b3b3c2a5623d5c942d2b3565cc2d833c65105555
* / / Make CTransaction actually immutablePieter Wuille2016-12-025-42/+38
|/ /
* | Merge #9260: Mrs Peacock in The Library with The Candlestick (killed ↵Pieter Wuille2016-12-0211-11/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | main.{h,cpp}) 76faa3c Rename the remaining main.{h,cpp} to validation.{h,cpp} (Matt Corallo) e736772 Move network-msg-processing code out of main to its own file (Matt Corallo) 87c35f5 Remove orphan state wipe from UnloadBlockIndex. (Matt Corallo)
| * | Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-0210-10/+10
| | |
| * | Move network-msg-processing code out of main to its own fileMatt Corallo2016-12-023-1/+3
| | |
* | | Merge #9223: unification of Bloom filter representationMarcoFalke2016-12-021-10/+10
|\ \ \ | | | | | | | | | | | | b7aa290 unification of Bloom filter representation (S. Matthew English)
| * | | unification of Bloom filter representationS. Matthew English2016-11-261-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Disable fee estimates for a confirm target of 1 blockAlex Morcos2016-11-291-7/+15
| |/ / |/| |
* | | Fix some typosfsb40002016-11-282-2/+2
|/ /
* | Merge #9128: net: Decouple CConnman and message serializationPieter Wuille2016-11-251-0/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | 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)
| * | net: add CVectorWriter and CNetMsgMakerCory Fields2016-11-251-0/+58
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge #9100: tx_valid: re-order inputs to how they are encodedMarcoFalke2016-11-251-9/+9
|\ \ \ | | | | | | | | | | | | 5262a15 tx_valid: re-order inputs to how they are encoded (Daniel Cousens)
| * | | tx_valid: re-order inputs to how they are encodedDaniel Cousens2016-11-081-9/+9
| | | |
* | | | Always add default_witness_commitment with GBT client supportPieter Wuille2016-11-211-0/+1
| |/ / |/| |
* | | Merge #8837: allow bitcoin-tx to parse partial transactionsWladimir J. van der Laan2016-11-211-0/+10
|\ \ \ | | | | | | | | | | | | 7451cf5 Allow bitcoin-tx to parse partial transactions (jnewbery)
| * | | Allow bitcoin-tx to parse partial transactionsjnewbery2016-11-041-0/+10
| | | | | | | | | | | | | | | | Restore pre V0.13.1 functionality to bitcoin-tx and allow it to parse 0-input partial transactions.
* | | | Introduce convenience type CTransactionRefPieter Wuille2016-11-197-24/+24
| | | |
* | | | Make CBlock::vtx a vector of shared_ptr<CTransaction>Pieter Wuille2016-11-198-62/+70
| | | |
* | | | Merge #9075: Decouple peer-processing-logic from block-connection-logic (#3)Pieter Wuille2016-11-172-5/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | ae22357 Replace CValidationState param in ProcessNewBlock with BlockChecked (Matt Corallo) 7c98ce5 Remove pfrom parameter from ProcessNewBlock (Matt Corallo) e2e069d Revert "RPC: Give more details when "generate" fails" (Matt Corallo)
| * | | | Replace CValidationState param in ProcessNewBlock with BlockCheckedMatt Corallo2016-11-092-5/+2
| | | | |
| * | | | Remove pfrom parameter from ProcessNewBlockMatt Corallo2016-11-092-2/+2
| | | | | | | | | | | | | | | | | | | | This further decouples ProcessNewBlock from networking/peer logic.
* | | | | Merge #8996: Network activity toggleJonas Schnelli2016-11-111-0/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | | RPC/Net: Use boolean consistently for networkactive, and remove from getinfoLuke Dashjr2016-10-241-6/+6
| | | | | |
| * | | | | Overhaul network activity toggleJonas Schnelli2016-10-241-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename RPC command "togglenetwork" to "setnetworkactive (true|false)" - Add simple test case - GUI toggle added to connections icon in statusbar
* | | | | | Merge #9039: Various serialization simplifcations and optimizationsWladimir J. van der Laan2016-11-096-34/+34
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | | Get rid of nType and nVersionPieter Wuille2016-11-076-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-071-4/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge #9095: test: Fix test_random includesJonas Schnelli2016-11-089-9/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | fa8278e test: Fix test_random includes (MarcoFalke)
| * | | | | test: Fix test_random includesMarcoFalke2016-11-079-9/+9
| |/ / / /
* | | | | Merge #9026: Fix handling of invalid compact blocksPieter Wuille2016-11-072-2/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | d4833ff Bump the protocol version to distinguish new banning behavior. (Suhas Daftuar) 88c3549 Fix compact block handling to not ban if block is invalid (Suhas Daftuar) c93beac [qa] Test that invalid compactblocks don't result in ban (Suhas Daftuar)
| * | | | Fix compact block handling to not ban if block is invalidSuhas Daftuar2016-11-032-2/+2
| | | | |
* | | | | Merge #8976: libconsensus: Add input validation of flagsWladimir J. van der Laan2016-11-071-5/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 5ca8ef2 libconsensus: Add input validation of flags (Wladimir J. van der Laan)
| * | | | | libconsensus: Add input validation of flagsWladimir J. van der Laan2016-10-201-5/+8
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes it an error to use flags that have not been defined on the libconsensus API. There has been some confusion as to what pass to libconsensus, and (combined with mention in the release notes) this should clear it up. Using undocumented flags is a risk because their meaning, and what combinations are allowed, changes from release to release. E.g. it is no longer possible to pass (CLEANSTACK | P2SH) without running into an assertion after the segwit changes.
* | | | | Merge #7730: Remove priority estimationWladimir J. van der Laan2016-11-071-39/+21
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0bd581a add release notes for removal of priority estimation (Alex Morcos) b2322e0 Remove priority estimation (Alex Morcos)
| * | | | | Remove priority estimationAlex Morcos2016-11-071-39/+21
| | |_|_|/ | |/| | |
* | | | | Merge #8675: Make copyright header lines uniformWladimir J. van der Laan2016-11-073-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 4b04e32 [copyright] copyright header style uniform (isle2983)
| * | | | | [copyright] copyright header style uniformisle29832016-11-063-3/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* | | | | Merge #8708: net: have CConnman handle message sendingWladimir J. van der Laan2016-11-072-5/+78
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9027680 net: handle version push in InitializeNode (Cory Fields) 7588b85 net: construct CNodeStates in place (Cory Fields) 440f1d3 net: remove now-unused ssSend and Fuzz (Cory Fields) 5c2169c drop the optimistic write counter hack (Cory Fields) ea33268 net: switch all callers to connman for pushing messages (Cory Fields) 3e32cd0 connman is in charge of pushing messages (Cory Fields) b98c14c serialization: teach serializers variadics (Cory Fields)
| * | | | | net: handle version push in InitializeNodeCory Fields2016-11-031-4/+4
| | | | | |
| * | | | | connman is in charge of pushing messagesCory Fields2016-11-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes here are dense and subtle, but hopefully all is more explicit than before. - CConnman is now in charge of sending data rather than the nodes themselves. This is necessary because many decisions need to be made with all nodes in mind, and a model that requires the nodes calling up to their manager quickly turns to spaghetti. - The per-node-serializer (ssSend) has been replaced with a (quasi-)const send-version. Since the send version for serialization can only change once per connection, we now explicitly tag messages with INIT_PROTO_VERSION if they are sent before the handshake. With this done, there's no need to lock for access to nSendVersion. Also, a new stream is used for each message, so there's no need to lock during the serialization process. - This takes care of accounting for optimistic sends, so the nOptimisticBytesWritten hack can be removed. - -dropmessagestest and -fuzzmessagestest have not been preserved, as I suspect they haven't been used in years.
| * | | | | serialization: teach serializers variadicsCory Fields2016-11-031-1/+70
| | |_|/ / | |/| | | | | | | | | | | | | Also add a variadic CDataStream ctor for ease-of-use.
* | | | | Merge #9070: Lockedpool fixesWladimir J. van der Laan2016-11-071-2/+12
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | b3ddc5e LockedPool: avoid quadratic-time allocation (Kaz Wesley) 0b59f80 LockedPool: fix explosion for illegal-sized alloc (Kaz Wesley) 21b8f3d LockedPool: test handling of invalid allocations (Kaz Wesley)
| * | | | LockedPool: avoid quadratic-time allocationKaz Wesley2016-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Use separate maps for used/free chunks to avoid linear scan through alloced chunks for each alloc.
| * | | | LockedPool: test handling of invalid allocationsKaz Wesley2016-11-021-0/+10
| | | | | | | | | | | | | | | | | | | | (Currently fails due to bug)
* | | | | Merge #9069: Clean up bctest.py and bitcoin-util-test.pyWladimir J. van der Laan2016-11-042-81/+101
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | 2b175d4 Clean up bctest.py and bitcoin-util-test.py (John Newbery)