Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2009-2010 Satoshi Nakamoto2// Copyright (c) 2009-present The Bitcoin Core developers3// Distributed under the MIT software license, see the accompanying4// file COPYING or http://www.opensource.org/licenses/mit-license.php.6//! @file common/messages.h is a home for simple string functions returning7//! descriptive messages that are used in RPC and GUI interfaces or log8//! messages, and are called in different parts of the codebase across9//! node/wallet/gui boundaries.11#ifndef BITCOIN_COMMON_MESSAGES_H12#define BITCOIN_COMMON_MESSAGES_H14#include <string>15#include <string_view>16#include <utility>18struct bilingual_str;19enum class FeeEstimateMode;20enum class FeeReason;21namespace node {22enum class TransactionError;23} // namespace node25namespace common {26enum class PSBTError;28bool FeeModeFromString(std::string_view mode_string, FeeEstimateMode& fee_estimate_mode);29std::string StringForFeeReason(FeeReason reason);30std::string FeeModes(const std::string& delimiter);31std::string FeeModeInfo(std::pair<std::string, FeeEstimateMode>& mode);32std::string FeeModesDetail(std::string default_info);33std::string InvalidEstimateModeErrorMessage();34bilingual_str PSBTErrorString(PSBTError error);35bilingual_str TransactionErrorString(node::TransactionError error);36bilingual_str ResolveErrMsg(const std::string& optname, const std::string& strBind);37bilingual_str InvalidPortErrMsg(const std::string& optname, const std::string& strPort);38bilingual_str AmountHighWarn(const std::string& optname);39bilingual_str AmountErrMsg(const std::string& optname, const std::string& strValue);40} // namespace common42#endif // BITCOIN_COMMON_MESSAGES_H