aboutsummaryrefslogtreecommitdiff
path: root/src/blockencodings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* Fix typospracticalswift2017-07-151-1/+1
|
* Remove confusing MAX_BLOCK_BASE_SIZE.Gregory Maxwell2017-07-141-3/+1
| | | | | | | | | | | | | | | | | | Some people keep thinking that MAX_BLOCK_BASE_SIZE is a separate size limit from the weight limit when it fact it is superfluous, and used in early tests before the witness data has been validated or just to compute worst case sizes. The size checks that use it would not behave any differently consensus wise if they were eliminated completely. Its correct value is not independently settable but is a function of the weight limit and weight formula. This patch just eliminates it and uses the scale factor as required to compute the worse case constants. It also moves the weight factor out of primitives into consensus, which is a more logical place for it.
* Simplify "bool x = y ? true : false" to "bool x = y"practicalswift2017-06-111-1/+1
|
* Change LogAcceptCategory to use uint32_t rather than sets of strings.Gregory Maxwell2017-04-011-4/+5
| | | | | | | | | | | | | | | | | This changes the logging categories to boolean flags instead of strings. This simplifies the acceptance testing by avoiding accessing a scoped static thread local pointer to a thread local set of strings. It eliminates the only use of boost::thread_specific_ptr outside of lockorder debugging. This change allows log entries to be directed to multiple categories and makes it easy to change the logging flags at runtime (e.g. via an RPC, though that isn't done by this commit.) It also eliminates the fDebug global. Configuration of unknown logging categories now produces a warning.
* [trivial] Fix typos in commentspracticalswift2017-03-211-1/+1
|
* Clarify comment about mempool/extra conflictsMatt Corallo2017-01-161-1/+2
|
* Make PartiallyDownloadedBlock::InitData's second param constMatt Corallo2017-01-121-1/+1
|
* Add extra_count lower bound to compact reconstruction debug printMatt Corallo2017-01-121-1/+3
|
* Use replaced transactions in compact block reconstructionMatt Corallo2017-01-101-1/+31
|
* Make FillBlock consume txn_available to avoid shared_ptr copiesPieter Wuille2016-12-211-4/+10
|
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* Fix some typosfsb40002016-11-281-1/+1
|
* Introduce convenience type CTransactionRefPieter Wuille2016-11-191-1/+1
|
* Make CBlock::vtx a vector of shared_ptr<CTransaction>Pieter Wuille2016-11-191-7/+7
|
* Merge #9039: Various serialization simplifcations and optimizationsWladimir J. van der Laan2016-11-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | 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)
| * Make GetSerializeSize a wrapper on top of CSizeComputerPieter Wuille2016-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix compact block handling to not ban if block is invalidSuhas Daftuar2016-11-031-1/+1
|/
* Use cmpctblock type 2 for segwit-enabled transferPieter Wuille2016-10-041-2/+2
| | | | | Contains version negotiation logic by Matt Corallo and bugfixes by Suhas Daftuar.
* various typosleijurv2016-08-141-1/+1
|
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-2/+2
| | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* Elaborate bucket size mathPieter Wuille2016-06-191-4/+10
|
* Use vTxHashes to optimize InitData significantlyMatt Corallo2016-06-191-3/+5
|
* Add reconstruction debug loggingMatt Corallo2016-06-191-1/+15
|
* Add partial-block block encodings APIMatt Corallo2016-06-191-0/+158