reset the cost of the packet back to 0 so it doesn't keep accumulating

This commit is contained in:
Stephen Birarda 2014-07-30 14:02:46 -07:00
parent 7a128e5f77
commit ab1be38fd5

View file

@ -324,6 +324,9 @@ void OctreeEditPacketSender::initializePacket(EditPacketBuffer& packetBuffer, Pa
packetBuffer._currentSize += sizeof(quint64); // nudge past timestamp
packetBuffer._currentType = type;
// reset cost for packet to 0
packetBuffer._satoshiCost = 0;
}
bool OctreeEditPacketSender::process() {