mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 09:17:57 +00:00
Add compile time option for new Validators code
This commit is contained in:
@@ -1471,12 +1471,14 @@ static void checkValidation (Job&, SerializedValidation::pointer val, bool isTru
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
{
|
||||
#if RIPPLE_USE_NEW_VALIDATIONS
|
||||
SerializedValidation const& sv (*val);
|
||||
Validators::ReceivedValidation rv;
|
||||
rv.ledgerHash = sv.getLedgerHash ();
|
||||
uint160 const publicKeyHash (sv.getSignerPublic ().getNodeID ());
|
||||
rv.signerPublicKeyHash = RipplePublicKeyHash (publicKeyHash.begin ());
|
||||
getApp ().getValidators ().receiveValidation (rv);
|
||||
#endif
|
||||
}
|
||||
//
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user