mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add validator token to config (RIPD-1386)
This commit is contained in:
@@ -1086,7 +1086,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMTransaction> const& m)
|
||||
flags |= SF_TRUSTED;
|
||||
}
|
||||
|
||||
if (! app_.config().VALIDATION_PUB.size())
|
||||
if (! app_.getOPs().getValidationPublicKey().size())
|
||||
{
|
||||
// For now, be paranoid and have each validator
|
||||
// check each transaction, regardless of source
|
||||
@@ -1248,8 +1248,8 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMProposeSet> const& m)
|
||||
return;
|
||||
}
|
||||
|
||||
if (app_.config().VALIDATION_PUB.size() &&
|
||||
publicKey == app_.config().VALIDATION_PUB)
|
||||
if (app_.getOPs().getValidationPublicKey().size() &&
|
||||
publicKey == app_.getOPs().getValidationPublicKey())
|
||||
{
|
||||
JLOG(p_journal_.trace()) << "Proposal: self";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user