From f738b8fd7c0c8b0b90ea193b86ff995649d6542e Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Sat, 3 Jan 2026 15:36:38 +1100 Subject: [PATCH] fix entropy count --- src/ripple/app/tx/impl/Change.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ripple/app/tx/impl/Change.cpp b/src/ripple/app/tx/impl/Change.cpp index 074d052ee..757993d90 100644 --- a/src/ripple/app/tx/impl/Change.cpp +++ b/src/ripple/app/tx/impl/Change.cpp @@ -262,11 +262,9 @@ Change::applyShuffle() // update the ledger sequence of the object sle->setFieldU32(sfLedgerSequence, seq); } - else - { - // increment entropy count - sle->setFieldU16(sfEntropyCount, sle->getFieldU16(sfEntropyCount) + 1); - } + + // increment entropy count + sle->setFieldU16(sfEntropyCount, sle->getFieldU16(sfEntropyCount) + 1); // contribute the new entropy to the random data field sle->setFieldH256(sfRandomData,