aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-06-06 17:22:59 +0200
committerMacroFake <falke.marco@gmail.com>2022-06-29 10:33:13 +0200
commitfacc2fa7b8a218a0df6a19772e1641ea68dda2e3 (patch)
treec2e5cf39dd2c0b88517a8bb2a83d7ca2bba2c360 /src/net.cpp
parent6666803c897e4ad27b45cb74e3a9aa74a335f1bf (diff)
downloadbitcoin-facc2fa7b8a218a0df6a19772e1641ea68dda2e3.tar.xz
Use AutoFile where possible
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 7f4e571c8d..a91abae944 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -3054,7 +3054,7 @@ void CaptureMessageToFile(const CAddress& addr,
fs::create_directories(base_path);
fs::path path = base_path / (is_incoming ? "msgs_recv.dat" : "msgs_sent.dat");
- CAutoFile f(fsbridge::fopen(path, "ab"), SER_DISK, CLIENT_VERSION);
+ AutoFile f{fsbridge::fopen(path, "ab")};
ser_writedata64(f, now.count());
f.write(MakeByteSpan(msg_type));