Commit Graph

8 Commits

Author SHA1 Message Date
UdjinM6
15501fd0d4
Use DEBUG_CORE instead of a more generic DEBUG when compiling with --enable-debug (#4728)
`DEBUG` is unreliable because of bls/relic internals it seems
2022-03-15 00:40:40 +03:00
Kittywhiskers Van Gogh
56f1b2d01c Partial #19326: Simplify hash.h interface using Spans 2021-05-20 10:15:17 +05:30
Kittywhiskers Van Gogh
5667698546 Merge #19387: span: update constructors to match c++20 draft spec and add lifetimebound attribute
62733fee87
1d58cc7cb0
e3e7446305
2021-04-23 20:02:41 +05:30
Kittywhiskers Van Gogh
ec2eec0ccd Partial #18468: Span improvements
1f790a1147
bb3d38fc06
ab303a16d1
26acc8dd9b
2021-04-23 20:02:41 +05:30
Kittywhiskers Van Gogh
9304ba296f Merge #18388: Make VerifyWitnessProgram use a Span stack
2b0fcff7f2
2021-04-23 20:02:38 +05:30
Kittywhiskers Van Gogh
de0af7b7b3 Merge #18591: Add C++17 build to Travis
7cbfebbf3d
0fbde488b2
7829685e27
2021-04-23 20:02:35 +05:30
Kittywhiskers Van Gogh
10f923b82c Partial #13697: Support output descriptors in scantxoutset
29943a904a
2021-04-18 18:21:55 +05:30
Wladimir J. van der Laan
4bb1132438
Merge #12886: Introduce Span type and use it instead of FLATDATA
9272d70 Support serializing Span<unsigned char> and use that instead of FLATDATA (Pieter Wuille)
833bc08 Add Slice: a (pointer, size) array view that acts like a container (Pieter Wuille)

Pull request description:

  Introduce a new data type `Span`, which is an encapsulated pointer + size (like C++20's `std::span` or LevelDB's `Slice`), and represents a view to a sequence of objects laid out continuously in memory.

  The immediate use case is replacing the remaining `FLATDATA` invocations. Instead of those, we support serializing/deserializing unsigned char `Span`s (treating them as arrays).

  A longer term goal for `Span`s is making the script execution operate on them rather than on `CScript` itself. This will allow separate storage mechanisms for scripts.

Tree-SHA512: 7b0da3c802e5df367f223275004d16b04262804c007b7c73fda927176f0a9c3b2ef3225fa842cb73500b0df73175ec1419f1f5239de2402e21dd9ae8e5d05233
2020-12-17 11:21:20 +03:00