Author Topic: Dry Run 2: The Real Deal  (Read 193630 times)

0 Members and 1 Guest are viewing this topic.

Offline vikram

What's meaning of wallet_set_delegate_trust_level  number ? For example , what does 1and 5 and 10 stands for?
Is there any rule or guide about trust_level when we want to give someone trust? I see somebody give others  trust_level 5 or  10 or 1. What's the difference?
After using  this command, why we need to transfer XTS to our account?

Code: [Select]
xeldal-w (unlocked) >>> help wallet_set_delegate_trust_level
Usage:
wallet_set_delegate_trust_level <delegate_name> [trust_level]                                         Updates the trust placed in a given delegate
Updates the trust placed in a given delegate

Parameters:
  delegate_name (account_name, required): the name of the delegate to set trust level on
  trust_level (int32_t, optional, defaults to 0): Positive for Trust, Negative for Distrust, 0 for Neutral

Returns:
  void

aliases: trust, set_trust

Im not sure 10 is any different that 1, perhaps someone can clarify that.

Currently, all positive integers are treated the same, and all negative integers are treated the same. See: https://github.com/BitShares/bitshares_toolkit/blob/63798df7ca63f18e1face9ae87b42a9ee00a1383/libraries/wallet/wallet.cpp#L2717-L2723

We should probably restrict the input to only {-1,0,1}.

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Code: [Select]
git pull; git submodule update;Then you need to recompile with make
It works. Now I can use new  command 8)

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Code: [Select]
default (unlocked) >>> wallet_set_delegate_trust_level crazybit 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level cgafeng 1
OK
--- there are now 22 active connections to the p2p network
default (unlocked) >>> wallet_set_delegate_trust_level puppies 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level boombastic-ags 1
OK
--- there are now 23 active connections to the p2p network
--- in sync with p2p network
default (unlocked) >>> wallet_set_delegate_trust_level mauritso 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level delegate-alt 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level alexxy 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level coolspeed 1
OK
--- there are now 24 active connections to the p2p network
--- in sync with p2p network
default (unlocked) >>> wallet_set_delegate_trust_level testz-test 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level bitshares 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level dd-1 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level spartako 1
OK
--- there are now 23 active connections to the p2p network
default (unlocked) >>> wallet_set_delegate_trust_level xeroc 1
OK
default (unlocked) >>> wallet_set_delegate_trust_level betax 1

These are my votes from yesterday, who am I missing ?? I believe the to vote against is -1 and in favour is + 1
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile

Please vote for my delegates too.

Code: [Select]
wallet_set_delegate_trust_level bitcoiners 10
wallet_set_delegate_trust_level bitcoiners-1 10
wallet_set_delegate_trust_level bitcoiners-2 10
wallet_set_delegate_trust_level blockchainer 10

Actually I have found this procedure for being sure that I vote for you:
Code: [Select]
* Set trust to 0 for all your contacts
wallet_set_delegate_trust_level bitcoiners-1 1
wallet_transfer 0.1 XTS spartako spartako
wallet_set_delegate_trust_level bitcoiners-1 0
wallet_set_delegate_trust_level bitcoiners-2 1
wallet_transfer 0.05 XTS spartako spartako

Now you can see some votes for yours delegates that had 0 votes:
Code: [Select]
       354             bitcoiners-2               50000                   0   4.999590146e-07 %               0               0
       353             bitcoiners-1               40000                   0    3.99967206e-07 %               0               0

wallet_account_set_approval spartako

Xeldal

  • Guest
What's meaning of wallet_set_delegate_trust_level  number ? For example , what does 1and 5 and 10 stands for?
Is there any rule or guide about trust_level when we want to give someone trust? I see somebody give others  trust_level 5 or  10 or 1. What's the difference?
After using  this command, why we need to transfer XTS to our account?

Code: [Select]
xeldal-w (unlocked) >>> help wallet_set_delegate_trust_level
Usage:
wallet_set_delegate_trust_level <delegate_name> [trust_level]                                         Updates the trust placed in a given delegate
Updates the trust placed in a given delegate

Parameters:
  delegate_name (account_name, required): the name of the delegate to set trust level on
  trust_level (int32_t, optional, defaults to 0): Positive for Trust, Negative for Distrust, 0 for Neutral

Returns:
  void

aliases: trust, set_trust

Im not sure 10 is any different that 1, perhaps someone can clarify that.

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
What's meaning of wallet_set_delegate_trust_level  number ? For example , what does 1and 5 and 10 stands for?
Is there any rule or guide about trust_level when we want to give someone trust? I see somebody give others  trust_level 5 or  10 or 1. What's the difference?
After using  this command, why we need to transfer XTS to our account?

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Just voted for

networker
spartako
alexxy
xeroc
testz
bdnoble-1
puppies
betax

Please vote for my delegates too.

