Main Menu

Big bug in GUI asset update?

Started by bitcrab, January 03, 2016, 07:00:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

puppies

Quote from: xeroc on January 12, 2016, 07:25:33 PM
permissions cannot be re-enabled once the have been disabled ..

That sucks.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

xeroc

permissions cannot be re-enabled once the have been disabled ..

puppies

bitcrab have you tried


update_asset TCNY null {  "id": "1.3.734",  "symbol": "TCNY",  "precision": 4,  "issuer": "1.2.121",  "options": {    "max_supply": "1000000000000000",    "market_fee_percent": 0,    "max_market_fee": "1000000000000000",    "issuer_permissions": 511,    "flags": 128,    "core_exchange_rate": {      "base": {        "amount": 103,        "asset_id": "1.3.734"      },      "quote": {        "amount": 46825,        "asset_id": "1.3.0"      }    },    "whitelist_authorities": [],    "blacklist_authorities": [],    "whitelist_markets": [],    "blacklist_markets": [],    "description": "smartcoin defined by transwiser",    "extensions": []  } true


That should set your permissions and your flags back to where they were. 
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Musewhale

+5% +5% +5%, great, good idea, i like it, just do it!
MUSE witness:mygoodfriend     vote for me

bitcrab

Quote from: abit on January 07, 2016, 12:24:26 PM
Quote from: bitcrab on January 07, 2016, 12:22:02 PM
Quote from: xeroc on January 07, 2016, 11:06:12 AM
Quote from: svk on January 06, 2016, 08:05:58 PM
Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.
https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/wallet.cpp#L2319-L2336
It seems all that is needed is another 'bitasset"-specific json object:
https://github.com/cryptonomex/graphene/blob/master/libraries/chain/include/graphene/chain/protocol/asset_ops.hpp#L87-L110

do you mean the only way is to create another privatized smartcoin to replace TCNY, if need to get the initial issuer permissions and flags?
I guess he mean the attributes which svk didn't find are in another object, the "bitasset" object, not the "asset" object.
got it.

abit

Quote from: bitcrab on January 07, 2016, 12:22:02 PM
Quote from: xeroc on January 07, 2016, 11:06:12 AM
Quote from: svk on January 06, 2016, 08:05:58 PM
Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.
https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/wallet.cpp#L2319-L2336
It seems all that is needed is another 'bitasset"-specific json object:
https://github.com/cryptonomex/graphene/blob/master/libraries/chain/include/graphene/chain/protocol/asset_ops.hpp#L87-L110

do you mean the only way is to create another privatized smartcoin to replace TCNY, if need to get the initial issuer permissions and flags?
I guess he mean the attributes which svk didn't find are in another object, the "bitasset" object, not the "asset" object.
BitShares committee member: abit
BitShares witness: in.abit

bitcrab

Quote from: xeroc on January 07, 2016, 11:06:12 AM
Quote from: svk on January 06, 2016, 08:05:58 PM
Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.
https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/wallet.cpp#L2319-L2336
It seems all that is needed is another 'bitasset"-specific json object:
https://github.com/cryptonomex/graphene/blob/master/libraries/chain/include/graphene/chain/protocol/asset_ops.hpp#L87-L110

do you mean the only way is to create another privatized smartcoin to replace TCNY, if need to get the initial issuer permissions and flags?

xeroc

Quote from: svk on January 06, 2016, 08:05:58 PM
Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.
https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/wallet.cpp#L2319-L2336
It seems all that is needed is another 'bitasset"-specific json object:
https://github.com/cryptonomex/graphene/blob/master/libraries/chain/include/graphene/chain/protocol/asset_ops.hpp#L87-L110

Thom

Quote from: svk on January 06, 2016, 08:05:58 PM
Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.

This is what ad hoc engineering gets you (no design spec or explicit definitions of what the code needs to implement).

Welcome to BitShares!
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: [url="https://bitsharestalk.org/index.php/topic,23902.0.html"]https://bitsharestalk.org/index.php/topic,23902.0.html[/url]

svk

Unless @theoreticalbts or @bytemaster can explain the "missing" permissions that relate to bit assets I can't do much about this.

I say "missing" because they're not part of the definitions here: https://github.com/cryptonomex/graphene/blob/62c22fbf18d748531c468e0d7a88d08eddbd6f20/libraries/chain/include/graphene/chain/protocol/types.hpp#L84

and I've tried searching through the code but I can't find anything explaining how bit asset permissions.

Worker: dev.bitsharesblocks

sudo


bitcrab

#11
this is an accident, I think there should be a solution to enable the issuer_permissions and flags for TCNY.
@bytemaster @xeroc @svk @valzav

merivercap

Quote from: abit on January 05, 2016, 06:37:05 AM
Quote from: merivercap on January 05, 2016, 05:08:44 AM
Quote from: bitcrab on January 05, 2016, 04:53:49 AM
I have tested and found that now the force settlement feature is actually enabled for TCNY.

according to the design, force settlement/allow witness to provide feed features should both be disabled because of the change but actually not, this is another bug and when in the future the bug be fixed these features will be actually disabled for TCNY, right?

so I wonder whether there are ways to reserve these features for TCNY, as they are important for a smartcoin.

Yeah I agree.   The features should be consistent with regular smartcoins.  (Although I'd probably want to disable forced settlement or make it 90%.)

So do these bugs just occur in the GUI and will CLI changes work fine?
It depends on how you use CLI, E.G. what command, what parameters, afaik some commands are fine but others are not.

Thx it would be good to know 1) which parameters we can change now 2) which ones we have to wait on a hard fork for 3) what day fixes are planned to be made 4) if this requires a worker proposal. 
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

