Skip to content

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

Merged
ebuchman merged 4 commits intodevelopfrom
bucky/remove-some-xxx
Sep 30, 2018
Merged

remove some xxx comments and the config.mempool.recheck_empty#2505
ebuchman merged 4 commits intodevelopfrom
bucky/remove-some-xxx

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 force-pushed the bucky/remove-some-xxx branch from f513b27 to 4ed365e Compare September 28, 2018 15:07
@ebuchman ebuchman changed the title Bucky/remove some xxx remove some xxx comments and the config.mempool.recheck_empty Sep 28, 2018
[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

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%) ⬆️

@ebuchman ebuchman requested a review from zramsay as a code owner September 28, 2018 17:25
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.

4 participants