Skip to content

Conversation

paveljanik
Copy link
Contributor

The deserialization stuff was copied from peers.dat...

@fanquake fanquake added the Docs label Nov 24, 2016
@maflcko
Copy link
Member

maflcko commented Nov 24, 2016

I remember some rule that comments should not describe what the code does, but rather why the code does (some weird) stuff.

I don't think (de)serialization is weird, so you might as well remove those altogether?

@paveljanik
Copy link
Contributor Author

@MarcoFalke I do not have problem with that. Will wait for other comments.

@jonasschnelli
Copy link
Contributor

ACK f26da35.
I'm all in for better comments (can be a different PR).

@paveljanik
Copy link
Contributor Author

Yes, in this case, it documents the contents of the file being read.

@maflcko
Copy link
Member

maflcko commented Nov 24, 2016

Fine, just going to merge this.

@maflcko maflcko merged commit f26da35 into bitcoin:master Nov 24, 2016
maflcko pushed a commit that referenced this pull request Nov 24, 2016
f26da35 Fix copypasted comment. (Pavel Janík)
codablock pushed a commit to codablock/dash that referenced this pull request Jan 17, 2018
f26da35 Fix copypasted comment. (Pavel Janík)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
f26da35 Fix copypasted comment. (Pavel Janík)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 25, 2019
f26da35 Fix copypasted comment. (Pavel Janík)
random-zebra added a commit to PIVX-Project/PIVX that referenced this pull request Apr 20, 2021
…+ Add file syncing logging and error handling

d593e7e Migrate remaining FLATDATA serialization, we are natively supporting it now. (furszy)
051970d addrdb: Remove temporary files created in SerializeFileDB. Fixes non-determinism in unit tests. (practicalswift)
4be426f Add logging and error handling for file syncing (Wladimir J. van der Laan)
8662fb3 Remove unused double_safe_addition & double_safe_multiplication functions. (furszy)
a7c3885 Add native support for serializing char arrays without FLATDATA (Pieter Wuille)
459ecb9 Deduplicate addrdb.cpp and use CHashWriter/Verifier (Pieter Wuille)
a5d2f8a Fix copypasted comment. (Pavel Janík)

Pull request description:

  Digging down the peers and ban databases commits path in upstream found some good stuff, back ported the following PRs:

  * bitcoin#9216.
  * bitcoin#10248.
  * bitcoin#12740.
  * bitcoin#13039.
  * bitcoin#16212.

ACKs for top commit:
  random-zebra:
    ACK d593e7e
  Fuzzbawls:
    ACK d593e7e

Tree-SHA512: 8d567c68a2c36f43c749d5faa4b7f8a299dbfdda133495df434ac642c1a2ac96dc2259123ad85decc9039c62c46602665f6be4aadf6d5bf729344c51692ec60e
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants