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

0 Members and 1 Guest are viewing this topic.

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 305
    • View Profile
Another single-block natural fork occurred at 15830  (likely the same delegate)...

I like 15 seconds more as it's quicker and fork is fine as you always have to face it and we have TaPOS to discard a fork anyway.
Weibo:http://weibo.com/zhangweis

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
Here is the actual console output:
Code: [Select]
--- in sync with p2p network
--- there are now 29 active connections to the p2p network
--- syncing with p2p network, 246 blocks left to fetch
--- there are now 29 active connections to the p2p network
--- there are now 29 active connections to the p2p network
emski (unlocked) >>> get_info
{
  "blockchain_head_block_num": 16429,
  "blockchain_head_block_time": "20140617T201115",
  "blockchain_head_block_time_rel": "24 seconds old",
  "blockchain_confirmation_requirement": 1,
  "blockchain_average_delegate_participation": 77.106518282988873,
  "network_num_connections": 29,
  "ntp_time": "20140617T201139.063736",
  "ntp_error_seconds": 4.4679169999999999,
  "wallet_unlocked_seconds_remaining": 2891931396,
  "wallet_next_block_production_time": "20140617T201530",
  "wallet_seconds_until_next_block_production": 231,
  "wallet_local_time": "20140617T201139",
  "blockchain_random_seed": "e2436f9c12cce0ef0198c92e2ae5458d2f9c56e0",
  "blockchain_shares": 10000642668612,
  "network_num_connections_max": 60,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19691231T235959",
  "wallet_version": 100
}
--- in sync with p2p network


Was I on a fork just before the message:
 "--- syncing with p2p network, 246 blocks left to fetch"
And then synchronized ?

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
Another single-block natural fork occurred at 15830  (likely the same delegate)...

I saw more forks on my end......???

Quote
>>> blockchain_list_forks
[
  1460,
  14683,
  10427,
  6158,
  12826,
  15830,
  6690,
  14994,
  2124,
  14973,
  7832,
  12852,
  2299,
  6388
]
pan2pan (unlocked) >>> info
{
  "blockchain_head_block_num": 16332,
  "blockchain_head_block_time": "20140617T194045",
  "blockchain_head_block_time_rel": "18 seconds old",
  "blockchain_confirmation_requirement": 3,
  "blockchain_average_delegate_participation": 77.414205905826023,
  "network_num_connections": 6,
  "ntp_time": "20140617T194103.348120",
  "ntp_error_seconds": 3.5663130000000001,
  "wallet_unlocked_seconds_remaining": 977746,
  "wallet_next_block_production_time": "20140617T194415",
  "wallet_seconds_until_next_block_production": 192,
  "wallet_local_time": "20140617T194103",
  "blockchain_random_seed": "28560defc69aa22ca1442fcfb45e7e4d087eb353",
  "blockchain_shares": 10000633395121,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20140629T031649",
  "wallet_version": 100
}
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline mauritso

  • Full Member
  • ***
  • Posts: 64
    • View Profile
Switched to a manually compiled/installed version of readline (coming from macports readline @6.3.003_0) and it built successfully.

Also discovered why the JSON RPC API didn't work at first, there is another difference between the bitcoin RPC and bitshares RPC.
Bitcoin RPC doesn't require to be passed an "id", bitshares RPC does.

http://<user>:<pass>@localhost:<httprpcport>/rpc and send an "id" and it should work (like so: "id" : uniqueidentifier)
BTS: maurits

Offline bytemaster

Another single-block natural fork occurred at 15830  (likely the same delegate)...
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
Funny command walllet_list_unspent_balances causes segfault

I think I fixed this...

Not completely:

Quote
default (unlocked) >>> wallet_list_unspent_balances
           BALANCE                                   OWNER                     VOTE
--------------------------------------------------------------------------------------------------------------------------
[...]
    10000000000000    XTSDZMTUtwj6FQHC6JsaevZ8usNHRqfW61fK                     none10 assert_exception: Assert Exception                                                                                           
!"unimplemented condition type":                                                                                                                                                                                   
    {}                                                                                                                                                                                                             
    th_a  cli.cpp:843 format_and_print_result

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Code: [Select]

>>> blockchain_list_forks
[
   10427,
  13346,
  15830,
  5624,
  14994,
  14973,
  7832,
  2299,
  6388

]

