Conversation
consensus/reactor.go
Outdated
| if nrsMsg != nil { | ||
| peer.Send(StateChannel, struct{ ConsensusMessage }{nrsMsg}) | ||
| if !peer.Send(StateChannel, struct{ ConsensusMessage }{nrsMsg}) { | ||
| log.Warn("Failed to send NewRoundStepMessage to peer") |
There was a problem hiding this comment.
not sure whenever we should log.Warn every unsuccessful Send
ebuchman
left a comment
There was a problem hiding this comment.
Looks good. But I'd probably rather we revert the Fmt changes.
Also, maybe we can test this on mintnet-k8 to see how chatty the warnings are?
blockchain/reactor.go
Outdated
| } | ||
| if state.LastBlockHeight != store.Height() { | ||
| PanicSanity(Fmt("state (%v) and store (%v) height mismatch", state.LastBlockHeight, store.Height())) | ||
| cmn.PanicSanity(fmt.Sprintf("state (%v) and store (%v) height mismatch", state.LastBlockHeight, store.Height())) |
There was a problem hiding this comment.
do you think we should stop using cmn.Fmt?
There was a problem hiding this comment.
I've created this a long time ago)) and changed my mind since then. I do think we should rely on common as little as possible. But here, it is somewhat justified
good idea! |
5a25f77 to
09f2948
Compare
make lint happy remove dead code remove not needed go-common dependency check peer.Send failures (Refs tendermint#174)
09f2948 to
6dbe9fe
Compare
When I block incoming connections for port 46656 ( When I block outgoing packets to NOTE for myself: in docker if you want to run |
a8c1f59 to
2c724d5
Compare
|
That said, we should either stick with |
|
Ok, will merge PR and leave original issue open about higher level management of failed sends. Tho the checks in here should hopefully help (ie. not calling HasX unless the Send succeeds) |
* Docs fixes (tendermint#368) * fixing broken link quick-start (tendermint#319) * fix link to point to relative page (tendermint#319) * fix link to point to rpc page (tendermint#319) * fix link that works for rpc (tendermint#319) * adding front matter to trigger hooks (tendermint#319) * add frontmatter to adr page (tendermint#319) * make link to configuration page relative (tendermint#319) * remove irrelevant text (tendermint#319) * updating relative link and removing irrelevant text (tendermint#319) * remove front matter from ADR (tendermint#319) * fixing broken links unders docs/tools (tendermint#319) * fixing broken links under spec/core (tendermint#319) * fixing broken links in spec/abci home (tendermint#319) * fix uparrows rendering and broken links (tendermint#319) * fixing links, comments on abci methods (tendermint#319) * fixing links in tutorials (tendermint#319) * adding a landing page for Apps (tendermint#319) * renaming qa v0.34 page to show in navigation (tendermint#319) * rename title of page for navigation (tendermint#319) * fixing links on abci client server (tendermint#319) * changes to allow RPC top level navigation on docs site (tendermint#319) * fixing some more broken references (tendermint#319) * reverting link change as per review (tendermint#319) * reverting link change as per review (tendermint#319) * reverting link in app-dev as per review (tendermint#319) (cherry picked from commit 28baba3) # Conflicts: # docs/core/rpc.md # docs/tools/debugging.md # docs/tutorials/go-built-in.md # docs/tutorials/go.md # spec/abci/README.md # spec/abci/abci++_basic_concepts.md # spec/abci/abci++_client_server.md # spec/abci/abci++_methods.md * fix conflicts * fixing rpc content (tendermint#373) * Update docs/core/rpc.md Co-authored-by: Daniel <daniel.cason@informal.systems> * remove the inspect cmd info (tendermint#373) * remove RPC section tied to inspect cmd (tendermint#373) * fix rpc link (tendermint#373) --------- Co-authored-by: Andy Nogueira <me@andynogueira.dev> Co-authored-by: Adi Seredinschi <a@seredinschi.net> Co-authored-by: Daniel <daniel.cason@informal.systems>
See #174 for the issue & discussion.