Skip to content

p2p: message byte measurement (WIP) - #9599

Closed
williambanfield wants to merge 51 commits into
mainfrom
wb/envelope-experiments
Closed

williambanfield wants to merge 51 commits into
mainfrom
wb/envelope-experiments

Conversation

@williambanfield

Copy link
Copy Markdown
Contributor

DRAFT: DO NOT MERGE

This change resurrects the envelope abstraction.

PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

Comment thread p2p/mock/peer.go
func (mp *Peer) FlushStop() { mp.Stop() } //nolint:errcheck //ignore error
func (mp *Peer) TrySend(chID byte, msgBytes []byte) bool { return true }
func (mp *Peer) Send(chID byte, msgBytes []byte) bool { return true }
func (mp *Peer) FlushStop() { mp.Stop() } //nolint:errcheck //ignore error

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
Comment thread consensus/reactor.go Fixed
Comment thread p2p/peer.go Fixed
@williambanfield
williambanfield force-pushed the wb/envelope-experiments branch from f548ff2 to 7e5f932 Compare October 20, 2022 16:57
Comment thread consensus/reactor.go
IsCommit: rs.Step == cstypes.RoundStepCommit,
}
conR.Switch.Broadcast(StateChannel, MustEncode(csMsg))
MsgToProto(csMsg)

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
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.

2 participants