Code: [Select]
>>> info
{
  "blockchain_head_block_num": 15833,
  "blockchain_head_block_time": "20140617T170145",
  "blockchain_head_block_time_rel": "14 seconds old",
  "blockchain_confirmation_requirement": 15,
  "blockchain_average_delegate_participation": 77.537969624300558,
  "network_num_connections": 12,
  "ntp_time": "20140617T170159.909973",
  "ntp_error_seconds": 202.32990100000001,
  "wallet_unlocked_seconds_remaining": 0,
  "wallet_next_block_production_time": "20140617T171300",
  "wallet_seconds_until_next_block_production": 661,
  "wallet_local_time": "20140617T170159",
  "blockchain_random_seed": "abeedd4f3c753dea11ea026f9ff5345f1d76665a",
  "blockchain_shares": 10000628300985,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19700101T000000",
  "wallet_version": 100
}

Code: [Select]
>>> about
{
  "bitshares_toolkit_revision": "b851eb7cadfb79df07d5512ee9de1217479962b4",
  "bitshares_toolkit_revision_age": "49 minutes ago",
  "fc_revision": "653fd2ca8b54c64c0e2e217456bd9ee355d32ced",
  "fc_revision_age": "83 minutes ago",
  "compile_date": "compiled on Jun 17 2014 at 17:23:16"
}
« Last Edit: June 17, 2014, 05:42:10 pm by bitcoinerS »
>>> approve bitcoiners

Offline mauritso

  • Full Member
  • ***
  • Posts: 64
    • View Profile
Repost:

Code: [Select]
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/level_map.hpp:14:
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/upgrade_leveldb.hpp:9:
In file included from /opt/local/include/boost/regex.hpp:31:
In file included from /opt/local/include/boost/regex/v4/regex.hpp:48:
/opt/local/include/boost/regex/v4/regex_raw_buffer.hpp:132:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
      register pointer result = end;
      ^~~~~~~~~
1 warning generated.
Linking CXX executable bitshares_client
Undefined symbols for architecture x86_64:
  "_rl_copy_text", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
  "_rl_getc", referenced from:
      fc::detail::functor_run<bts::cli::detail::get_character::$_0>::run(void*, void*) in libbts_cli.a(cli.cpp.o)
  "_rl_replace_line", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/client/bitshares_client] Error 1
make[1]: *** [programs/client/CMakeFiles/bitshares_client.dir/all] Error 2
make: *** [all] Error 2

Is there a configuration error on my part? (Mac OS X 10.9)

Remove your cmake cache... it looks like you compiled / installed the latest readline but cmake is still linking to the old one. 

rm CMakeCache.txt

I do
Code: [Select]
rm -rf bitshares_toolkit every time when I want to update/rebuild bitshares_toolkit.

ran:

Code: [Select]
rm CMakeCache.txt
Code: [Select]
cmake -DCMAKE_PREFIX_PATH=/usr/local/ssl .
Code: [Select]
make
And I got the same error.
BTS: maurits

Offline bdnoble

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • Home Page

We will be launching a new Dry Run 3 chain and it will have the following changes:

1) all active delegates that produced 0 blocks will be removed
2) everyone that registered as a delegate will take their place prioritized by vote.
3) we have fixed the wallet_withdraw_delegate_pay operation which would introduce a hard fork
4) we will increase the block interval to 30 seconds
5) we will be updating the on-the-wire protocol to communicate extra information such as:
      a) latency between nodes
      b) additional information about node connectivity.
      c) persistent node IDs derived from a public key

With these network updates we should be able to map out the full network of connected nodes (nothing the NSA cannot do anyway).  Using this information delegates can optimize their network connections and users can verify geographic diversity.   

The new test net will launch once we finalize the on-the-wire protocol updates so probably tonight or tomorrow. 

A new GUI wallet is also close to release.

Is there any way we could get the wiki updated with the recently added debug commands? Like list_errors and max_connections and all that? That way those of us who came a little late can be more helpful.


Sent from my iPhone using Tapatalk
:)

Offline Kenof

  • Full Member
  • ***
  • Posts: 71
    • View Profile
last block produced 5 minutes ago, i think i am on fork   :-\

@bytemaster  +5%

?? what happened?

last block produced is 15742 but it is irrelevant now when dry run 3 is coming

Code: [Select]
"blockchain_head_block_num": 15742,
  "blockchain_head_block_time": "20140617T163030",
  "blockchain_head_block_time_rel": "15 minutes ago",
  "blockchain_confirmation_requirement": 7,
  "blockchain_average_delegate_participation": 74.329501915708818,
  "network_num_connections": 8,
  "wallet_unlocked_seconds_remaining": 0,
  "wallet_next_block_production_time": null,
  "wallet_seconds_until_next_block_production": null,
  "wallet_local_time": "20140617T164542",
  "blockchain_random_seed": "a22b0a9cd8f31b4a85a5a6b1b2a73e7a3cb5c396",
  "blockchain_shares": 10000630530782,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20140617T164023",
  "wallet_version": 100
