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

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

wallet_import_armory should work now.  (actually Issue #90 says it needs testing, care to help test?)

blockchain_get_account_record is now pretty-print for better understanding:

Code: [Select]
default (unlocked) >>> blockchain_get_account_record init-delegate-82
Record for 'init-delegate-82' (ID 82)
Registered on 2014-Jun-01 00:00:00
Last update was 18 days ago
Owner's key: XTS8Nycs16hWgGQTykcZ8n581scfBePSvyrxAWtfoLYBp4m6VqcCg
History of active keys:
  Key XTS8Nycs16hWgGQTykcZ8n581scfBePSvyrxAWtfoLYBp4m6VqcCg last used 17 minutes ago
This account is a delegate.
  Votes for:              0.8382%
    against:              0.0000%
  Blocks produced:           178
           missed:           183
   Last block produced was Block #21004
  Total pay: 11.079392 XTS
  Hash of next secret number: 3c5a53a5348842ec013af4b31267ad9c2e01e4b5
No meta data.

Your balance is 11.079 XTS and so you can do:

Code: [Select]
sage:
wallet_withdraw_delegate_pay <delegate_name> <to_account_name> <amount_to_withdraw> [memo]            Used to transfer some of the delegates pay from their balance
Used to transfer some of the delegates pay from their balance

Parameters:
  delegate_name (account_name, required): the delegate who's pay is being cashed out
  to_account_name (account_name, required): the account that should receive the funds
  amount_to_withdraw (real_amount, required): the amount to withdraw
  memo (string, optional, defaults to "payday"): memo to add to transaction

Returns:
  signed_transaction

Used like this:

Code: [Select]
wallet_withdraw_delegate_pay init-delegate-82 init-delegate-82 11.0  and it should work.
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 vikram

And 2 more questions to end:
 - do you have the armory wallet import planned for soon? If not, I imagine there should be a way for me to export the private keys from Armory and import them as bitcoin(?) keys
 - how do I import my PTS wallet?

Armory import support is planned: https://github.com/BitShares/bitshares_toolkit/issues/90
In the meantime, you can manually import private keys using wallet_import_private_key.

For importing PTS wallet, you can use wallet_import_bitcoin.

Offline wackou

A few things:

Code: [Select]
>>> wallet_withdraw_delegate_pay init-delegate-82 wackou 100000 "test withdraw"
10 assert_exception: Assert Exception
delegate_account_record->delegate_info->pay_balance >= (amount_to_withdraw + required_fees.amount):
    {"delegate_account_record":{"id":82,"name":"init-delegate-82","public_data":null,"owner_key":"XTS8Nycs16hWgGQTykcZ8n581scfBePSvyrxAWtfoLYBp4m6VqcCg","active_key_history":[["20140618T180300","XTS8Nycs16hWgGQTykcZ8n581scfBePSvyrxAWtfoLYBp4m6VqcCg"]],"registration_date":"20140601T000000","last_update":"20140601T000000","delegate_info":{"votes_for":83832250149,"votes_against":0,"blocks_produced":177,"blocks_missed":183,"pay_balance":10980294,"next_secret_hash":"f0cebbf2a660d2ecd7c3b8483e9928b504e2e212","last_block_num_produced":20893},"meta_data":null}}
    th_a  wallet.cpp:1363 withdraw_delegate_pay

    {"delegate_name":"init-delegate-82","amount_to_withdraw":100000}
    th_a  wallet.cpp:1404 withdraw_delegate_pay

    {}
    th_a  common_api_client.cpp:652 wallet_withdraw_delegate_pay

    {"command":"wallet_withdraw_delegate_pay"}
    th_a  cli.cpp:572 execute_command

In particular:
Code: [Select]
delegate_account_record->delegate_info->pay_balance = 10980294
amount_to_withdraw = 100000
required_fees.amount = not sure exactly how much, thought it was 10000

which means that this should be able to go through, no? Or is there a certain period of time during which the delegates cannot withdraw the xts on their account?

In any case, can someone send me some XTS to register a new delegate? Thanks!
wackou XTS8SCY7ZFAK72uL1jQjWtchDRvf3nz1m7rkDeEn818WRdZiqEo5f

And 2 more questions to end:
 - do you have the armory wallet import planned for soon? If not, I imagine there should be a way for me to export the private keys from Armory and import them as bitcoin(?) keys
 - how do I import my PTS wallet?
Please vote for witness wackou! More info at http://digitalgaia.io

Offline Kenof

  • Full Member
  • ***
  • Posts: 71
    • View Profile
"blockchain_head_block_num": 20171,
"blockchain_head_block_time": "20140618T181715",
"blockchain_head_block_time_rel": "in the future",
"blockchain_confirmation_requirement": 148,

 :P
Making life easier.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
XTS please:

XTS8VwZrdRhvFLf8nGfHfiyScSnmQZEm5dimzBhEezmt7Mujw9g91

Sent you some.
>>> approve bitcoiners

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
XTS please:

XTS8VwZrdRhvFLf8nGfHfiyScSnmQZEm5dimzBhEezmt7Mujw9g91
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
We will look into it.. For now the only thing you can do is export whatever keys you have (wallet_account_list_public_keys  -> wallet_account_export_private_key)  then make a new wallet and rescan
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline myhometalk

  • Jr. Member
  • **
  • Posts: 32
    • View Profile
  "bitshares_toolkit_revision": "59d5d6abf7c824ab316d725ebe5bdee2ddeb42f4",
  "bitshares_toolkit_revision_age": "21 hours ago",
  "fc_revision": "1fe26a989b75722b2f6a47c3ae0c2cca1c9e0504",
  "fc_revision_age": "25 hours ago",
  "compile_date": "compiled on Jun 17 2014 at 16:22:30"
Toast , I never created following 2 accounts but both showing in my wallet now. not sure what happened ????


Quote
wallet_list_receive_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL
testz-test *                       XTS8TR6PDqB1kpThaMHXMcJisUbRXWtNGv6ru4njQnGGaLSqsKRV9           2014-06-14T10:18:15   0
mauritso *                         XTS6sWfWBPSxbYKuxaL7isG87w1YSdvJg6dj1J5qhzzPvYmyVTAFg           2014-06-14T17:34:15   0



I think this is a known issue. What revision are you on?

Code: [Select]
default (locked) >>> about
{
  "bitshares_toolkit_revision": "eb11334b15a5fcf73754ce582fd4334f38911f65",
  "bitshares_toolkit_revision_age": "22 hours ago",
  "fc_revision": "1fe26a989b75722b2f6a47c3ae0c2cca1c9e0504",
  "fc_revision_age": "24 hours ago",
  "compile_date": "compiled on Jun 17 2014 at 13:24:53"
}

Offline bytemaster

Recent commits have caused database changes that are producing forks.  Also the delegates are not enabled by default in the latest build so it requires manual intervention.

We are working in a lot of updates before the next dry run that are taking a tad longer than I thought, but overall things are proceeding steadily.
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 alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
Seems we have forks
Code: [Select]
  "blockchain_head_block_num": 19739,
  "blockchain_head_block_time": "20140618T154645",
  "blockchain_head_block_time_rel": "13 seconds old",
  "blockchain_confirmation_requirement": 240,
  "blockchain_average_delegate_participation": 62.179487179487182,
  "network_num_connections": 20,
  "ntp_time": "20140618T154658.561180",
  "ntp_error_seconds": -0.0046610000000000002,
  "wallet_unlocked_seconds_remaining": 599834,
  "wallet_next_block_production_time": "20140618T154815",
  "wallet_seconds_until_next_block_production": 77,
  "wallet_local_time": "20140618T154658",
  "blockchain_random_seed": "dd0a7e13cdc121efbf03cc31a30246124507fc6c",
  "blockchain_shares": 10000825938984,
  "network_num_connections_max": 128,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20140625T142412",
  "wallet_version": 100
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Why we need this command 'wallet_transfer 0.1 XTS spartako spartako'?
How many XTS should we send to ourselves after vote someone?


Actually I don't understand very well the heuristics used in the wallet but the command wallet_set_delegate_trust_level set only a priority list in your delegate but it doesn't make any vote.
The vote is given only when you make a transaction and it is proportional to the number of coins used in the transaction.
wallet_account_set_approval spartako

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Toast , I never created following 2 accounts but both showing in my wallet now. not sure what happened ????


Quote
wallet_list_receive_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL
testz-test *                       XTS8TR6PDqB1kpThaMHXMcJisUbRXWtNGv6ru4njQnGGaLSqsKRV9           2014-06-14T10:18:15   0
mauritso *                         XTS6sWfWBPSxbYKuxaL7isG87w1YSdvJg6dj1J5qhzzPvYmyVTAFg           2014-06-14T17:34:15   0



I think this is a known issue. What revision are you on?

Code: [Select]
default (locked) >>> about
{
  "bitshares_toolkit_revision": "eb11334b15a5fcf73754ce582fd4334f38911f65",
  "bitshares_toolkit_revision_age": "22 hours ago",
  "fc_revision": "1fe26a989b75722b2f6a47c3ae0c2cca1c9e0504",
  "fc_revision_age": "24 hours ago",
  "compile_date": "compiled on Jun 17 2014 at 13:24:53"
}
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Why we need this command 'wallet_transfer 0.1 XTS spartako spartako'?
How many XTS should we send to ourselves after vote someone?



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


However much vote you want to change. "Vote" is stake-vote
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline myhometalk

  • Jr. Member
  • **
  • Posts: 32
    • View Profile
Toast , I never created following 2 accounts but both showing in my wallet now. not sure what happened ????


Quote
wallet_list_receive_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL
testz-test *                       XTS8TR6PDqB1kpThaMHXMcJisUbRXWtNGv6ru4njQnGGaLSqsKRV9           2014-06-14T10:18:15   0
mauritso *                         XTS6sWfWBPSxbYKuxaL7isG87w1YSdvJg6dj1J5qhzzPvYmyVTAFg           2014-06-14T17:34:15   0



Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Why we need this command 'wallet_transfer 0.1 XTS spartako spartako'?
How many XTS should we send to ourselves after vote someone?



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