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

0 Members and 1 Guest are viewing this topic.

Offline wackou

I'm on:

Code: [Select]
>>> about
{
  "bitshares_toolkit_revision": "cfcfcb24935067458c221cfc382d3843bf4f5d68",
  "bitshares_toolkit_revision_age": "7 hours ago",
  "fc_revision": "9002b024693a8ac749a4d5f0b64821b2a1e8eab9",
  "fc_revision_age": "38 hours ago",
  "compile_date": "compiled on Jun 19 2014 at 10:46:58"
}
Please vote for witness wackou! More info at http://digitalgaia.io

Offline wackou

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

Armory import seems not implemented at all yet... Tried it with actual values, as well as random values, gives OK all the time

Code: [Select]
>>> wallet_import_armory
wallet_filename: /this/file/does/not/exist
passphrase:
account_name: well, this is not an account
OK
Please vote for witness wackou! More info at http://digitalgaia.io

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
Is it normal for me to see that much difference on this message:
--- syncing with p2p network, XXX blocks left to fetch
Code: [Select]
--- syncing with p2p network, 4523 blocks left to fetch
--- there are now 23 active connections to the p2p network
--- syncing with p2p network, 3762 blocks left to fetch
--- syncing with p2p network, 387 blocks left to fetch
--- there are now 22 active connections to the p2p network
--- in sync with p2p network
--- there are now 23 active connections to the p2p network
--- in sync with p2p network
--- there are now 24 active connections to the p2p network
--- syncing with p2p network, 4527 blocks left to fetch
--- there are now 25 active connections to the p2p network
--- there are now 24 active connections to the p2p network
--- there are now 23 active connections to the p2p network
--- there are now 24 active connections to the p2p network
--- syncing with p2p network, 4528 blocks left to fetch
--- there are now 23 active connections to the p2p network
emski (unlocked) >>> get_info
{
  "blockchain_head_block_num": 22474,
  "blockchain_head_block_time": "20140619T083400",

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I have do a press test, make 200 transfers in several seconds.
seems very good, all transactions is confirmed in 1 minute.
you can see block_num 22398 && 22399
Code: [Select]
blockchain_get_block_by_number 22399

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I have test again just now.
yes it can works without issue this time.
I think I did not change anything.
If  it's possible that the fork reason is  some delegate node didn't update and refuse my block ?


Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
wallet_withdraw_delegate_pay seems still generate a fork.
Code: [Select]
delegate (unlocked) >>> blockchain_list_forks
[
  5624,
  11312,
  11338,
  21322,
  21325,
  21340,
  21449
]
delegate (unlocked) >>> info
{
  "blockchain_head_block_num": 21589,
  "blockchain_head_block_time": "20140619T021600",
  "blockchain_head_block_time_rel": "10 seconds old",
  "blockchain_confirmation_requirement": 1,
  "blockchain_average_delegate_participation": 73.596358118361152,
  "network_num_connections": 1,
  "ntp_time": "20140619T021610.662404",
  "ntp_error_seconds": -0.0084840000000000002,
  "wallet_unlocked_seconds_remaining": 99999960,
  "wallet_next_block_production_time": "20140619T021615",
  "wallet_seconds_until_next_block_production": 5,
  "wallet_local_time": "20140619T021610",
  "blockchain_random_seed": "2c8b569da33e1990d77d46dfdfcfc43a17d8106f",
  "blockchain_shares": 10001009030968,
  "network_num_connections_max": 999,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20170819T120210",
  "wallet_version": 100
}
delegate (unlocked) >>> wallet_withdraw_delegate_pay init-delegate-17 delegate-alt 23 "withdraw"
10 assert_exception: Assert Exception
delegate_account_record->delegate_info->pay_balance >= (amount_to_withdraw + required_fees.amount):
    {"delegate_account_record":{"id":17,"name":"init-delegate-17","public_data":null,"owner_key":"XTS57VJ3pc85WWJWCwNzPBcwNHEqHstavbhgFfHgc8nTmCchXGJAM","active_key_his
tory":[["20140618T234015","XTS57VJ3pc85WWJWCwNzPBcwNHEqHstavbhgFfHgc8nTmCchXGJAM"]],"registration_date":"20140601T000000","last_update":"20140601T000000","delegate_info
":{"votes_for":87931672469,"votes_against":0,"blocks_produced":335,"blocks_missed":24,"pay_balance":971565,"next_secret_hash":"ffed3e1abe7f8aa03abb6a8c67de1b3eae31433d"
,"last_block_num_produced":21408},"meta_data":null}}
    th_a  wallet.cpp:1364 withdraw_delegate_pay

    {"delegate_name":"init-delegate-17","amount_to_withdraw":23}
    th_a  wallet.cpp:1405 withdraw_delegate_pay

    {}
    th_a  common_api_client.cpp:652 wallet_withdraw_delegate_pay

    {"command":"wallet_withdraw_delegate_pay"}
    th_a  cli.cpp:580 execute_command
