util: add TransactionError includes and namespace declarations

Add TransactionError to node namespace and include it directly instead of
relying on indirect include through common/messages.h

This is a followup to a previous commit which moved the TransactionError enum.
These changes were done in a separate followup just to keep the previous commit
more minimal and easy to review.
This commit is contained in:
Ryan Ofsky
2023-12-07 17:11:27 -05:00
parent 680eafdc74
commit 4d05d3f3b4
26 changed files with 48 additions and 8 deletions

View File

@@ -31,6 +31,7 @@
#include <node/interface_ui.h>
#include <node/mini_miner.h>
#include <node/transaction.h>
#include <node/types.h>
#include <policy/feerate.h>
#include <policy/fees.h>
#include <policy/policy.h>

View File

@@ -9,6 +9,7 @@
#include <net_processing.h>
#include <node/blockstorage.h>
#include <node/context.h>
#include <node/types.h>
#include <txmempool.h>
#include <validation.h>
#include <validationinterface.h>

View File

@@ -13,6 +13,7 @@
#ifndef BITCOIN_NODE_TYPES_H
#define BITCOIN_NODE_TYPES_H
namespace node {
enum class TransactionError {
OK, //!< No error
MISSING_INPUTS,
@@ -23,5 +24,6 @@ enum class TransactionError {
MAX_BURN_EXCEEDED,
INVALID_PACKAGE,
};
} // namespace node
#endif // BITCOIN_NODE_TYPES_H