Skip to content

Conversation

@joojis
Copy link
Contributor

@joojis joojis commented Aug 14, 2018

No description provided.


impl SimpleSecretStore for KeyStore {
fn insert_account(&self, secret: Secret, password: &Password) -> Result<Address, Error> {
self.store.insert_account(secret, password)
Copy link
Member

Choose a reason for hiding this comment

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

What does store.insert_account return when the account already exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess it's a legacy from Parity, the store is KeyMultiStore. KeyMultiStore can store multiple accounts with different passwords for one address. In that case, the store allows the address to use if one of the passwords is given.

joojis added a commit to CodeChain-io/codechain-sdk-js that referenced this pull request Aug 16, 2018
The account RPC error tests should resume after merging
CodeChain-io/codechain#585
@joojis joojis force-pushed the account-rpc-errors branch from 63847e2 to 3c6067a Compare August 16, 2018 11:18
@kseo kseo added this to the Testnet milestone Aug 16, 2018
Copy link
Member

@kseo kseo left a comment

Choose a reason for hiding this comment

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

Ok

@kseo kseo merged commit 9e46c0b into CodeChain-io:master Aug 16, 2018
@joojis joojis deleted the account-rpc-errors branch August 21, 2018 08:03
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