abit

Quote from: bitcrab on January 05, 2016, 04:53:49 AM
I have tested and found that now the force settlement feature is actually enabled for TCNY.

according to the design, force settlement/allow witness to provide feed features should both be disabled because of the change but actually not, this is another bug and when in the future the bug be fixed these features will be actually disabled for TCNY, right?
Lack of detailed document of "feature description" or "feature requirement" yet. "We" need to make one, otherwise the code is correct in any case.

Quote
so I wonder whether there are ways to reserve these features for TCNY, as they are important for a smartcoin.
To "reserve these features" it may need a hard fork.
BitShares committee member: abit
BitShares witness: in.abit

abit

Quote from: merivercap on January 05, 2016, 05:08:44 AM
Quote from: bitcrab on January 05, 2016, 04:53:49 AM
I have tested and found that now the force settlement feature is actually enabled for TCNY.

according to the design, force settlement/allow witness to provide feed features should both be disabled because of the change but actually not, this is another bug and when in the future the bug be fixed these features will be actually disabled for TCNY, right?

so I wonder whether there are ways to reserve these features for TCNY, as they are important for a smartcoin.

Yeah I agree.   The features should be consistent with regular smartcoins.  (Although I'd probably want to disable forced settlement or make it 90%.)

So do these bugs just occur in the GUI and will CLI changes work fine?
It depends on how you use CLI, E.G. what command, what parameters, afaik some commands are fine but others are not.
BitShares committee member: abit
BitShares witness: in.abit

merivercap

Quote from: bitcrab on January 05, 2016, 04:53:49 AM
I have tested and found that now the force settlement feature is actually enabled for TCNY.

according to the design, force settlement/allow witness to provide feed features should both be disabled because of the change but actually not, this is another bug and when in the future the bug be fixed these features will be actually disabled for TCNY, right?

so I wonder whether there are ways to reserve these features for TCNY, as they are important for a smartcoin.

Yeah I agree.   The features should be consistent with regular smartcoins.  (Although I'd probably want to disable forced settlement or make it 90%.)

So do these bugs just occur in the GUI and will CLI changes work fine?
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

bitcrab

I have tested and found that now the force settlement feature is actually enabled for TCNY.

according to the design, force settlement/allow witness to provide feed features should both be disabled because of the change but actually not, this is another bug and when in the future the bug be fixed these features will be actually disabled for TCNY, right?

so I wonder whether there are ways to reserve these features for TCNY, as they are important for a smartcoin.





clayop

Bump...
So how can resolve this problem?
Bitshares Korea - [url="http://www.bitshares.kr"]http://www.bitshares.kr[/url]
Vote for me and see Korean Bitshares community grows
delegate-clayop

svk

The asset update in the GUI was never tested using bit assets since I have no idea what bits are used to create one, so most likely this is related to that.

I did try to ensure old flags and permissions were kept, but probably your asset had bits that the GUI ignored and so they were overwritten.

Whitelists are another matter, they are always empty as far as I can tell, it's a witness node bug, unrelated to the GUI.
Worker: dev.bitsharesblocks

abit

Quote from: bitcrab on January 03, 2016, 07:00:16 PM
I believe there is big bug in the GUI asset update page.
today I found that 2 parameters of TCNY have been changed:

issuer_permissions: old:511 new:79
flag:old:128 new:0

after some checking I found what make this happen, in 23th Dec, I operate in GUI to change the owner of TCNY, after doing that, the unexpected change happened.

this can be proved with a test with no confirmation on TUSD, after changing the description and clicking update asset, below pop up:



issuer_permissions and flag are changed to 79 and 0.

this is big bug and may cause big issue, hope everyone be aware of this and this can be fixed asap.

now seems TCNY get unexpected change:

disabled force setting
disabled global force setting by issuer.
disabled confidential transactions
not allow witness/committee members to provide feeds

the worst is that all these features can not be enabled once disabled.

this is really a tragedy for TCNY. :'( , I need to consider how to handle it.
any suggestions?

A temporary solution for the price feeding issue would be manually white-list the ones who you want to have permissions to provide price feeds from the cli wallet for example:

update_asset_feed_producers TCNY [in.abit,dele-puppy] true


Perhaps here is another bug: nobody is in the white list now, but some witnesses are able to feed prices for TCNY but others not. Why?
BitShares committee member: abit
BitShares witness: in.abit

xeroc


bitcrab

I believe there is big bug in the GUI asset update page.
today I found that 2 parameters of TCNY have been changed:

issuer_permissions: old:511 new:79
flag:old:128 new:0

after some checking I found what make this happen, in 23th Dec, I operate in GUI to change the owner of TCNY, after doing that, the unexpected change happened.

this can be proved with a test with no confirmation on TUSD, after changing the description and clicking update asset, below pop up:



issuer_permissions and flag are changed to 79 and 0.

this is big bug and may cause big issue, hope everyone be aware of this and this can be fixed asap.

now seems TCNY get unexpected change:

disabled force setting
disabled global force setting by issuer.
disabled confidential transactions
not allow witness/committee members to provide feeds

the worst is that all these features can not be enabled once disabled.

this is really a tragedy for TCNY. :'( , I need to consider how to handle it.
any suggestions?