mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Merge #9544: [trivial] Add end of namespace comments. Improve consistency.
5a9b508 [trivial] Add end of namespace comments (practicalswift)
Tree-SHA512: 92b0fcae4d1d3f4da9e97569ae84ef2d6e09625a5815cd0e5f0eb6dd2ecba9852fa85c184c5ae9de5117050330ce995e9867b451fa8cd5512169025990541a2b
This commit is contained in:
@@ -225,7 +225,7 @@ public:
|
||||
bool operator()(const CNoDestination& no) const { return false; }
|
||||
};
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
bool CBitcoinAddress::Set(const CKeyID& id)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace block_bench {
|
||||
#include "bench/data/block413567.raw.h"
|
||||
}
|
||||
} // namespace block_bench
|
||||
|
||||
// These are the two major time-sinks which happen after we have fully received
|
||||
// a block off the wire, but before we can relay the block on to peers using
|
||||
|
||||
@@ -56,7 +56,7 @@ bool sanity_test_fdelt()
|
||||
}
|
||||
#endif
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
bool glibc_sanity_test()
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ bool sanity_test_list(unsigned int size)
|
||||
return true;
|
||||
}
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
// trigger: string::at(x) on an empty string to trigger __throw_out_of_range_fmt.
|
||||
// test: force std::string to throw an out_of_range exception. Verify that
|
||||
|
||||
@@ -209,4 +209,4 @@ const std::vector<unsigned char>& GetObfuscateKey(const CDBWrapper &w)
|
||||
return w.obfuscate_key;
|
||||
}
|
||||
|
||||
};
|
||||
} // namespace dbwrapper_private
|
||||
|
||||
@@ -822,7 +822,7 @@ int nUserMaxConnections;
|
||||
int nFD;
|
||||
ServiceFlags nLocalServices = NODE_NETWORK;
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
[[noreturn]] static void new_handler_terminate()
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace {
|
||||
MapRelay mapRelay;
|
||||
/** Expiration-time ordered list of (expire time, relay map entry) pairs, protected by cs_main). */
|
||||
std::deque<std::pair<int64_t, MapRelay::iterator>> vRelayExpiration;
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -559,7 +559,7 @@ void FindNextBlocksToDownload(NodeId nodeid, unsigned int count, std::vector<con
|
||||
}
|
||||
}
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) {
|
||||
LOCK(cs_main);
|
||||
|
||||
@@ -39,7 +39,7 @@ const char *SENDCMPCT="sendcmpct";
|
||||
const char *CMPCTBLOCK="cmpctblock";
|
||||
const char *GETBLOCKTXN="getblocktxn";
|
||||
const char *BLOCKTXN="blocktxn";
|
||||
};
|
||||
} // namespace NetMsgType
|
||||
|
||||
/** All known message types. Keep this in the same order as the list of
|
||||
* messages above and in protocol.h.
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace
|
||||
{
|
||||
/* Global secp256k1_context object used for verification. */
|
||||
secp256k1_context* secp256k1_context_verify = NULL;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
/** This function is taken from the libsecp256k1 distribution and implements
|
||||
* DER parsing for ECDSA signatures, while supporting an arbitrary subset of
|
||||
|
||||
@@ -68,7 +68,7 @@ struct ECCryptoClosure
|
||||
};
|
||||
|
||||
ECCryptoClosure instance_of_eccryptoclosure;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
/** Check that all specified flags are part of the libconsensus interface. */
|
||||
static bool verify_flags(unsigned int flags)
|
||||
|
||||
@@ -31,7 +31,7 @@ inline bool set_error(ScriptError* ret, const ScriptError serror)
|
||||
return false;
|
||||
}
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
bool CastToBool(const valtype& vch)
|
||||
{
|
||||
@@ -1164,7 +1164,7 @@ uint256 GetOutputsHash(const CTransaction& txTo) {
|
||||
return ss.GetHash();
|
||||
}
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
PrecomputedTransactionData::PrecomputedTransactionData(const CTransaction& txTo)
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
* signatureCache could be made local to VerifySignature.
|
||||
*/
|
||||
static CSignatureCache signatureCache;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
// To be called once in AppInitMain/BasicTestingSetup to initialize the
|
||||
// signatureCache.
|
||||
|
||||
@@ -399,7 +399,7 @@ public:
|
||||
}
|
||||
};
|
||||
const DummySignatureChecker dummyChecker;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
const BaseSignatureChecker& DummySignatureCreator::Checker() const
|
||||
{
|
||||
|
||||
@@ -273,7 +273,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
CScript GetScriptForDestination(const CTxDestination& dest)
|
||||
{
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
size_t& usage() { return cachedCoinsUsage; }
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(coins_tests, BasicTestingSetup)
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ std::string JSONPrettyPrint(const UniValue& univalue)
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
BOOST_AUTO_TEST_CASE(script_build)
|
||||
{
|
||||
|
||||
@@ -769,7 +769,7 @@ public:
|
||||
return counta < countb;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
std::vector<CTxMemPool::indexed_transaction_set::const_iterator> CTxMemPool::GetSortedDepthAndScore() const
|
||||
{
|
||||
|
||||
@@ -1297,7 +1297,7 @@ bool AbortNode(CValidationState& state, const std::string& strMessage, const std
|
||||
return state.Error(strMessage);
|
||||
}
|
||||
|
||||
} // anon namespace
|
||||
} // namespace
|
||||
|
||||
enum DisconnectResult
|
||||
{
|
||||
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
uint32_t Mask(const Consensus::Params& params) const { return ((uint32_t)1) << params.vDeployments[id].bit; }
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
ThresholdState VersionBitsState(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user