Add PropertyStream

This commit is contained in:
Vinnie Falco
2013-10-06 11:07:25 -07:00
parent b9e0208aee
commit 1ae3328642
24 changed files with 839 additions and 157 deletions

View File

@@ -117,8 +117,8 @@ public:
, m_txQueue (TxQueue::New ())
, m_validators (Validators::Manager::New (
*this, LogJournal::get <ValidatorsLog> ()))
, m_validators (add (Validators::Manager::New (
*this, LogJournal::get <ValidatorsLog> ())))
, mFeatures (IFeatures::New (2 * 7 * 24 * 60 * 60, 200)) // two weeks, 200/256
@@ -472,7 +472,7 @@ public:
// the creation of the peer SSL context and Peers object into
// the conditional.
//
m_peers = Peers::New (m_mainIoPool, m_mainIoPool, m_peerSSLContext->get ());
m_peers = add (Peers::New (m_mainIoPool, m_mainIoPool, m_peerSSLContext->get ()));
// If we're not in standalone mode,
// prepare ourselves for networking
@@ -642,8 +642,6 @@ public:
void onPrepare ()
{
m_rpcServiceManager->add (*m_validators);
prepareValidators ();
}
@@ -670,7 +668,15 @@ public:
stopped ();
}
//------------------------------------------------------------------------------
//
// PropertyStream
//
void onWrite (PropertyStream stream)
{
}
//------------------------------------------------------------------------------
void run ()
@@ -1201,6 +1207,11 @@ ApplicationImp* ApplicationImp::s_instance;
//------------------------------------------------------------------------------
Application::Application ()
: PropertyStream::Source ("app")
{
}
Application* Application::New ()
{
return new ApplicationImp;