Skip to content

cmd/tendermint/commands/lite: add tcp scheme to address URLs#1297

Merged
melekes merged 1 commit intodevelopfrom
cmd-lite-add-tcp-scheme-to-urls
Mar 12, 2018
Merged

cmd/tendermint/commands/lite: add tcp scheme to address URLs#1297
melekes merged 1 commit intodevelopfrom
cmd-lite-add-tcp-scheme-to-urls

Conversation

@odeke-em
Copy link
Contributor

Noticed while investigating
#970

As reported by @zramsay, we'd get the warning
from tendermint/rpc/lib because we were passing in
scheme-less addresses, so by default use "tcp".

Also by default, "node" (nodeAddr) has been set to:
"tcp://localhost:46657"
instead of the bare:
"localhost:46657"

This change is just to clean up such warnings as
they spuriously would spook users for a package "lite"
that claims to be secure.

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

Noticed while investigating
#970

As reported by @zramsay, we'd get the warning
from tendermint/rpc/lib because we were passing in
scheme-less addresses, so by default use "tcp".

Also by default, "node" (nodeAddr) has been set to:
  "tcp://localhost:46657"
instead of the bare:
  "localhost:46657"

This change is just to clean up such warnings as
they spuriously would spook users for a package "lite"
that claims to be secure.
@odeke-em odeke-em requested a review from zramsay March 11, 2018 03:11
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (develop@3d5c05e). Click here to learn what that means.
The diff coverage is 5.55%.

@@            Coverage Diff             @@
##             develop    #1297   +/-   ##
==========================================
  Coverage           ?   60.28%           
==========================================
  Files              ?      112           
  Lines              ?    10880           
  Branches           ?        0           
==========================================
  Hits               ?     6559           
  Misses             ?     3675           
  Partials           ?      646
Impacted Files Coverage Δ
cmd/tendermint/commands/lite.go 14.7% <5.55%> (ø)

@melekes melekes merged commit 0de1942 into develop Mar 12, 2018
@melekes melekes deleted the cmd-lite-add-tcp-scheme-to-urls branch March 12, 2018 06:03
@odeke-em
Copy link
Contributor Author

Thank you @melekes for the review and merge!

firelizzard18 pushed a commit to AccumulateNetwork/tendermint that referenced this pull request Feb 1, 2024
* Check if genesis file is persisted in the DB and delete it.

This should only happen when a node upgrades to a version of CometBFT
that does not persist the genesis file.

* Removed check for whether key exist, just call delete

* Apply typo fix

Co-authored-by: Andy Nogueira <me@andynogueira.dev>

* Added changelog

* Moved log message up front

* Apply suggestions from code review

Co-authored-by: Sergio Mena <sergio@informal.systems>

---------

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
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.

3 participants