Code: [Select]
wallet_set_delegate_trust_level bitcoiners 10
wallet_set_delegate_trust_level bitcoiners-1 10
wallet_set_delegate_trust_level bitcoiners-2 10
« Last Edit: June 18, 2014, 04:04:46 pm by bitcoinerS »
>>> approve bitcoiners

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Can someone vote for my delegate?

Code: [Select]
default (unlocked) >>> wallet_account_vote_summary alexxy
Delegate                 For            Against
       --------------------------------------------------------------
betax                    1195164299     0
bts101                   709740         0


There is a bug on this.. as I am getting the same results over and over again

Code: [Select]
[code] wallet_account_vote_summary
account_name:
fjlkjflkafjladfk
Code: [Select]

Delegate                 For            Against
       --------------------------------------------------------------
betax                    1195164299     0
bts101                   709740         0
[/code]
« Last Edit: June 18, 2014, 03:08:23 pm by betax »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Ok so we have some issues today as we are breaking things left and right in preparation for the next dry run.

I renamed wallet_toggle_delegate_block_production to wallet_enable_deleagte_block_product and fixed the bug.

 +5% It works
wallet_account_set_approval spartako

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
I created network account twice.   XTS5ebwAWhckHqACuZjxTUFP6oXmrAUXhcZLaGwAssBTVrmMx3sKV  is the first and  XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m is the second. You sent my first account xts before, maybe that's the reason first account in your  wallet_list_contact_accounts. Can you delete the first one and using the second one? I don't know why I can create account twice. I delete all data for the first account because I was on a fork that time and didn't backup my account. So I reinstall bitshares_toolkit and create my account second time.


Ok solved, I removed your previous account and now the command worked:
Code: [Select]
default (unlocked) >>> blockchain_list_delegates
          ID                     NAME           VOTES FOR       VOTES AGAINST           NET VOTES BLOCKS PRODUCED   BLOCKS MISSED
---------------------------------------------------------

332                networker             1000000                   0   9.999192116e-06 %               0               0
wallet_account_set_approval spartako

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
I created network account twice.   XTS5ebwAWhckHqACuZjxTUFP6oXmrAUXhcZLaGwAssBTVrmMx3sKV  is the first and  XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m is the second. You sent my first account xts before, maybe that's the reason first account in your  wallet_list_contact_accounts. Can you delete the first one and using the second one? I don't know why I can create account twice. I delete all data for the first account because I was on a fork that time and didn't backup my account. So I reinstall bitshares_toolkit and create my account second time.



Can you vote me for the delegate?
I have been testing for ten days, just solve the forking problem and need to test block produce.
Thank you in advance
my account is networker.  You sent me XTS before.

I tried to vote for you but when I make the transaction I have this exception (if I set the trust to 0 the command works):

Code: [Select]
default (unlocked) >>> wallet_set_delegate_trust_level networker 1
OK
default (unlocked) >>> wallet_transfer  1 XTS spartako spartako
10 assert_exception: Assert Exception
!"WARNING - delegate id 0 bug @ 2":
    {}
    th_a  wallet.cpp:2732 select_delegate_vote

    {"real_amount_to_transfer":1,"amount_to_transfer_symbol":"XTS","from_account_name":"spartako","to_account_name":"spartako","memo_message":""}
    th_a  wallet.cpp:1605 transfer_asset

    {}
    th_a  common_api_client.cpp:492 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:570 execute_command


This is the last row of last_errors command:
Code: [Select]
{"trx":{"expiration":null,"delegate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS5KoeF1bUEnvimnP6ydz2adhMXsHvjDrP8","amount":10000000000,"claim_input_data":""}},{"type":"withdraw_op_type","data":{"balance_id":"XTSGVteQzFr4naiGCZbGqSGb81HvLVeUSn4D","amount":10000,"claim_input_data":""}},{"type":"deposit_op_type","data":{"amount":10000000000,"condition":{"asset_id":13,"delegate_id":318,"type":"withdraw_signature_type","data":{"owner":"XTS6xzWaEaVyZnFb45Z6GoHH5nt2JXaYWwzL","memo":{"one_time_key":"XTS5dtpSJUiseqJUzBa9RqPbhy4S1yfL3VRBn2GEbTaaAYfsqhNrP","encrypted_memo_data":"55957764a0d660de6f059da65750d973a26018a98d9f1d86af7db2dafb8efe78c6b0e6514dea2e125197691e4460d0cbb817b14e4d7edf3332ec44c70adf05a6"}}}}}],"signatures":["2067a9e792f16b5087f9e69784c884de8421d7df5498058ea223cb5690c9cd4831870697b3d97f44191e78c49d12ac2264113b72f91a128c3ed4c1085d588fb8a2","208492d77b7918db73f292708a8ddb6fdc129a865c3294de475f527a8b9ce59b87edf819d3ad31e42ee2b6ab891b5b2db266c4a550eaed31a1cfd1947c60fd9566"]}}


EDIT: I found your name in wallet_list_contact_accounts is showed as NOT registered

Code: [Select]
default (unlocked) >>> wallet_list_contact_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL   
networker                          XTS5ebwAWhckHqACuZjxTUFP6oXmrAUXhcZLaGwAssBTVrmMx3sKV           NO                    1         

But in blockchain_list_registered_accounts command is registered:
Code: [Select]
default (unlocked) >>> blockchain_list_registered_accounts networker
NAME (* delegate)                  KEY                                                             REGISTERED            VOTES FOR      VOTES AGAINST  TRUST LEVEL   
networker *                        XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m           2014-06-16T12:49:00   0              0              1             

Offline bytemaster

Ok so we have some issues today as we are breaking things left and right in preparation for the next dry run.

I renamed wallet_toggle_delegate_block_production to wallet_enable_deleagte_block_product and fixed the bug.

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Code: [Select]
git pull; git submodule update;Then you need to recompile with make

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
They missed to tell us about a recent commit:
https://github.com/BitShares/bitshares_toolkit/commit/55053c244f3057841b86a5b46fad654d7e1ce636

You need to run:
wallet_toggle_delegate_block_production <delegate> true

In order for delegates to produce blocks!

EDIT: doesn't seem to work .. i reverted to the previous commit to keep my delegate online AND producing blocks
Bytemaster fixed an issue with that feature:

It's now called
wallet_enable_delegate_block_production <delegate> true

In my system. there is only wallet_toggle_delegate_block_production command. How to update the command to wallet_enable_delegate_block_production with git command?
I'm not very familiar with git. Please help me!

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile

Can you vote me for the delegate?
I have been testing for ten days, just solve the forking problem and need to test block produce.
Thank you in advance
my account is networker.  You sent me XTS before.

I tried to vote for you but when I make the transaction I have this exception (if I set the trust to 0 the command works):

Code: [Select]
default (unlocked) >>> wallet_set_delegate_trust_level networker 1
OK
default (unlocked) >>> wallet_transfer  1 XTS spartako spartako
10 assert_exception: Assert Exception
!"WARNING - delegate id 0 bug @ 2":
    {}
    th_a  wallet.cpp:2732 select_delegate_vote

    {"real_amount_to_transfer":1,"amount_to_transfer_symbol":"XTS","from_account_name":"spartako","to_account_name":"spartako","memo_message":""}
    th_a  wallet.cpp:1605 transfer_asset

    {}
    th_a  common_api_client.cpp:492 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:570 execute_command


This is the last row of last_errors command:
Code: [Select]
{"trx":{"expiration":null,"delegate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS5KoeF1bUEnvimnP6ydz2adhMXsHvjDrP8","amount":10000000000,"claim_input_data":""}},{"type":"withdraw_op_type","data":{"balance_id":"XTSGVteQzFr4naiGCZbGqSGb81HvLVeUSn4D","amount":10000,"claim_input_data":""}},{"type":"deposit_op_type","data":{"amount":10000000000,"condition":{"asset_id":13,"delegate_id":318,"type":"withdraw_signature_type","data":{"owner":"XTS6xzWaEaVyZnFb45Z6GoHH5nt2JXaYWwzL","memo":{"one_time_key":"XTS5dtpSJUiseqJUzBa9RqPbhy4S1yfL3VRBn2GEbTaaAYfsqhNrP","encrypted_memo_data":"55957764a0d660de6f059da65750d973a26018a98d9f1d86af7db2dafb8efe78c6b0e6514dea2e125197691e4460d0cbb817b14e4d7edf3332ec44c70adf05a6"}}}}}],"signatures":["2067a9e792f16b5087f9e69784c884de8421d7df5498058ea223cb5690c9cd4831870697b3d97f44191e78c49d12ac2264113b72f91a128c3ed4c1085d588fb8a2","208492d77b7918db73f292708a8ddb6fdc129a865c3294de475f527a8b9ce59b87edf819d3ad31e42ee2b6ab891b5b2db266c4a550eaed31a1cfd1947c60fd9566"]}}


EDIT: I found your name in wallet_list_contact_accounts is showed as NOT registered (because you changed your key)

Code: [Select]
default (unlocked) >>> wallet_list_contact_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL   
networker                          XTS5ebwAWhckHqACuZjxTUFP6oXmrAUXhcZLaGwAssBTVrmMx3sKV           NO                    1         

But in blockchain_list_registered_accounts command is registered:
Code: [Select]
default (unlocked) >>> blockchain_list_registered_accounts networker
NAME (* delegate)                  KEY                                                             REGISTERED            VOTES FOR      VOTES AGAINST  TRUST LEVEL   
networker *                        XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m           2014-06-16T12:49:00   0              0              1             
« Last Edit: June 18, 2014, 02:36:25 pm by spartako »
wallet_account_set_approval spartako