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

[backports]: v0.40.0-rc2 Cherry-picks #7734

Closed

Commits on Oct 29, 2020

  1. shutdown gracefully without os.Exit (#7480)

    * shutdown gracefully without os.Exit
    
    * Update server/util.go
    
    Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
    Co-authored-by: Alessio Treglia <alessio@tendermint.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    0fc0b34 View commit details
    Browse the repository at this point in the history
  2. Remove ClientType func and update consensus state path (#7573)

    * update paths and remove unused func
    
    * fix bug
    
    Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
    Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    4 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1db641d View commit details
    Browse the repository at this point in the history
  3. Refactor x/staking Validation and Delegation tests based on MsgCreate…

    …Validator.Pubkey type change. (#7526)
    
    * testing: refactore Validation and Delegation handling of x/staking
    
    This Changeset introduces set of improvements for writing tests.
    
    The idea is to create a testing subpackage which will provide functions
    to make tests more dev-friendly and wrap higher level use-cases.
    Here is a show-up of of creating a service for staking module
    for tests.
    
    This PR also changes the `x/staking/types.MsgCreateValidator.Pubkey` from string
    to types.Any. This change motivated the other change to show the pattern I'm describing here.
    
    * add validator checks
    
    * type change fixes
    
    * use deprecated
    
    * adding test slashing
    
    * new network comment update
    
    * working on tests
    
    * Fix TestMsgPkDecode test
    
    * Add UnpackInterfaces to MsgCreateValidator
    
    * Fix tests
    
    * Convert bech32 pubkey to proto
    
    * Fix test
    
    * fix v039/migrate_test/TestMigrate
    
    * fix tests
    
    * testslashing: rename Service to Helper
    
    * file rename
    
    * update TestMsgDecode
    
    Co-authored-by: blushi <marie.gauthier63@gmail.com>
    Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
    Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
    4 people committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    95f4fc8 View commit details
    Browse the repository at this point in the history
  4. fix sequence checks in solomachine (#7586)

    Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    2bc7fa8 View commit details
    Browse the repository at this point in the history
  5. Bugfix gov votes querier to use votes params (#7589)

    * bugfix gov votes querier to use votes params
    
    * move partially used statement to the proper block
    
    Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    eab96fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    64c8cf7 View commit details
    Browse the repository at this point in the history
  7. Use any as validator pubkey (#7597)

    * protobuf pubkey type update
    
    * wip2
    
    * wip3
    
    * solving types.NewValidator issues
    
    * remove bech32 from validator type assignment
    
    * update Validator interface
    
    * Changelog update
    
    * wip4
    
    * update genutil
    
    * fix simapp & x/ibc/testing tests
    
    * update staking
    
    * changelog update
    
    * fix import cycle in tests
    
    * fix amino panic on TestValidatorMarshalUnmarshalJSON
    
    * fix TestValidatorMarshalUnmarshalJSON consensus_pubkey check
    
    * Add UnpackInterfaces to HistoricalInfo
    
    * fix TestHistoricalInfo
    
    * update todos
    
    * fix: Expecting ed25519.PubKey to implement proto.Message
    
    * fix linter issues
    
    * Fix migrate test
    
    * Update CHANGELOG.md
    
    Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
    
    * review comments
    
    * cosmetic changes
    
    * add UnpackInterfaces got GenesisRandomized test
    
    * Validator.Equal reuses Validator.MinEqual
    
    * fix test
    
    * use Validator.Equal in tests
    
    * Fix staking simulation TestRandomizedGenState
    
    * Remove TODO
    
    * use HistoricalInfo.Equal
    
    * use proto.Equal
    
    * rename Validator.GetConsPubKey to TmConsPubKey
    
    * prefer require.Equal over reflect.DeepEqual
    
    * SetHistoricalInfo using a pointer
    
    * Fix TestQueryDelegation test
    
    * Fix TestQueryValidators test
    
    * Fix TestSimulateMsgUnjail test
    
    * experiement with LegacyAmino instances
    
    * Register codecs in all simapp tests
    
    * Fix cli_test compilation problems
    
    * fix typo sdk -> std
    
    * fix typo
    
    * fix TestPlanStringer
    
    * Rename to MakeEncodingConfig
    
    * Remove RegisterCodecsTests
    
    * Use gRPC in GetCmdQueryValidators
    
    * Empty status
    
    * fix info log check
    
    * linter fixes
    
    * rename simapparams to simappparams
    
    * Update simapp/test_helpers.go
    
    Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
    
    * comments updates
    
    * use valAddr1 instead of sdk.ValAddress(pk1.Address().Bytes())
    
    Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
    Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
    Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
    4 people committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d7dded3 View commit details
    Browse the repository at this point in the history
  8. Fix IBC Query cmds (#7648)

    * fix query
    
    * update comment
    colin-axner authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d488a18 View commit details
    Browse the repository at this point in the history
  9. IBC: panic on GetSignBytes and remove SubModuleCdc (#7645)

    * panic on GetSignBytes and remove SubModuleCdc where possible
    
    * fix build
    
    Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c0ae5c9 View commit details
    Browse the repository at this point in the history
  10. Return an unsigned tx in legacy GET /tx endpoint when signature conve…

    …rsion fails (#7649)
    
    * Return an unsigned tx in legacy GET /tx endpoint when signature conversion fails
    
    * Add test
    
    * add comment
    
    * add comment
    
    * add comment
    aaronc authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    e715a91 View commit details
    Browse the repository at this point in the history
  11. Create separate Write-Ack Event (#7683)

    * use separate type for write ack
    
    * change event-type
    
    Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    4c4e255 View commit details
    Browse the repository at this point in the history
  12. Wrap ProtoCodec in interface (#7637)

    * WIP encoding change
    
    * Add test that describes issue
    
    * WIP debugging
    
    * remove extra code
    
    * Update codec/proto_codec.go
    
    Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d5c6011 View commit details
    Browse the repository at this point in the history
  13. ibc: refactor proto files (#7689)

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    7d0c0be View commit details
    Browse the repository at this point in the history
  14. simapp: rename MakeEncodingConfig to MakeTestEncodingConfig (#7681)

    * simapp: rename MakeEncodingConfig to MakeTestEncodingConfig
    
    * Updating the Changelog
    
    + Adding DEPRECATED attribute.
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    2e52ba2 View commit details
    Browse the repository at this point in the history
  15. Fix Optimistic Channel Handshake bugs (#7678)

    * fix optimistic handshake bugs and add crossing hello test
    
    * fix tests
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    cd21a47 View commit details
    Browse the repository at this point in the history
  16. update core IBC docs (#7560)

    * update state
    
    * add empty concept fields, update callbacks and messages
    
    * update client creation, update and upgrade section
    
    * add packet lifecycle concepts
    
    * add host and proof section
    
    * add connection handshake section
    
    * add channel handshakes
    
    * state transitions
    
    * self review fixes
    
    * Apply suggestions from code review
    
    Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
    
    * apply @fedekunze review suggestions
    
    * packet data section
    
    * Apply suggestions from code review
    
    Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
    
    * add @cwgoes and @fedekunze review suggestions
    
    * fix typos
    
    Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
    Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    4 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    564687d View commit details
    Browse the repository at this point in the history
  17. ibc: Connection Version changed from string to proto definition (#7644)

    * ibc: Version to proto Any
    
    * change version string to struct
    
    * various version fixes
    
    * fix build
    
    * reorder code
    
    * update spec
    
    * rename to ProtoVersionsToExported and ExportedVersionsToProto
    
    Co-authored-by: Colin Axner <colinaxner@berkeley.edu>
    Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    4 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    48fb155 View commit details
    Browse the repository at this point in the history
  18. Rename RegisterGRPCRoutes (#7696)

    * Rename
    
    * Fix missing
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    2 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    acc4d46 View commit details
    Browse the repository at this point in the history
  19. docs: Basic/App-anatomy explains Msg Service by default (#7670)

    * Add msg service
    
    * Add handlers
    
    * Small tweaks
    
    * Remove todo
    
    Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    7f275d5 View commit details
    Browse the repository at this point in the history
  20. Fix panic in context when setting nodeURI (#7699)

    * Fix panic in context
    
    Move URI parsing outside of context. WithNodeURI will only set the nodeURI. To set the Client in the context, WithClient must be called.
    
    * add changelog
    
    * add deleted space back
    colin-axner authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    9c64301 View commit details
    Browse the repository at this point in the history
  21. init: Implement ADR 032 typed events (#7564)

    * Add EmitTypedEvent in events
    
    * Add parseTypedEvent method
    
    * Use jsonpb
    
    * Modify unmarshal proto in events
    
    * Add a test for typed events
    
    * Fix reflect  issue in parseTypedEvent
    
    * Modify event tests and add comments
    
    * Add EmitTypedEvents and refactor other methods
    
    * Fix golangci-lint issues
    
    * Update ProtoMarshalJSON params
    
    * Address PR comments
    
    Co-authored-by: anilCSE <anil@vitwit.com>
    Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    4 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    9d35a32 View commit details
    Browse the repository at this point in the history
  22. msg_service_router: reduce code complexity (#7570)

    * msg_service_router: reduce code complexity
    
    * order imports
    
    Co-authored-by: Alessio Treglia <alessio@tendermint.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ca621d3 View commit details
    Browse the repository at this point in the history
  23. RegisterInterfaces registers service Msg type_urls (#7671)

    * Add RegisterMsgServiceDesc
    
    * Refactor newSendTxMsgServiceCmd
    
    * Add test
    
    * Register in all modules
    
    * Remove RegisterMsgServiceDesc from baseapp
    
    * Add explicit error message
    
    * Add comment
    
    * Update comment
    
    * Add test
    
    * Update comment
    
    * Remove duplicate import
    
    * Fix lint
    
    * Forgot vesting
    
    * Fix lint
    
    * Fix test
    
    * Put in types/module
    
    * Put in types/msgservice
    
    * Add comment about panic
    
    * Update baseapp/msg_service_router.go
    
    Co-authored-by: Robert Zaremba <robert@zaremba.ch>
    
    * Update baseapp/msg_service_router.go
    
    Co-authored-by: Robert Zaremba <robert@zaremba.ch>
    
    * Update baseapp/msg_service_router.go
    
    Co-authored-by: Robert Zaremba <robert@zaremba.ch>
    
    * Add comment
    
    * Add better test
    
    * Update baseapp/msg_service_router.go
    
    Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
    
    Co-authored-by: Robert Zaremba <robert@zaremba.ch>
    Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    4 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f33dced View commit details
    Browse the repository at this point in the history
  24. Sort validators like tendermint in HistoricalInfo (#7691)

    * sort validators like tendermint
    
    * address comments
    
    * switch ordering in tests
    
    * change sort logic in error case
    
    * don't change test validators array order
    
    Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    5a46012 View commit details
    Browse the repository at this point in the history
  25. Add Deprecation headers for legacy rest endpoints (#7686)

    * add deprecation headers for legacy rest endpoints
    
    * add deprecation headers for missing tx routes
    
    * rm handler-level deprecation headers
    
    * switch to middleware Route.Use method for setting deprecation Headers
    
    * set deprecation headers using subrouter
    
    * cleanup gofmt
    
    * goimports
    
    * Update client/rest/rest.go
    
    * update deprecation headers to be set on each module individually
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    clevinson and mergify[bot] committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    e1c7d02 View commit details
    Browse the repository at this point in the history
  26. remove proof path from IBC queries (#7725)

    * remove proof path
    
    * make proto-all with old install
    
    * fix build
    colin-axner authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c06a2a4 View commit details
    Browse the repository at this point in the history
  27. Throw an error on duplicate registration (#7729)

    * Panic on registering a service twice
    
    * Panic if we register twice
    
    * Fix test
    
    * Fix test
    
    * Add clearer panic message
    
    * Add comment
    
    * Fix test
    amaury1093 authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6ae3a94 View commit details
    Browse the repository at this point in the history
  28. Add function to query ack proofs (#7732)

    * Add function to query ack proofs
    
    * Fix compilation issue
    
    Co-authored-by: Aditya <adityasripal@gmail.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and clevinson committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    778c37b View commit details
    Browse the repository at this point in the history