diff --git a/src/ripple/validators/impl/Manager.cpp b/src/ripple/validators/impl/Manager.cpp index 60550b74a..a4b5d81f9 100644 --- a/src/ripple/validators/impl/Manager.cpp +++ b/src/ripple/validators/impl/Manager.cpp @@ -284,6 +284,31 @@ public: } } + //-------------------------------------------------------------------------- + // + // PropertyStream + // + + void writeSources (PropertyStream stream) + { + PropertyStream::ScopedArray sources ("sources", stream); + + for (Logic::SourceTable::const_iterator iter (m_logic.m_sources.begin()); + iter != m_logic.m_sources.end(); ++iter) + { + stream.append (iter->source->name().toStdString()); + } + } + + void onWrite (PropertyStream stream) + { + // VFALCO NOTE this is not thread safe (yet) + + stream ["trusted"] = m_logic.m_chosenList ? m_logic.m_chosenList->size() : 0; + + writeSources (stream); + } + //-------------------------------------------------------------------------- // // ManagerImp