Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some xxx comments and the config.mempool.recheck_empty #2505

Merged
merged 4 commits into from Sep 30, 2018

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Sep 28, 2018

Remove/update a few XXX/TODO found in the code that are stale or can be quickly addressed.

Also realized we can just remove Config.Mempool.RecheckEmpty. It defaults to true and was a useless option.

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@ebuchman ebuchman changed the title Bucky/remove some xxx remove some xxx comments and the config.mempool.recheck_empty Sep 28, 2018
@@ -206,7 +206,6 @@ private_peer_ids = "{{ .P2P.PrivatePeerIDs }}"
[mempool]

recheck = {{ .Mempool.Recheck }}
recheck_empty = {{ .Mempool.RecheckEmpty }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also needs to be removed from docs/tendermint-core/configuration/md

type FilePV struct {
Address types.Address `json:"address"`
PubKey crypto.PubKey `json:"pub_key"`
LastHeight int64 `json:"last_height"`
LastRound int `json:"last_round"`
LastStep int8 `json:"last_step"`
LastSignature []byte `json:"last_signature,omitempty"` // so we dont lose signatures XXX Why would we lose signatures?
LastSignBytes cmn.HexBytes `json:"last_signbytes,omitempty"` // so we dont lose signatures XXX Why would we lose signatures?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps change these lines to "so we maintain signatures in event of a crash"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New comment on this struct not sufficient?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I missed it, my bad

@codecov-io
Copy link

codecov-io commented Sep 28, 2018

Codecov Report

Merging #2505 into develop will decrease coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #2505      +/-   ##
===========================================
- Coverage    61.35%   61.31%   -0.04%     
===========================================
  Files          202      202              
  Lines        16668    16707      +39     
===========================================
+ Hits         10226    10244      +18     
- Misses        5580     5597      +17     
- Partials       862      866       +4
Impacted Files Coverage Δ
config/config.go 69.1% <ø> (-0.13%) ⬇️
privval/priv_validator.go 71.02% <ø> (ø) ⬆️
node/node.go 65.65% <ø> (ø) ⬆️
config/toml.go 53.19% <ø> (ø) ⬆️
mempool/mempool.go 73.89% <100%> (-0.74%) ⬇️
libs/db/remotedb/grpcdb/client.go 0% <0%> (ø) ⬆️
libs/db/remotedb/remotedb.go 41.52% <0%> (+4.68%) ⬆️

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰 🌮 🦀

@ebuchman ebuchman merged commit 52e21ce into develop Sep 30, 2018
@ebuchman ebuchman deleted the bucky/remove-some-xxx branch September 30, 2018 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants