mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add compile time option for new Validators code
This commit is contained in:
@@ -166,4 +166,11 @@
|
|||||||
#define RIPPLE_PEER_USES_BEAST_MULTISOCKET 0
|
#define RIPPLE_PEER_USES_BEAST_MULTISOCKET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Here temporarily to turn off new Validations code while it
|
||||||
|
// is being written.
|
||||||
|
//
|
||||||
|
#ifndef RIPPLE_USE_NEW_VALIDATIONS
|
||||||
|
#define RIPPLE_USE_NEW_VALIDATIONS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1471,12 +1471,14 @@ static void checkValidation (Job&, SerializedValidation::pointer val, bool isTru
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
|
#if RIPPLE_USE_NEW_VALIDATIONS
|
||||||
SerializedValidation const& sv (*val);
|
SerializedValidation const& sv (*val);
|
||||||
Validators::ReceivedValidation rv;
|
Validators::ReceivedValidation rv;
|
||||||
rv.ledgerHash = sv.getLedgerHash ();
|
rv.ledgerHash = sv.getLedgerHash ();
|
||||||
uint160 const publicKeyHash (sv.getSignerPublic ().getNodeID ());
|
uint160 const publicKeyHash (sv.getSignerPublic ().getNodeID ());
|
||||||
rv.signerPublicKeyHash = RipplePublicKeyHash (publicKeyHash.begin ());
|
rv.signerPublicKeyHash = RipplePublicKeyHash (publicKeyHash.begin ());
|
||||||
getApp ().getValidators ().receiveValidation (rv);
|
getApp ().getValidators ().receiveValidation (rv);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user