mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove validation cookie support code
This commit is contained in:
committed by
Nikolaos D. Bougalis
parent
04f1388860
commit
6156ff3eb7
@@ -19,7 +19,6 @@
|
||||
#ifndef RIPPLE_TEST_CSF_PEER_H_INCLUDED
|
||||
#define RIPPLE_TEST_CSF_PEER_H_INCLUDED
|
||||
|
||||
#include <ripple/basics/random.h>
|
||||
#include <ripple/beast/utility/WrappedSink.h>
|
||||
#include <ripple/consensus/Consensus.h>
|
||||
#include <ripple/consensus/Validations.h>
|
||||
@@ -259,9 +258,6 @@ struct Peer
|
||||
//! The collectors to report events to
|
||||
CollectorRefs & collectors;
|
||||
|
||||
//! Random cookie used to tag validations
|
||||
std::uint64_t cookie;
|
||||
|
||||
/** Constructor
|
||||
|
||||
@param i Unique PeerID
|
||||
@@ -294,9 +290,6 @@ struct Peer
|
||||
, validations{ValidationParms{}, s.clock(), *this}
|
||||
, fullyValidatedLedger{Ledger::MakeGenesis{}}
|
||||
, collectors{c}
|
||||
, cookie{rand_int<std::uint64_t>(
|
||||
1,
|
||||
std::numeric_limits<std::uint64_t>::max())}
|
||||
{
|
||||
// All peers start from the default constructed genesis ledger
|
||||
ledgers[lastClosedLedger.id()] = lastClosedLedger;
|
||||
@@ -593,8 +586,7 @@ struct Peer
|
||||
now(),
|
||||
key,
|
||||
id,
|
||||
isFull,
|
||||
cookie};
|
||||
isFull};
|
||||
// share the new validation; it is trusted by the receiver
|
||||
share(v);
|
||||
// we trust ourselves
|
||||
|
||||
@@ -55,7 +55,6 @@ class Validation
|
||||
PeerID nodeID_{0};
|
||||
bool trusted_ = false;
|
||||
bool full_ = false;
|
||||
std::uint64_t cookie_;
|
||||
boost::optional<std::uint32_t> loadFee_;
|
||||
|
||||
public:
|
||||
@@ -69,7 +68,6 @@ public:
|
||||
PeerKey key,
|
||||
PeerID nodeID,
|
||||
bool full,
|
||||
std::uint64_t cookie,
|
||||
boost::optional<std::uint32_t> loadFee = boost::none)
|
||||
: ledgerID_{id}
|
||||
, seq_{seq}
|
||||
@@ -78,7 +76,6 @@ public:
|
||||
, key_{key}
|
||||
, nodeID_{nodeID}
|
||||
, full_{full}
|
||||
, cookie_{cookie}
|
||||
, loadFee_{loadFee}
|
||||
{
|
||||
}
|
||||
@@ -147,12 +144,6 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::uint64_t
|
||||
cookie() const
|
||||
{
|
||||
return cookie_;
|
||||
}
|
||||
|
||||
auto
|
||||
asTie() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user