mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-30 07:43:48 +02:00
move-only: move warnings from common to node
Since rpc/util.cpp is in common, also move GetNodeWarnings() to node::GetWarningsForRPC()
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <netbase.h>
|
||||
#include <node/context.h>
|
||||
#include <node/protocol_version.h>
|
||||
#include <node/warnings.h>
|
||||
#include <policy/settings.h>
|
||||
#include <protocol.h>
|
||||
#include <rpc/blockchain.h>
|
||||
@@ -715,7 +716,7 @@ static RPCHelpMan getnetworkinfo()
|
||||
}
|
||||
}
|
||||
obj.pushKV("localaddresses", std::move(localAddresses));
|
||||
obj.pushKV("warnings", GetNodeWarnings(IsDeprecatedRPCEnabled("warnings")));
|
||||
obj.pushKV("warnings", node::GetWarningsForRpc(IsDeprecatedRPCEnabled("warnings")));
|
||||
return obj;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user