mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 23:00:55 +00:00
chore: Enable most cppcoreguidelines checks (#7660)
This commit is contained in:
@@ -323,12 +323,11 @@ class Validator
|
||||
using Links = std::unordered_map<Peer::id_t, LinkSPtr>;
|
||||
|
||||
public:
|
||||
Validator() : pkey_(std::get<0>(randomKeyPair(KeyType::Ed25519)))
|
||||
Validator() : pkey_(std::get<0>(randomKeyPair(KeyType::Ed25519))), id_(sid++)
|
||||
{
|
||||
protocol::TMValidation v;
|
||||
v.set_validation("validation");
|
||||
message_ = std::make_shared<Message>(v, protocol::mtVALIDATION, pkey_);
|
||||
id_ = sid++;
|
||||
}
|
||||
Validator(Validator const&) = default;
|
||||
Validator(Validator&&) = default;
|
||||
@@ -457,7 +456,6 @@ public:
|
||||
using id_t = Peer::id_t;
|
||||
PeerSim(Overlay& overlay, beast::Journal journal) : overlay_(overlay), squelch_(journal)
|
||||
{
|
||||
id_ = sid++;
|
||||
}
|
||||
|
||||
~PeerSim() override = default;
|
||||
@@ -512,7 +510,7 @@ public:
|
||||
private:
|
||||
inline static id_t sid = 0;
|
||||
std::string fingerprint_;
|
||||
id_t id_;
|
||||
id_t id_{sid++};
|
||||
Overlay& overlay_;
|
||||
reduce_relay::Squelch<ManualClock> squelch_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user