Work on the wobble logic.

This commit is contained in:
JoelKatz
2012-06-02 16:19:37 -07:00
parent 866ead228b
commit 8701337af7
5 changed files with 19 additions and 11 deletions

View File

@@ -597,7 +597,13 @@ void Peer::recvTransaction(newcoin::TMTransaction& packet)
}
#endif
tx = theApp->getOPs().processTransaction(tx, this);
uint32 targetLedger = 0;
if (packet.has_ledgerindexfinal())
targetLedger = packet.ledgerindexfinal();
else if (packet.has_ledgerindexpossible())
targetLedger = packet.ledgerindexpossible();
tx = theApp->getOPs().processTransaction(tx, targetLedger, this);
if(tx->getStatus() != INCLUDED)
{ // transaction wasn't accepted into ledger