Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
messages.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-present The Bitcoin Core developers
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
12
13#ifndef BITCOIN_COMMON_MESSAGES_H
14#define BITCOIN_COMMON_MESSAGES_H
15
16#include <string>
17#include <string_view>
18
19struct bilingual_str;
20enum class FeeEstimateMode;
21enum class FeeReason;
22namespace node {
23enum class TransactionError;
24} // namespace node
25
26namespace common {
27enum class PSBTError;
28
29bool FeeModeFromString(std::string_view mode_string, FeeEstimateMode& fee_estimate_mode);
30std::string StringForFeeReason(FeeReason reason);
31std::string FeeReasons(const std::string& delimiter);
32std::string FeeModes(const std::string& delimiter);
33std::string FeeModesDetail(std::string default_info);
35bilingual_str PSBTErrorString(PSBTError error);
37bilingual_str ResolveErrMsg(const std::string& optname, const std::string& strBind);
38bilingual_str InvalidPortErrMsg(const std::string& optname, const std::string& strPort);
39bilingual_str AmountHighWarn(const std::string& optname);
40bilingual_str AmountErrMsg(const std::string& optname, const std::string& strValue);
41} // namespace common
42
43#endif // BITCOIN_COMMON_MESSAGES_H
PSBTError
Definition types.h:21
bilingual_str TransactionErrorString(const TransactionError err)
Definition messages.cpp:129
std::string FeeModes(const std::string &delimiter)
Definition messages.cpp:86
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Definition messages.cpp:171
std::string InvalidEstimateModeErrorMessage()
Definition messages.cpp:91
bilingual_str ResolveErrMsg(const std::string &optname, const std::string &strBind)
Definition messages.cpp:156
bilingual_str AmountHighWarn(const std::string &optname)
Definition messages.cpp:166
bilingual_str InvalidPortErrMsg(const std::string &optname, const std::string &invalid_value)
Definition messages.cpp:161
TransactionError
Definition types.h:21
Bilingual messages:
Definition translation.h:24
FeeReason
Definition fees.h:25
FeeEstimateMode
Definition fees.h:18
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82