WS: Fix status of broadcasted transactions.

This commit is contained in:
Arthur Britto
2012-10-15 17:11:13 -07:00
parent 0cf9fdb4d8
commit e513ef177f
2 changed files with 8 additions and 6 deletions

View File

@@ -992,12 +992,12 @@ void NetworkOPs::pubLedger(Ledger::ref lpAccepted)
if (bAll)
{
pubTransactionAll(lpAccepted, *stTxn, terResult, "closed");
pubTransactionAll(lpAccepted, *stTxn, terResult, true);
}
if (bAccounts)
{
pubTransactionAccounts(lpAccepted, *stTxn, terResult, "closed");
pubTransactionAccounts(lpAccepted, *stTxn, terResult, true);
}
}
}
@@ -1099,12 +1099,12 @@ void NetworkOPs::pubTransaction(Ledger::ref lpCurrent, const SerializedTransacti
if (!mSubTransaction.empty())
{
pubTransactionAll(lpCurrent, stTxn, terResult, "proposed");
pubTransactionAll(lpCurrent, stTxn, terResult, false);
}
if (!mSubAccountTransaction.empty())
{
pubTransactionAccounts(lpCurrent, stTxn, terResult, "proposed");
pubTransactionAccounts(lpCurrent, stTxn, terResult, false);
}
}

View File

@@ -17,6 +17,8 @@
#include "../json/reader.h"
#include "../json/writer.h"
SETUP_LOG();
//
// This is a light weight, untrusted interface for web clients.
// For now we don't provide proof. Later we will.
@@ -145,7 +147,7 @@ public:
{
try
{
// Log(lsINFO) << "Ws:: Sending '" << strMessage << "'";
cLog(lsDEBUG) << "Ws:: Sending '" << strMessage << "'";
cpClient->send(strMessage);
}
@@ -159,7 +161,7 @@ public:
{
Json::FastWriter jfwWriter;
// Log(lsINFO) << "Ws:: Object '" << jfwWriter.write(jvObj) << "'";
cLog(lsDEBUG) << "Ws:: Object '" << jfwWriter.write(jvObj) << "'";
send(cpClient, jfwWriter.write(jvObj));
}