aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-02-12 12:33:37 -0500
committerfanquake <fanquake@gmail.com>2021-09-02 13:19:42 +0800
commit4bf18b089e1bb1f3ab513cbdf6674bd1074f4621 (patch)
tree720d45ec1aa357c00c059a01f5aaa474f48e5e22 /src/bitcoin-tx.cpp
parent93551862a18965bcee0c883c54807e8726e2f50f (diff)
downloadbitcoin-4bf18b089e1bb1f3ab513cbdf6674bd1074f4621.tar.xz
Replace use of boost::trim_right with locale-independent TrimString
Note the only use of readStdin is fed to DecodeHexTx, which fails in IsHex on non-hex characters as recorded in p_util_hexdigit.
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r--src/bitcoin-tx.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index cd2cdf01f2..58c51bd8e0 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -772,9 +772,7 @@ static std::string readStdin()
if (ferror(stdin))
throw std::runtime_error("error reading stdin");
- boost::algorithm::trim_right(ret);
-
- return ret;
+ return TrimString(ret);
}
static int CommandLineRawTx(int argc, char* argv[])