Skip to content

config: Add ValidateBasic#2485

Merged
xla merged 3 commits intodevelopfrom
2232-validate-basic
Sep 26, 2018
Merged

config: Add ValidateBasic#2485
xla merged 3 commits intodevelopfrom
2232-validate-basic

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Sep 25, 2018

DO NOT SQUASH BEFORE MERGING

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

@xla xla changed the title [config] add ValidateBasic config: Add ValidateBasic Sep 25, 2018
@melekes melekes force-pushed the 2232-validate-basic branch from 281d7a8 to 62eafed Compare September 25, 2018 11:50
Why:
- native type provides better guarantees than ", in ms" comment (harder
to shoot yourself in the leg)
- flexibility: you can change units
@melekes melekes force-pushed the 2232-validate-basic branch from 62eafed to cb56692 Compare September 25, 2018 11:52
@codecov-io
Copy link

Codecov Report

Merging #2485 into develop will decrease coverage by 0.04%.
The diff coverage is 37.23%.

@@             Coverage Diff             @@
##           develop    #2485      +/-   ##
===========================================
- Coverage    61.36%   61.32%   -0.05%     
===========================================
  Files          197      197              
  Lines        16449    16496      +47     
===========================================
+ Hits         10094    10116      +22     
- Misses        5517     5522       +5     
- Partials       838      858      +20
Impacted Files Coverage Δ
config/toml.go 53.19% <ø> (ø) ⬆️
cmd/tendermint/commands/root.go 55.55% <0%> (-4.45%) ⬇️
consensus/state.go 77.3% <100%> (ø) ⬆️
config/config.go 69.23% <32.91%> (-13.45%) ⬇️
consensus/reactor.go 72.86% <66.66%> (+1.29%) ⬆️
blockchain/pool.go 66.43% <0%> (+0.69%) ⬆️
p2p/peer.go 62.73% <0%> (+3.72%) ⬆️

@xla xla merged commit 4c4a95c into develop Sep 26, 2018
@xla xla deleted the 2232-validate-basic branch September 26, 2018 10:04
Copy link
Contributor

@ebuchman ebuchman left a comment

Choose a reason for hiding this comment

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

Awesome work, thanks!


* Go API
- [node] Remove node.RunForever
- [config] \#2232 timeouts as time.Duration, not ints
Copy link
Contributor

Choose a reason for hiding this comment

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

Also a breaking change to the CLI/RPC/Config section since this now means the timeout params in the config.toml are strings like "100ms" or "3s"

iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Jul 10, 2024
…endermint#2485)

This is an automatic backport of pull request tendermint#2483 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Sergio Mena <sergio@informal.systems>
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.

5 participants