aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-11-23 16:15:50 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-11-23 21:19:50 +0100
commitfada14b948cac147198e3b685b5dd8cb72dc2911 (patch)
tree4a84ed9e578c3297a59e5cb06c1667551fafc346 /src/support
parentfa8bdb048e65cae2d26bea3f991717a856e2fb39 (diff)
Treat CDataStream bytes as uint8_t
Also, rename CSerializeData to SerializeData
Diffstat (limited to 'src/support')
-rw-r--r--src/support/allocators/zeroafterfree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/allocators/zeroafterfree.h b/src/support/allocators/zeroafterfree.h
index c7ed5ef308..418f0ee656 100644
--- a/src/support/allocators/zeroafterfree.h
+++ b/src/support/allocators/zeroafterfree.h
@@ -42,7 +42,7 @@ struct zero_after_free_allocator : public std::allocator<T> {
}
};
-// Byte-vector that clears its contents before deletion.
-typedef std::vector<char, zero_after_free_allocator<char> > CSerializeData;
+/** Byte-vector that clears its contents before deletion. */
+using SerializeData = std::vector<uint8_t, zero_after_free_allocator<uint8_t>>;
#endif // BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H