Skip to content

lcd implemenation#256

Merged
wukongcheng merged 29 commits intoirisnet:feature/lcdfrom
HaoyangLiu:feature/lcd-dev-3
Sep 19, 2018
Merged

lcd implemenation#256
wukongcheng merged 29 commits intoirisnet:feature/lcdfrom
HaoyangLiu:feature/lcd-dev-3

Conversation

@HaoyangLiu
Copy link

Main changes:

  • Add rest handlers for bank and tendermint for lcd implementation
  • Refactor code for tendermint api
  • Rename utils.go to common.go in bank and keys modules
  • Improve add coin type convertion for gov and stake
  • Move iriscli status to root command

HaoyangLiu added 24 commits September 17, 2018 19:37
IRISHUB-357: go fmt block.go searchtx.go and validatorset.go
IRISHUB-357: fix a bug in assign account number to sequent
signerAddress, err := sdk.AccAddressFromBech32(cliCtx.Signer)
if err == nil {
return signerAddress, nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

if err != nil ? Will it cause the undefined behavior?

Height int64
NodeURI string
FromAddressName string
Signer string
Copy link
Contributor

Choose a reason for hiding this comment

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

Is any docs stating that how many contexts we defined and what 's their use case ?

func (baseTx BaseTx) Validate(cliCtx CLIContext) error {
if cliCtx.GenerateOnly {
if len(baseTx.LocalAccountName) == 0 && len(cliCtx.Signer) == 0 {
return fmt.Errorf("In generate-only mode, either key name or signer address should be specified")
Copy link
Contributor

Choose a reason for hiding this comment

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

All these Error should be defined in a errors.go ( as modules/gov/errors.go)

Copy link
Contributor

@wukongcheng wukongcheng left a comment

Choose a reason for hiding this comment

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

need some change

@wukongcheng wukongcheng merged commit 8addbad into irisnet:feature/lcd Sep 19, 2018
wangjiulian pushed a commit that referenced this pull request Nov 7, 2024
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