BitShares Forum

Main => General Discussion => Topic started by: autumn84 on July 26, 2014, 04:09:12 am

Title: can't add contact sometimes, help~
Post by: autumn84 on July 26, 2014, 04:09:12 am
sometimes I can't add contact account, my wallet version is 0.2.2, in Ubuntu, can somebody help?

for example:
localtest (unlocked) >>> wallet_add_contact_account  rewardsomebody BTSX6uPc7ZjkyKeHdkkr9wadzYktRn7KKixDbPo3UuDGYGtL1hcsFw
10 assert_exception: Assert Exception
!account_key.valid(): Provided key belongs to another account.
    {}
    th_a  wallet.cpp:1449 add_contact_account

    {"account_name":"rewardsomebody","key":"BTSX6uPc7ZjkyKeHdkkr9wadzYktRn7KKixDbPo3UuDGYGtL1hcsFw"}
    th_a  wallet.cpp:1462 add_contact_account

    {}
    th_a  common_api_client.cpp:899 wallet_add_contact_account

    {"command":"wallet_add_contact_account"}
    th_a  cli.cpp:540 execute_command
localtest (unlocked) >>>
localtest (unlocked) >>>
localtest (unlocked) >>> wallet_list_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            FAVORITE       APPROVED       
hot105                             BTSX6Ep6HFeS67uzqrSZrzwyQpVudntuEG424RfWCv7x1zbjXg6Jb2          NO                    NO             0         
localremote                      BTSX5hzCPsQpBxd81SznNKMsVKzbd1i8YmyC6mVDFShJDLYC4bh5pA          NO                    NO             0         
localtest (unlocked) >>>

but when I use wallet_list_accounts, there is no account with the key "BTSX6uPc7ZjkyKeHdkkr9wadzYktRn7KKixDbPo3UuDGYGtL1hcsFw".
Title: Re: can't add contact sometimes, help~
Post by: crazybit on July 26, 2014, 04:22:04 am
looks like you have added this key to other name in your wallet
Title: Re: can't add contact sometimes, help~
Post by: autumn84 on July 26, 2014, 04:30:16 am
looks like you have added this key to other name in your wallet

If I have added the key before, how can I find the account name and remove it?
when I use wallet_list_accounts, there is no account with the key, what shuold I do?
Title: Re: can't add contact sometimes, help~
Post by: crazybit on July 26, 2014, 04:39:57 am
try to issue the following command to check  if the public key belongs to one of your account.

wallet_account_list_public_keys <your account name>

looks like you have added this key to other name in your wallet

If I have added the key before, how can I find the account name and remove it?
when I use wallet_list_accounts, there is no account with the key, what shuold I do?
Title: Re: can't add contact sometimes, help~
Post by: autumn84 on July 26, 2014, 06:43:16 am
try to issue the following command to check  if the public key belongs to one of your account.

wallet_account_list_public_keys <your account name>

looks like you have added this key to other name in your wallet

If I have added the key before, how can I find the account name and remove it?
when I use wallet_list_accounts, there is no account with the key, what should I do?

I have checked as you suggestion,  the public key is not mine, and I checked my operation records, I have added the key before, but I removed it. Is there a bug that the data isn't deleted clearly in some conditions?
Title: Re: can't add contact sometimes, help~
Post by: gamey on July 26, 2014, 05:49:41 pm
I do not know if this is your problem, but Contacts are not allowed to be created for registered accounts.