BitShares Forum

Main => Technical Support => Topic started by: dmantis on April 10, 2018, 07:51:34 pm

Title: Adding new field to account objects
Post by: dmantis on April 10, 2018, 07:51:34 pm
We'd like to experiment with BitShares blockchain and research the possibility of extending accounts objects with with additinal fields.

We have tried to extend account_create_operation fields in wallet.cpp and add field in account_object.hpp abd have some success writing data to blockchain but we can't to get it back via wallet or RPC API.

Moreover, we see the extention struct, but there is the lack of documentation about it. Is it expected to be used in such cases?
Title: Re: Adding new field to account objects
Post by: xeroc on April 13, 2018, 11:10:44 am
you need to extend the `account_update` operation, too to actually store stuff on the blockchain.
Title: Re: Adding new field to account objects
Post by: abit on April 14, 2018, 06:29:02 pm
If you're running your own chain, it's flexible to change many things. However, if you want to change the BitShares chain, it requires consensus, since blockchain by nature need all nodes to agree on all transactions, if you change your node or wallet only, it's useless.