comments.
This commit is contained in:
parent
99abd06b87
commit
639463bb1b
@ -3833,6 +3833,7 @@ NAN_METHOD(HookPackets) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
next = cur->next;
|
next = cur->next;
|
||||||
|
// XXX Figure out what to do here:
|
||||||
// delete cur->pfrom; // cleaned up elsewhere? C++ I DON'T UNDERSTAND YOU
|
// delete cur->pfrom; // cleaned up elsewhere? C++ I DON'T UNDERSTAND YOU
|
||||||
free(cur->strCommand);
|
free(cur->strCommand);
|
||||||
// delete cur->vRecv; // cleaned up elsewhere?
|
// delete cur->vRecv; // cleaned up elsewhere?
|
||||||
@ -3945,6 +3946,8 @@ process_packet(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTim
|
|||||||
|
|
||||||
//cur->pfrom = pfrom;
|
//cur->pfrom = pfrom;
|
||||||
|
|
||||||
|
// XXX Bad - sends version again and creates a new global peer
|
||||||
|
// XXX Figure out what to do here
|
||||||
CNode *pfrom_ = new CNode(pfrom->hSocket, pfrom->addr, pfrom->addrName, pfrom->fInbound);
|
CNode *pfrom_ = new CNode(pfrom->hSocket, pfrom->addr, pfrom->addrName, pfrom->fInbound);
|
||||||
|
|
||||||
// copy properties here:
|
// copy properties here:
|
||||||
@ -3994,7 +3997,6 @@ process_packet(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTim
|
|||||||
pfrom_->setKnown = pfrom->setKnown;
|
pfrom_->setKnown = pfrom->setKnown;
|
||||||
pfrom_->setInventoryKnown = pfrom->setInventoryKnown;
|
pfrom_->setInventoryKnown = pfrom->setInventoryKnown;
|
||||||
pfrom_->vInventoryToSend = pfrom->vInventoryToSend;
|
pfrom_->vInventoryToSend = pfrom->vInventoryToSend;
|
||||||
pfrom_->vInventoryToSend = pfrom->vInventoryToSend;
|
|
||||||
//pfrom_->cs_inventory = pfrom->cs_inventory;
|
//pfrom_->cs_inventory = pfrom->cs_inventory;
|
||||||
pfrom_->mapAskFor = pfrom->mapAskFor;
|
pfrom_->mapAskFor = pfrom->mapAskFor;
|
||||||
pfrom_->nPingNonceSent = pfrom->nPingNonceSent;
|
pfrom_->nPingNonceSent = pfrom->nPingNonceSent;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user