Making life easier.

Offline bytemaster

default (unlocked) >>> info
{
  "blockchain_head_block_num": 15775,
  "blockchain_head_block_time": "20140617T164030",
  "blockchain_head_block_time_rel": "8 seconds old",
  "blockchain_confirmation_requirement": 1,
  "blockchain_average_delegate_participation": 78.099838969404189,
  "network_num_connections": 34,
  "ntp_time": "20140617T164038.675214",
  "ntp_error_seconds": -0.023547999999999999,
  "wallet_unlocked_seconds_remaining": 99960516,
  "wallet_next_block_production_time": "20140617T164215",
  "wallet_seconds_until_next_block_production": 97,
  "wallet_local_time": "20140617T164038",
  "blockchain_random_seed": "3493c71eac43d555d8d8aec75ba5b7005990c5d6",
  "blockchain_shares": 10000633285155,
  "network_num_connections_max": 100,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20170817T152914",
  "wallet_version": 100
}
default (unlocked) >>> blockchain_list_forks
[
  14683,
  15636,
]

The most recent fork was for a single block between times 15473 15474 and 15475 and appears to be a 'naturally occurring' well behaved/expected fork where delegate at time  15475 didn't get the block from 15474 in time and the other delegates agreed.   Increasing the block interval to 30 seconds should reduce the probability of this.  Also I suspect that the delegate that produced block 88383 (time slot 15474) may be running older code (ie: didn't update in the past 12 hours)
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 bytemaster

last block produced 5 minutes ago, i think i am on fork   :-\

@bytemaster  +5%

?? what happened?
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 bytemaster

Repost:

Code: [Select]
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/level_map.hpp:14:
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/upgrade_leveldb.hpp:9:
In file included from /opt/local/include/boost/regex.hpp:31:
In file included from /opt/local/include/boost/regex/v4/regex.hpp:48:
/opt/local/include/boost/regex/v4/regex_raw_buffer.hpp:132:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
      register pointer result = end;
      ^~~~~~~~~
1 warning generated.
Linking CXX executable bitshares_client
Undefined symbols for architecture x86_64:
  "_rl_copy_text", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
  "_rl_getc", referenced from:
      fc::detail::functor_run<bts::cli::detail::get_character::$_0>::run(void*, void*) in libbts_cli.a(cli.cpp.o)
  "_rl_replace_line", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/client/bitshares_client] Error 1
make[1]: *** [programs/client/CMakeFiles/bitshares_client.dir/all] Error 2
make: *** [all] Error 2

Is there a configuration error on my part? (Mac OS X 10.9)

Remove your cmake cache... it looks like you compiled / installed the latest readline but cmake is still linking to the old one. 

rm CMakeCache.txt
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 mauritso

  • Full Member
  • ***
  • Posts: 64
    • View Profile
Repost:

Code: [Select]
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/level_map.hpp:14:
In file included from /Users/maurits/bitsharesxts/bitshares_toolkit/libraries/db/include/bts/db/upgrade_leveldb.hpp:9:
In file included from /opt/local/include/boost/regex.hpp:31:
In file included from /opt/local/include/boost/regex/v4/regex.hpp:48:
/opt/local/include/boost/regex/v4/regex_raw_buffer.hpp:132:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
      register pointer result = end;
      ^~~~~~~~~
1 warning generated.
Linking CXX executable bitshares_client
Undefined symbols for architecture x86_64:
  "_rl_copy_text", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
  "_rl_getc", referenced from:
      fc::detail::functor_run<bts::cli::detail::get_character::$_0>::run(void*, void*) in libbts_cli.a(cli.cpp.o)
  "_rl_replace_line", referenced from:
      bts::cli::detail::cli_impl::display_status_message(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbts_cli.a(cli.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/client/bitshares_client] Error 1
make[1]: *** [programs/client/CMakeFiles/bitshares_client.dir/all] Error 2
make: *** [all] Error 2

Is there a configuration error on my part? (Mac OS X 10.9)
BTS: maurits

Offline Kenof

  • Full Member
  • ***
  • Posts: 71
    • View Profile
last block produced 5 minutes ago, i think i am on fork   :-\

@bytemaster  +5%
« Last Edit: June 17, 2014, 04:38:02 pm by Kenof »
Making life easier.