delegate (unlocked) >>> blockchain_list_forks                                                                                                                           
[
  5624,
  11312,
  11338,
  21322,
  21325,
  21340,
  21449,
  21589
]
client will choose to the main chain automatic.
another problem is the balance is add 23 XTS,  and this block will list in the history with blk is 0.0
Code: [Select]
delegate (unlocked) >>> wallet_account_balance                                                                                                                         
delegate-alt:
...
    25.774298 XTS
delegate (unlocked) >>> wallet_account_transaction_history     
...
  21385.0    2014-06-19T01:07:00 dorian              delegate-alt        ...                                  9,923.000000 DRINK        0.000000 XTS        038cc1cb
  21386.0    2014-06-19T01:07:15 dorian              delegate-alt        ...                                      20.000000 LOVE        0.000000 XTS        2b7c117a
      0.0    2014-06-19T02:16:15 init-delegate-17    delegate-alt        withdraw                             23.000000 XTS        0.000000 XTS        44a7d36c


I've done the following and I see no issues (except one pending transaction):
Code: [Select]
emski (unlocked) >>> wallet_account_transaction_history
    BLK.TRX  TIMESTAMP           FROM                TO                  MEMO                                             AMOUNT             FEE              ID
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  22245.0    2014-06-19T06:11:15 init-delegate-4     emski               payday                                     1.000000 XTS        0.010000 XTS        74a7399a
  22251.0    2014-06-19T06:14:30 init-delegate-1     emski               payday                                     0.100000 XTS        0.010000 XTS        25058cfd
   pending   2014-06-19T06:14:42 init-delegate-1     emski               payday                                     0.500000 XTS        0.010000 XTS        923bb6ee
  22252.0    2014-06-19T06:14:45 init-delegate-1     emski               payday                                     0.500000 XTS        0.010000 XTS        e1e666c8
  22257.0    2014-06-19T06:17:45 init-delegate-1     emski               payday                                     0.040000 XTS        0.010000 XTS        ccd77580
  22259.0    2014-06-19T06:18:45 init-delegate-2     emski               payday                                    22.000000 XTS        0.010000 XTS        5aa7bbba
  22262.1    2014-06-19T06:20:00 init-delegate-3     emski               payday                                    21.000000 XTS        0.010000 XTS        1dcd873f
  22262.0    2014-06-19T06:20:00 init-delegate-2     emski               payday                                     0.011000 XTS        0.010000 XTS        09e69e5b
  22263.0    2014-06-19T06:20:45 init-delegate-4     emski               payday                                    21.000000 XTS        0.010000 XTS        6b59416f
  22263.1    2014-06-19T06:20:45 init-delegate-25    emski               payday                                    22.000000 XTS        0.010000 XTS        ccba5442
  22276.0    2014-06-19T06:27:45 emski               emski               register emski                             0.000000 XTS        0.010001 XTS        99f63e17
  22279.1    2014-06-19T06:30:00 emski               emski               update emski                               0.000000 XTS        0.010002 XTS        7aaa97e4
  22279.0    2014-06-19T06:30:00 emski               emski               update emski as a delegate                 0.000000 XTS       10.495714 XTS        9988b6dd
emski (unlocked) >>> wallet_account_balance
emski:
    77.135283 XTS
