aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2024-04-18 14:05:12 +0100
committerstickies-v <stickies-v@protonmail.com>2024-06-13 11:20:47 +0100
commit20e616f86444d00712ac7eb840666e2b0378af4a (patch)
treeccebef6abe4453b165cc406b6b2af526b9ad4f1e /src/rpc/blockchain.cpp
parentbed29c481aebeb2b0160450c63c03cc68fb89bc6 (diff)
downloadbitcoin-20e616f86444d00712ac7eb840666e2b0378af4a.tar.xz
move-only: move warnings from common to node
Since rpc/util.cpp is in common, also move GetNodeWarnings() to node::GetWarningsForRPC()
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 46b0ae161f..cf0f67d9d3 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -29,6 +29,7 @@
#include <node/context.h>
#include <node/transaction.h>
#include <node/utxo_snapshot.h>
+#include <node/warnings.h>
#include <primitives/transaction.h>
#include <rpc/server.h>
#include <rpc/server_util.h>
@@ -1308,7 +1309,7 @@ RPCHelpMan getblockchaininfo()
}
}
- obj.pushKV("warnings", GetNodeWarnings(IsDeprecatedRPCEnabled("warnings")));
+ obj.pushKV("warnings", node::GetWarningsForRpc(IsDeprecatedRPCEnabled("warnings")));
return obj;
},
};