aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-04 11:29:23 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-04 11:25:23 +0200
commit88887531b704f3943fdb33abbdd5378ecfeee14f (patch)
tree6cd162a6f3977cffcf65911f39b0a3fc93261dc1 /src/serialize.h
parent77774110f4dd591a71441851813d59c03c9e3c78 (diff)
downloadbitcoin-88887531b704f3943fdb33abbdd5378ecfeee14f.tar.xz
Move compat/assumptions.h include to one place that actually needs it
Also add the <IWYU pragma: keep> to avoid removing it by accident.
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/serialize.h b/src/serialize.h
index e53ff9fa4c..dbec620c64 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -7,7 +7,10 @@
#define BITCOIN_SERIALIZE_H
#include <attributes.h>
+#include <compat/assumptions.h> // IWYU pragma: keep
#include <compat/endian.h>
+#include <prevector.h>
+#include <span.h>
#include <algorithm>
#include <cstdint>
@@ -18,13 +21,9 @@
#include <memory>
#include <set>
#include <string>
-#include <string.h>
#include <utility>
#include <vector>
-#include <prevector.h>
-#include <span.h>
-
/**
* The maximum size of a serialized object in bytes or number of elements
* (for eg vectors) when the size is encoded as CompactSize.