emski (unlocked) >>> blockchain_list_forks
[
  5624,
  11312,
  11338,
  20506,
  21322,
  21325,
  21340,
  21449,
  21788,
  21934,
  22011,
  22139,
  22160,
  22171,
  22236
]
--- there are now 23 active connections to the p2p network
--- in sync with p2p network
emski (unlocked) >>> get_info
{
  "blockchain_head_block_num": 22296,
  "blockchain_head_block_time": "20140619T063945",
  "blockchain_head_block_time_rel": "14 seconds old",
  "blockchain_confirmation_requirement": 254,
  "blockchain_average_delegate_participation": 68.648266100495405,
  "network_num_connections": 23,
  "ntp_time": "20140619T063959.374775",
  "ntp_error_seconds": -0.002032,
  "wallet_unlocked_seconds_remaining": 99959227,
  "wallet_next_block_production_time": "20140619T064345",
  "wallet_seconds_until_next_block_production": 226,
  "wallet_local_time": "20140619T063959",
  "blockchain_random_seed": "1773c2f0abffa39c3cf82c296076c6270a4d9126",
  "blockchain_shares": 10001026424724,
  "network_num_connections_max": 60,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20170819T050706",
  "wallet_version": 100
}
emski (unlocked) >>> about
{
  "bitshares_toolkit_revision": "c21fdf60ab39798102662080ff896da73443d6f2",
  "bitshares_toolkit_revision_age": "13 hours ago",
  "fc_revision": "9002b024693a8ac749a4d5f0b64821b2a1e8eab9",
  "fc_revision_age": "35 hours ago",
  "compile_date": "compiled on Jun 18 2014 at 22:17:43"
}


Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
wallet_withdraw_delegate_pay seems still generate a fork.
Code: [Select]
delegate (unlocked) >>> blockchain_list_forks
[
  5624,
  11312,
  11338,
  21322,
  21325,
  21340,
  21449
]
delegate (unlocked) >>> info
{
  "blockchain_head_block_num": 21589,
  "blockchain_head_block_time": "20140619T021600",
  "blockchain_head_block_time_rel": "10 seconds old",
  "blockchain_confirmation_requirement": 1,
  "blockchain_average_delegate_participation": 73.596358118361152,
  "network_num_connections": 1,
  "ntp_time": "20140619T021610.662404",
  "ntp_error_seconds": -0.0084840000000000002,
  "wallet_unlocked_seconds_remaining": 99999960,
  "wallet_next_block_production_time": "20140619T021615",
  "wallet_seconds_until_next_block_production": 5,
  "wallet_local_time": "20140619T021610",
  "blockchain_random_seed": "2c8b569da33e1990d77d46dfdfcfc43a17d8106f",
  "blockchain_shares": 10001009030968,
  "network_num_connections_max": 999,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20170819T120210",
  "wallet_version": 100
}
delegate (unlocked) >>> wallet_withdraw_delegate_pay init-delegate-17 delegate-alt 23 "withdraw"
10 assert_exception: Assert Exception
delegate_account_record->delegate_info->pay_balance >= (amount_to_withdraw + required_fees.amount):
    {"delegate_account_record":{"id":17,"name":"init-delegate-17","public_data":null,"owner_key":"XTS57VJ3pc85WWJWCwNzPBcwNHEqHstavbhgFfHgc8nTmCchXGJAM","active_key_his
tory":[["20140618T234015","XTS57VJ3pc85WWJWCwNzPBcwNHEqHstavbhgFfHgc8nTmCchXGJAM"]],"registration_date":"20140601T000000","last_update":"20140601T000000","delegate_info
":{"votes_for":87931672469,"votes_against":0,"blocks_produced":335,"blocks_missed":24,"pay_balance":971565,"next_secret_hash":"ffed3e1abe7f8aa03abb6a8c67de1b3eae31433d"
,"last_block_num_produced":21408},"meta_data":null}}
    th_a  wallet.cpp:1364 withdraw_delegate_pay

    {"delegate_name":"init-delegate-17","amount_to_withdraw":23}
    th_a  wallet.cpp:1405 withdraw_delegate_pay

    {}
    th_a  common_api_client.cpp:652 wallet_withdraw_delegate_pay

    {"command":"wallet_withdraw_delegate_pay"}
    th_a  cli.cpp:580 execute_command
delegate (unlocked) >>> blockchain_list_forks                                                                                                                           
[
  5624,
  11312,
  11338,
  21322,
  21325,
  21340,
  21449,
  21589
]
client will choose to the main chain automatic.
another problem is the balance is add 23 XTS,  and this block will list in the history with blk is 0.0
Code: [Select]
delegate (unlocked) >>> wallet_account_balance                                                                                                                         
delegate-alt:
...
    25.774298 XTS
