From 379875ae475df8227042f25cbc6862d3d4942f99 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 16 May 2013 00:57:56 -0700 Subject: [PATCH] Hash is not valid if transaction is added to ledger. --- src/cpp/ripple/Ledger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpp/ripple/Ledger.cpp b/src/cpp/ripple/Ledger.cpp index 8bb7709e2..33344bcfd 100644 --- a/src/cpp/ripple/Ledger.cpp +++ b/src/cpp/ripple/Ledger.cpp @@ -256,6 +256,7 @@ bool Ledger::addTransaction(const uint256& txID, const Serializer& txn) cLog(lsWARNING) << "Attempt to add transaction to ledger that already had it"; return false; } + mValidHash = false; return true; } @@ -270,6 +271,7 @@ bool Ledger::addTransaction(const uint256& txID, const Serializer& txn, const Se cLog(lsFATAL) << "Attempt to add transaction+MD to ledger that already had it"; return false; } + mValidHash = false; return true; }