diff options
author | fanquake <fanquake@gmail.com> | 2021-12-24 16:44:57 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-01-26 22:08:29 +0800 |
commit | 5e8975e2694c3178ae73deb28986e1fb5466147e (patch) | |
tree | 8920a7bd722531cf1388fbba6fd46368daadac03 /src/bitcoin-tx.cpp | |
parent | 486261dfcb5ea3ec205a632066298ffa492de466 (diff) |
fs: consistently use fsbridge for fopen()
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r-- | src/bitcoin-tx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index edec883264..8237d7d34f 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -12,6 +12,7 @@ #include <consensus/consensus.h> #include <core_io.h> #include <key_io.h> +#include <fs.h> #include <policy/policy.h> #include <policy/rbf.h> #include <primitives/transaction.h> @@ -158,7 +159,7 @@ static void RegisterLoad(const std::string& strInput) std::string key = strInput.substr(0, pos); std::string filename = strInput.substr(pos + 1, std::string::npos); - FILE *f = fopen(filename.c_str(), "r"); + FILE *f = fsbridge::fopen(filename.c_str(), "r"); if (!f) { std::string strErr = "Cannot open file " + filename; throw std::runtime_error(strErr); |