delegate (unlocked) >>> wallet_account_transaction_history     
...
  21385.0    2014-06-19T01:07:00 dorian              delegate-alt        ...                                  9,923.000000 DRINK        0.000000 XTS        038cc1cb
  21386.0    2014-06-19T01:07:15 dorian              delegate-alt        ...                                      20.000000 LOVE        0.000000 XTS        2b7c117a
      0.0    2014-06-19T02:16:15 init-delegate-17    delegate-alt        withdraw                             23.000000 XTS        0.000000 XTS        44a7d36c

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
thands for your believe, so happy  :)

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
why not recruit alt into the team, this dude is remarkable :D
+1

Sent from my SCH-I535 using Tapatalk

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 bodenliu

  • Full Member
  • ***
  • Posts: 82
    • View Profile
why not recruit alt into the team, this dude is remarkable :D

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
crash with wallet_clear_pending_transactions
Code: [Select]
default (unlocked) >>> wallet_clear_pending_transactions

Program received signal SIGSEGV, Segmentation fault.
0x000000000084d54d in _Construct<fc::array<unsigned char, 65ul>, fc::array<unsigned char, 65ul> const&> (__p=0x174f520) at /usr/include/c++/4.8/bits/stl_construct.h:75
75          { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
(gdb) bt
#0  0x000000000084d54d in _Construct<fc::array<unsigned char, 65ul>, fc::array<unsigned char, 65ul> const&> (__p=0x174f520)
    at /usr/include/c++/4.8/bits/stl_construct.h:75
#1  __uninit_copy<__gnu_cxx::__normal_iterator<fc::array<unsigned char, 65ul> const*, std::vector<fc::array<unsigned char, 65ul> > >, fc::array<unsigned char, 65ul>*>
    (__result=0x174f520, __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_uninitialized.h:75
#2  uninitialized_copy<__gnu_cxx::__normal_iterator<fc::array<unsigned char, 65ul> const*, std::vector<fc::array<unsigned char, 65ul> > >, fc::array<unsigned char, 65ul>*> (__result=<optimized out>, __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_uninitialized.h:117
#3  __uninitialized_copy_a<__gnu_cxx::__normal_iterator<fc::array<unsigned char, 65ul> const*, std::vector<fc::array<unsigned char, 65ul> > >, fc::array<unsigned char, 65ul>*, fc::array<unsigned char, 65ul> > (__result=<optimized out>, __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_uninitialized.h:258
#4  vector (__x=..., this=0x7ffff50fff58) at /usr/include/c++/4.8/bits/stl_vector.h:316
#5  signed_transaction (this=0x7ffff50ffeb0, this@entry=0x0) at /home/alt/workspace/bitshares_toolkit/libraries/blockchain/include/bts/blockchain/transaction.hpp:142
#6  bts::wallet::transaction_data::transaction_data (this=this@entry=0x7ffff50ffeb0)
    at /home/alt/workspace/bitshares_toolkit/libraries/wallet/include/bts/wallet/wallet_records.hpp:145
#7  0x0000000000876025 in wallet_record (this=0x7ffff50ffea8) at /home/alt/workspace/bitshares_toolkit/libraries/wallet/include/bts/wallet/wallet_records.hpp:109
#8  pair (this=0x7ffff50ffe90) at /usr/include/c++/4.8/bits/stl_pair.h:127
#9  bts::wallet::wallet_db::clear_pending_transactions (this=0x15d1070) at /home/alt/workspace/bitshares_toolkit/libraries/wallet/wallet_db.cpp:332
#10 0x000000000079d2cb in bts::rpc_stubs::common_api_client::wallet_clear_pending_transactions (this=0x1546978)
    at /home/alt/workspace/bitshares_toolkit/build/libraries/rpc_stubs/common_api_client.cpp:390
#11 0x00000000006f2d55 in bts::rpc_stubs::common_api_rpc_server::wallet_clear_pending_transactions_positional (this=this@entry=0x1548290, json_connection=...,
    parameters=...) at /home/alt/workspace/bitshares_toolkit/build/libraries/rpc_stubs/common_api_rpc_server.cpp:1231
#12 0x000000000076a231 in bts::rpc_stubs::common_api_rpc_server::direct_invoke_positional_method (this=0x1548290, method_name=..., parameters=...)
    at /home/alt/workspace/bitshares_toolkit/build/libraries/rpc_stubs/common_api_rpc_server.cpp:6681
#13 0x00000000006530b0 in bts::rpc::detail::rpc_server_impl::dispatch_authenticated_method (this=this@entry=0x1548290, method_data=..., arguments_from_caller=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/rpc/rpc_server.cpp:393
#14 0x000000000064d413 in direct_invoke_method (arguments=..., method_name=..., this=0x1548290)
    at /home/alt/workspace/bitshares_toolkit/libraries/rpc/rpc_server.cpp:465
#15 bts::rpc::rpc_server::direct_invoke_method (this=<optimized out>, method_name=..., arguments=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/rpc/rpc_server.cpp:677
#16 0x000000000067e7b0 in bts::cli::detail::cli_impl::execute_command (this=this@entry=0x16053e0, command=..., arguments=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:568
#17 0x0000000000680998 in bts::cli::detail::cli_impl::execute_interactive_command (this=0x16053e0, command=..., arguments=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:556
#18 0x000000000065de0d in bts::cli::cli::execute_interactive_command (this=<optimized out>, command=..., arguments=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:1685
#19 0x000000000067cc5a in bts::cli::detail::cli_impl::parse_and_execute_interactive_command (this=this@entry=0x16053e0, command=..., argument_stream=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:163
#20 0x000000000067d6bb in bts::cli::detail::cli_impl::execute_command_line (this=this@entry=0x16053e0, line=...)
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:208
#21 0x000000000065d44d in bts::cli::detail::cli_impl::process_commands (this=this@entry=0x16053e0, input_stream=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:1589
#22 0x000000000065daad in start (this=0x16053e0) at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:82
#23 bts::cli::cli::start (this=<optimized out>) at /home/alt/workspace/bitshares_toolkit/libraries/cli/cli.cpp:1636
#24 0x0000000000589524 in start (this=<optimized out>) at /home/alt/workspace/bitshares_toolkit/libraries/client/client.cpp:308
#25 operator() (__closure=<optimized out>) at /home/alt/workspace/bitshares_toolkit/libraries/client/client.cpp:1809
#26 fc::detail::void_functor_run<bts::client::client::start()::__lambda0>::run(void *, void *) (functor=<optimized out>, prom=0x15f1ca0)
    at /home/alt/workspace/bitshares_toolkit/libraries/fc/include/fc/thread/task.hpp:54
#27 0x00000000005f9a6d in fc::task_base::run_impl (this=this@entry=0x15f1cb0) at /home/alt/workspace/bitshares_toolkit/libraries/fc/src/thread/task.cpp:38
#28 0x00000000005f9e15 in fc::task_base::run (this=this@entry=0x15f1cb0) at /home/alt/workspace/bitshares_toolkit/libraries/fc/src/thread/task.cpp:29
#29 0x00000000005f83b7 in run_next_task (this=0x15483e0) at /home/alt/workspace/bitshares_toolkit/libraries/fc/src/thread/thread_d.hpp:347
#30 fc::thread_d::process_tasks (this=this@entry=0x15483e0) at /home/alt/workspace/bitshares_toolkit/libraries/fc/src/thread/thread_d.hpp:370
#31 0x00000000005f86b1 in fc::thread_d::start_process_tasks (my=22316000) at /home/alt/workspace/bitshares_toolkit/libraries/fc/src/thread/thread_d.hpp:328
#32 0x0000000000ab5cee in make_fcontext ()
#33 0x00000000015483e0 in ?? ()
#34 0x0000000000000000 in ?? ()

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
Every 30 minutes.  If you changed your time then that could be an issue for about 30 minutes.
Yes, it synchronized now. Thanks.

Offline bytemaster

When is the  "ntp_error_seconds" calculated?
I've been running the client for some time and I noticed this:  "ntp_error_seconds": 5.8529650000000002 .
I've setup an ntp daemon and synchronized my time.
However the ntp_error_seconds remained the same for at least 10 minutes.
Does this mean I'm a cheater now ?

Every 30 minutes.  If you changed your time then that could be an issue for about 30 minutes.
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 wackou

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]
wallet_withdraw_delegate_pay init-delegate-82 init-delegate-82 11.0  and it should work.

Thanks! Gotta get some sleep now, but I'll test the armory import first thing tomorrow. Cheers!
Please vote for witness wackou! More info at http://digitalgaia.io

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
When is the  "ntp_error_seconds" calculated?
I've been running the client for some time and I noticed this:  "ntp_error_seconds": 5.8529650000000002 .
I've setup an ntp daemon and synchronized my time.
However the ntp_error_seconds remained the same for at least 10 minutes.
Does this mean I'm a cheater now ?