mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Streamlined UNL/validator list:
The new code removes the ability to specify domain names in the [validators] configuration block, and no longer supports the [validators_site] option. More details on the supported configurations are available under doc/rippled-example.cfg.
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
#include <ripple/app/misc/HashRouter.h>
|
||||
#include <ripple/app/misc/NetworkOPs.h>
|
||||
#include <ripple/app/misc/Transaction.h>
|
||||
#include <ripple/app/misc/UniqueNodeList.h>
|
||||
#include <ripple/app/misc/Validations.h>
|
||||
#include <ripple/app/misc/ValidatorList.h>
|
||||
#include <ripple/app/tx/apply.h>
|
||||
#include <ripple/protocol/digest.h>
|
||||
#include <ripple/basics/random.h>
|
||||
@@ -1265,7 +1265,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMProposeSet> const& m)
|
||||
return;
|
||||
}
|
||||
|
||||
bool isTrusted = app_.getUNL ().nodeInUNL (signerPublic);
|
||||
auto const isTrusted = app_.validators().trusted (signerPublic);
|
||||
|
||||
if (!isTrusted)
|
||||
{
|
||||
@@ -1594,7 +1594,8 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMValidation> const& m)
|
||||
return;
|
||||
}
|
||||
|
||||
bool isTrusted = app_.getUNL ().nodeInUNL (val->getSignerPublic ());
|
||||
auto const isTrusted =
|
||||
app_.validators().trusted(val->getSignerPublic ());
|
||||
if (!isTrusted && (sanity_.load () == Sanity::insane))
|
||||
{
|
||||
p_journal_.debug <<
|
||||
@@ -1606,9 +1607,13 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMValidation> const& m)
|
||||
app_.getJobQueue ().addJob (
|
||||
isTrusted ? jtVALIDATION_t : jtVALIDATION_ut,
|
||||
"recvValidation->checkValidation",
|
||||
[weak, val, isTrusted, m] (Job&) {
|
||||
[weak, val, isTrusted, m] (Job&)
|
||||
{
|
||||
if (auto peer = weak.lock())
|
||||
peer->checkValidation(val, isTrusted, m);
|
||||
peer->checkValidation(
|
||||
val,
|
||||
isTrusted,
|
||||
m);
|
||||
});
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user