Skip to content

Single cosmos account#1459

Merged
NicolasMahe merged 9 commits intodevfrom
feature/single-account
Nov 6, 2019
Merged

Single cosmos account#1459
NicolasMahe merged 9 commits intodevfrom
feature/single-account

Conversation

@NicolasMahe
Copy link
Copy Markdown
Member

@NicolasMahe NicolasMahe commented Nov 4, 2019

Simplify the account management to use only one account across the Engine that can be configured in Config. Rename the generated account to engine

closes #1458

@NicolasMahe NicolasMahe added this to the next milestone Nov 4, 2019
@NicolasMahe NicolasMahe self-assigned this Nov 4, 2019
Comment thread core/main.go
return errs.ErrorOrNil()
}

func loadOrGenConfigAccount(kb *cosmos.Keybase, cfg *config.Config) (keys.Info, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this could be in engine keybase package to extend cosmos keybase.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All the function you mean?
I already put the Exist function in keybase.
I don't think we will have this logic of loadOrGen in any other place.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All the function you mean?

Yes

I don't think we will have this logic of loadOrGen in any other place.

And that's fine. The Keybase wrapper was created to handle such cases. so you don't put them in other places (like main.go).

func (kb *Keybase) LoadOrGenAccount(name, password string) (keys.Info, error) { 
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is not compatible with Anthony's suggestion https://github.com/mesg-foundation/engine/pull/1459/files#r342436168

Comment thread cosmos/keybase.go
Comment thread server/grpc/api/service.go Outdated
Comment thread core/main.go
Comment thread internal/tools/gen-genesis/main.go
Comment thread server/grpc/api/service.go Outdated
Copy link
Copy Markdown
Member

@antho1404 antho1404 left a comment

Choose a reason for hiding this comment

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

@NicolasMahe NicolasMahe merged commit 66ad32f into dev Nov 6, 2019
@NicolasMahe NicolasMahe deleted the feature/single-account branch November 6, 2019 07:30
@NicolasMahe NicolasMahe mentioned this pull request Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a single cosmos account across the Engine

3 participants