diff --git a/src/config.h b/src/config.h --- a/src/config.h +++ b/src/config.h @@ -65,6 +65,14 @@ bool useCashAddr; Amount excessUTXOCharge; CFeeRate feePerKB; + + /** RPC authentication configs */ + + // Pre-base64-encoded authentication token, with user and password separated + // by a colon. + std::string rpcUserAndPassword; + // CORS domain, the allowed Origin + std::string rpcCORSDomain; }; // Dummy for subclassing in unittests diff --git a/src/globals.h b/src/globals.h --- a/src/globals.h +++ b/src/globals.h @@ -12,12 +12,4 @@ extern uint64_t nMaxBlockSize; extern uint64_t nBlockPriorityPercentage; -/** RPC authentication configs */ - -// Pre-base64-encoded authentication token, with user and password separated -// by a colon. -extern std::string rpcUserAndPassword; -// CORS domain, the allowed Origin -extern std::string rpcCORSDomain; - #endif // BITCOIN_GLOBALS_H diff --git a/src/globals.cpp b/src/globals.cpp --- a/src/globals.cpp +++ b/src/globals.cpp @@ -10,5 +10,3 @@ uint64_t nMaxBlockSize = DEFAULT_MAX_BLOCK_SIZE; uint64_t nBlockPriorityPercentage = DEFAULT_BLOCK_PRIORITY_PERCENTAGE; -std::string rpcUserAndPassword; -std::string rpcCORSDomain;