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:
Nik Bougalis
2015-11-11 00:55:09 -08:00
parent 0a96f3a249
commit e0af6ec567
41 changed files with 971 additions and 2902 deletions

View File

@@ -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