Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST: Cleanup Tx Broadcasting and Encoding #3696

Merged
merged 15 commits into from
Feb 26, 2019

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Feb 20, 2019

  • Remove encode and broadcast from x/auth client -- it doesn't belong there and broadcasting was already duplicated client/tx.
  • Move encode route and command to client/tx package
  • Minor cleanup (removing dup/unused code)

closes: #3692

Note, @cosmos/cosmos-ui , this removes the duplicate broadcasting endpoint. However, one endpoint accepted a StdTx and the other accepted raw bytes. I think the former is more desirable and easier for clients. So I updated POST @ /txs to accept a StdTx now.


  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added entries in PENDING.md with issue #

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@alexanderbez alexanderbez added REST Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Feb 20, 2019
@alexanderbez alexanderbez added the T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). label Feb 20, 2019
@alexanderbez alexanderbez marked this pull request as ready for review February 20, 2019 16:32
@codecov
Copy link

codecov bot commented Feb 20, 2019

Codecov Report

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

@@            Coverage Diff             @@
##             develop    #3696   +/-   ##
==========================================
  Coverage           ?   61.19%           
==========================================
  Files              ?      189           
  Lines              ?    14042           
  Branches           ?        0           
==========================================
  Hits               ?     8593           
  Misses             ?     4911           
  Partials           ?      538

client/lcd/swagger-ui/swagger.yaml Show resolved Hide resolved
client/tx/broadcast.go Outdated Show resolved Hide resolved
Copy link
Member

@jackzampolin jackzampolin left a comment

Choose a reason for hiding this comment

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

Nice! LGTM 👍

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

Duplicate PENDING.md entry I think, otherwise LGTM.

PENDING.md Outdated Show resolved Hide resolved
@cwgoes cwgoes added this to the v0.33.0 (Launch) milestone Feb 25, 2019
@cwgoes cwgoes merged commit 6ace1fa into develop Feb 26, 2019
@cwgoes cwgoes deleted the bez/3692-remove-dup-broadcast branch February 26, 2019 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REST: tx/ vs tx/broadcast
4 participants