Browse Source
Changed CDataStream::GetAndClear() to use the most obvious get get and clear instead of a tricky swap(). Added a unit test for CDataStream insert/erase/GetAndClear. Note: GetAndClear() is not performance critical, it is used only by the send-a-message-to-the-network code. Bug was not noticed before now because the send-a-message code never erased from the stream. Rebased-from: b56b10252f8f5374cbe750178e57460b4aeaeeef 0.8.x0.8
Gavin Andresen
11 years ago
committed by
Warren Togami
2 changed files with 50 additions and 2 deletions
Loading…
Reference in new issue