Bitcoin Core 28.99.0
P2P Digital Currency
messages.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-2020 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
10
11#ifndef BITCOIN_COMMON_MESSAGES_H
12#define BITCOIN_COMMON_MESSAGES_H
13
14#include <string>
15
16struct bilingual_str;
17
18enum class FeeEstimateMode;
19enum class FeeReason;
20namespace node {
21enum class TransactionError;
22} // namespace node
23
24namespace common {
25enum class PSBTError;
26bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode);
27std::string StringForFeeReason(FeeReason reason);
28std::string FeeModes(const std::string& delimiter);
29std::string FeeModeInfo(std::pair<std::string, FeeEstimateMode>& mode);
30std::string FeeModesDetail(std::string default_info);
34bilingual_str ResolveErrMsg(const std::string& optname, const std::string& strBind);
35bilingual_str InvalidPortErrMsg(const std::string& optname, const std::string& strPort);
36bilingual_str AmountHighWarn(const std::string& optname);
37bilingual_str AmountErrMsg(const std::string& optname, const std::string& strValue);
38} // namespace common
39
40#endif // BITCOIN_COMMON_MESSAGES_H
FeeEstimateMode
Definition: feerate.h:21
Definition: args.cpp:868
PSBTError
Definition: types.h:17
bilingual_str PSBTErrorString(PSBTError err)
Definition: messages.cpp:106
bool FeeModeFromString(const std::string &mode_string, FeeEstimateMode &fee_estimate_mode)
Definition: messages.cpp:94
std::string FeeModesDetail(std::string default_info)
Definition: messages.cpp:75
std::string FeeModeInfo(const std::pair< std::string, FeeEstimateMode > &mode, std::string &default_info)
Definition: messages.cpp:56
bilingual_str TransactionErrorString(const TransactionError err)
Definition: messages.cpp:124
std::string FeeModes(const std::string &delimiter)
Definition: messages.cpp:84
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Definition: messages.cpp:163
std::string InvalidEstimateModeErrorMessage()
Definition: messages.cpp:89
bilingual_str ResolveErrMsg(const std::string &optname, const std::string &strBind)
Definition: messages.cpp:148
std::string StringForFeeReason(FeeReason reason)
Definition: messages.cpp:26
bilingual_str AmountHighWarn(const std::string &optname)
Definition: messages.cpp:158
bilingual_str InvalidPortErrMsg(const std::string &optname, const std::string &invalid_value)
Definition: messages.cpp:153
Definition: messages.h:20
TransactionError
Definition: types.h:20
FeeReason
Definition: fees.h:60
Bilingual messages:
Definition: translation.h:21