Fix ledger acquire timing.

This commit is contained in:
JoelKatz
2012-05-10 17:44:06 -07:00
parent 6dc8d762e8
commit 02ce4acb11
3 changed files with 60 additions and 21 deletions

View File

@@ -773,7 +773,7 @@ void Peer::recvGetLedger(newcoin::TMGetLedger& packet)
void Peer::recvLedger(newcoin::TMLedgerData& packet)
{
if(!theApp->getMasterLedgerAcquire().gotLedgerData(packet))
if(!theApp->getMasterLedgerAcquire().gotLedgerData(packet, shared_from_this()))
punishPeer(PP_UNWANTED_DATA);
}