mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Must set flags before signing validation.
This commit is contained in:
@@ -59,11 +59,12 @@ void SerializedValidation::sign (const RippleAddress& raPriv)
|
||||
|
||||
void SerializedValidation::sign (uint256& signingHash, const RippleAddress& raPriv)
|
||||
{
|
||||
setFlag (vfFullyCanonicalSig);
|
||||
|
||||
signingHash = getSigningHash ();
|
||||
Blob signature;
|
||||
raPriv.signNodePrivate (signingHash, signature);
|
||||
setFieldVL (sfSignature, signature);
|
||||
setFlag (vfFullyCanonicalSig);
|
||||
}
|
||||
|
||||
uint256 SerializedValidation::getSigningHash () const
|
||||
|
||||
@@ -82,7 +82,7 @@ TER RippleCalc::calcNodeAdvance (
|
||||
// levels (ratio of pay:get) that will be considered for one path.
|
||||
// Changing this value has repercusssions on validation and consensus.
|
||||
//
|
||||
if (++loopCount > 20)
|
||||
if (++loopCount > 100)
|
||||
{
|
||||
WriteLog (lsWARNING, RippleCalc) << "Loop count exceeded";
|
||||
return tefEXCEPTION;
|
||||
|
||||
Reference in New Issue
Block a user