Dispatch transaction from job queue, not I/O service. Mark a FIXME where we don't do this.

This commit is contained in:
JoelKatz
2013-03-18 03:10:20 -07:00
parent 00913f838f
commit 125c5273a6
2 changed files with 2 additions and 1 deletions

View File

@@ -210,6 +210,7 @@ void NetworkOPs::submitTransaction(Job&, SerializedTransaction::pointer iTrans,
}
}
// FIXME: Should submit to job queue
theApp->getIOService().post(boost::bind(&NetworkOPs::processTransaction, this,
boost::make_shared<Transaction>(trans, false), callback));
}

View File

@@ -830,7 +830,7 @@ static void checkTransaction(Job&, int flags, SerializedTransaction::pointer stx
else
tx = boost::make_shared<Transaction>(stx, false);
theApp->getIOService().post(boost::bind(&NetworkOPs::processTransaction, &theApp->getOPs(), tx));
theApp->getOPs().processTransaction(tx);
#ifndef TRUST_NETWORK
}