user1677120
user1677120

Reputation: 223

How to recognise a deleted account from the GuldenD response

When deleting an account using the deleteaccount command a "true" result is returned. After that, when querying the accounts using the listaccounts command the account is listed with [Deleted] appended to its name field. However this is indistinguishable from an account with a name that actually ends with "[Deleted]". Is there any other way to only list only the really active accounts?

Upvotes: 0

Views: 53

Answers (1)

Malcolm MacLeod
Malcolm MacLeod

Reputation: 674

There is currently no way to obtain this information via RPC, however the wallet does store this information internally, so it is available to internal code. i.e. Simply adding [Deleted] to the name will not make the wallet treat the account as deleted. https://github.com/Gulden/gulden-official/blob/master/src/account.h#L39

The listaccounts RPC command should definitely be extended to make this information accessible.

Upvotes: -1

Related Questions