From 149ad2a9ec7c4e621c0c999e8a282134f3965dca Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 18 Jun 2012 16:58:50 -0700 Subject: [PATCH] Add our own validation as a trusted validation. --- src/LedgerConsensus.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index 3159da6fbc..7c84b258cf 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -807,8 +807,11 @@ void LedgerConsensus::accept(SHAMap::pointer set) } #endif - SerializedValidation v(newLCLHash, mOurPosition->peekSeed(), true); - std::vector validation = v.getSigned(); + SerializedValidation::pointer v = boost::make_shared + (newLCLHash, mOurPosition->peekSeed(), true); + v->setTrusted(); + theApp->getValidations().addValidation(v); + std::vector validation = v->getSigned(); newcoin::TMValidation val; val.set_validation(&validation[0], validation.size()); theApp->getConnectionPool().relayMessage(NULL, boost::make_shared(val, newcoin::mtVALIDATION));