forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: move fees.h and error.h to common/messages.h
Move enum and message formatting functions to a common/messages header where they should be more discoverable, and also out of the util library, so they will not be a dependency of the kernel The are no changes in behavior and no changes to the moved code.
- Loading branch information
Showing
20 changed files
with
143 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2009-2010 Satoshi Nakamoto | ||
// Copyright (c) 2009-2020 The Bitcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
//! @file common/messages.h is a home for simple string functions returning | ||
//! descriptive messages that are used in RPC and GUI interfaces or log | ||
//! messages, and are called in different parts of the codebase across | ||
//! node/wallet/gui boundaries. | ||
|
||
#ifndef BITCOIN_COMMON_MESSAGES_H | ||
#define BITCOIN_COMMON_MESSAGES_H | ||
|
||
#include <node/types.h> | ||
#include <string> | ||
|
||
struct bilingual_str; | ||
|
||
enum class FeeEstimateMode; | ||
enum class FeeReason; | ||
|
||
namespace common { | ||
enum class PSBTError; | ||
bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode); | ||
std::string StringForFeeReason(FeeReason reason); | ||
std::string FeeModes(const std::string& delimiter); | ||
std::string InvalidEstimateModeErrorMessage(); | ||
bilingual_str PSBTErrorString(PSBTError error); | ||
bilingual_str TransactionErrorString(const TransactionError error); | ||
bilingual_str ResolveErrMsg(const std::string& optname, const std::string& strBind); | ||
bilingual_str InvalidPortErrMsg(const std::string& optname, const std::string& strPort); | ||
bilingual_str AmountHighWarn(const std::string& optname); | ||
bilingual_str AmountErrMsg(const std::string& optname, const std::string& strValue); | ||
} // namespace common | ||
|
||
#endif // BITCOIN_COMMON_MESSAGES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.