0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-11 11:16:09 -05:00
bitcoin-bitcoin-core/src/util
fanquake 895937edb2
Merge bitcoin/bitcoin#25285: Add AutoFile without ser-type and ser-version and use it where possible
facc2fa7b8 Use AutoFile where possible (MacroFake)
6666803c89 streams: Add AutoFile without ser-type and ser-version (MacroFake)

Pull request description:

  This was done in the context of https://github.com/bitcoin/bitcoin/pull/25284 , but I think it also makes sense standalone.

  The basic idea is that serialization type should not be initialized when it is not needed. Same for the serialization version.

  So do this here for `AutoFile`. `CAutoFile` remains in places where it is not yet possible.

ACKs for top commit:
  laanwj:
    Code review ACK facc2fa7b8
  fanquake:
    ACK facc2fa7b8

Tree-SHA512: d82d024d55af57565ac53d9d1517afafc12b46964effba0332de62a6c77869356fa77f89e6d4834438fff44c45b64fccdf5a1358bfea03e28dfe55013b3c099d
2022-07-20 09:32:11 +01:00
..
asmap.cpp Merge bitcoin/bitcoin#25285: Add AutoFile without ser-type and ser-version and use it where possible 2022-07-20 09:32:11 +01:00
asmap.h scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
bip32.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
bip32.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
bytevectorhash.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
bytevectorhash.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
check.cpp util/check: stop using lambda for Assert/Assume 2022-03-30 23:09:13 +10:00
check.h lint: Mention NONFATAL_UNREACHABLE in lint-assertions.py 2022-04-26 10:01:54 +02:00
epochguard.h util, refactor: Add UNIQUE_NAME helper macro 2022-02-16 14:59:20 +02:00
error.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
error.h [rpc] add new submitpackage RPC 2022-06-23 14:35:04 +01:00
fastrange.h Add FastRange32 function and use it throughout the codebase 2022-01-07 13:37:47 -05:00
fees.cpp scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
fees.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
getuniquepath.cpp Disallow more unsafe string->path conversions allowed by path append operators 2022-04-21 12:01:00 -05:00
getuniquepath.h Introduce GetUniquePath(base) helper method to replace boost::filesystem::unique_path() which is not available in std::filesystem. 2021-02-04 11:38:09 +01:00
golombrice.h [moveonly] Move MapIntoRange() to separate util/fastrange.h 2022-01-06 11:27:06 -05:00
hash_type.h move-only: Add util/hash_type 2021-05-11 10:38:18 +02:00
hasher.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
hasher.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
macros.h util, refactor: Add UNIQUE_NAME helper macro 2022-02-16 14:59:20 +02:00
message.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
message.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
moneystr.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
moneystr.h refactor: Remove defunct attributes.h includes 2022-05-21 13:54:33 -05:00
overflow.h util: Add SaturatingAdd helper 2022-02-21 14:32:53 +01:00
overloaded.h refactor: Make CWalletTx sync state type-safe 2021-11-15 09:11:44 -05:00
rbf.cpp
rbf.h scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
readwritefile.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
readwritefile.h scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
result.h Prepare BResult for non-copyable types 2022-07-12 19:19:49 +02:00
serfloat.cpp Add platform-independent float encoder/decoder 2021-05-24 16:04:44 -07:00
serfloat.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
settings.cpp settings: Add update/getPersistent/isIgnored methods 2022-05-19 11:32:56 -04:00
settings.h settings: Add update/getPersistent/isIgnored methods 2022-05-19 11:32:56 -04:00
sock.cpp Merge bitcoin/bitcoin#24378: refactor: make bind() and listen() mockable/testable 2022-06-28 15:10:00 +02:00
sock.h Merge bitcoin/bitcoin#24378: refactor: make bind() and listen() mockable/testable 2022-06-28 15:10:00 +02:00
spanparsing.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
spanparsing.h Extend Split to work with multiple separators 2022-05-04 07:34:47 +02:00
strencodings.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
strencodings.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
string.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
string.h Wrap boost::replace_all 2022-05-05 20:50:24 +02:00
syscall_sandbox.cpp Remove gui-only syscalls 2022-04-05 13:30:06 +02:00
syscall_sandbox.h init: Disable syscall sandbox in the bitcoin-qt process 2022-04-05 13:29:42 +02:00
syserror.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
syserror.h util: Replace non-threadsafe strerror 2022-04-28 10:24:06 +02:00
system.cpp util: remove MSVC warning pragmas 2022-06-29 11:09:18 +01:00
system.h ArgsMan: Add Get*Arg functions returning optional 2022-06-22 18:18:52 -04:00
thread.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
thread.h refactor: Make TraceThread a non-template free function 2021-04-25 12:28:44 +03:00
threadnames.cpp refactor: add missing std:: includes to threadnames.cpp 2022-04-01 14:49:13 +01:00
threadnames.h
time.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
time.h DumpMempool: Use std::chrono instead of weird int64_t arthmetics 2022-07-15 11:30:47 -04:00
tokenpipe.cpp Guard #include <config/bitcoin-config.h> 2022-05-02 16:41:30 +02:00
tokenpipe.h util: Add RAII TokenPipe 2021-03-04 18:24:00 +01:00
trace.h scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
translation.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
types.h Add util/types.h with ALWAYS_FALSE template 2021-09-07 19:19:02 +02:00
ui_change_type.h
url.cpp refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00
url.h
vector.h refactor: add most of src/util to iwyu 2022-07-08 11:06:01 +01:00