Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zhangweis

Pages: 1 ... 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21
196
General Discussion / Re: Dry Run 4: A New Hope
« on: June 20, 2014, 09:47:17 pm »
If you have less than 5 connections, shut down and reconnect.

Thanks and it works by restarting client.

197
General Discussion / Re: Dry Run 4: A New Hope
« on: June 20, 2014, 09:25:56 pm »
I got something like below, notice the wallet_seconds_until_next_block_production is -14. Any idea?

default (unlocked) >>> get_info
{
  "blockchain_head_block_num": 4,
  "blockchain_head_block_time": "20140620T212300",
  "blockchain_head_block_time_rel": "2 minutes old",
  "blockchain_confirmation_requirement": 244,
  "blockchain_average_delegate_participation": 13.333333333333334,
  "network_num_connections": 4,
  "ntp_time": "20140620T212514.774930",
  "ntp_error_seconds": -0.033466000000000003,
  "wallet_unlocked_seconds_remaining": 99999796,
  "wallet_next_block_production_time": "20140620T212500",
  "wallet_seconds_until_next_block_production": -14,
  "wallet_local_time": "20140620T212514",
  "blockchain_random_seed": "afeecdf51c48e6d33f41a334e0e57d554cdcd86f",
  "blockchain_shares": 9999853094228,
  "network_num_connections_max": 12,
  "network_protocol_version": 103,
  "wallet_open": true,
  "wallet_unlocked_until": "20170821T070830",
  "wallet_version": 100
}
Edit:
seems like caused by this error:
network_get_connection_count() >= _min_delegate_connection_count: Client must have 5 connections before you may produce blocks

198
General Discussion / Re: Dry Run 4: A New Hope
« on: June 20, 2014, 09:12:43 pm »
I've seen 1 block now.
Can someone send me some fund to register as delegate? Thanks in advance.

XTS8eghNapYmPzsmweCn7EVQLDqUKH91hj3GCowusMm8vRhkLM5Zk

199
General Discussion / Re: Dry Run 3: A Game of Delegates
« on: June 20, 2014, 12:54:50 am »
I've imported the delegate keys and unlocked the wallet but wallet_next_block_production_time is null.

Anything I need to do?

wallet_enable_delegate_block_production true

Thanks it works. BTW, it should be
wallet_enable_delegate_block_production <delegate name> true

200
General Discussion / Re: Dry Run 3: A Game of Delegates
« on: June 20, 2014, 12:47:54 am »
I've imported the delegate keys and unlocked the wallet but wallet_next_block_production_time is null.

Anything I need to do?

default (unlocked) >>> wallet_list_accounts
NAME (* delegate)                  KEY                                                             REGISTERED            TRUST LEVEL   
unelected-btszhangwei2 *           XTS6yyGEujvofqgQRfwvwWxMjZiFJwE4kBE1BpXtGpmhZ8aC58Dmb           2014-06-01T00:00:00   0         
unelected-btsjohn2 *               XTS7kcfTvho6h7juwajcNxBQA9rmiqd5iSFMZYywwbWRk9wqjo2Np           2014-06-01T00:00:00   0         
unelected-btszhangweis *           XTS7CoMc1xHodpiVYS8gukQRhmrpxaBEz7oMaUy434HBLbJegtFo1           2014-06-01T00:00:00   0         
unelected-btsjohn *                XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8           2014-06-01T00:00:00   0         
btsjohn                            XTS85s81zMdkgEuQRySuRWDWcWRoqzHv1qnssG6mAtRb1SGMmFGHN           NO                    0         
default (unlocked) >>> get_info
{
  "blockchain_head_block_num": 10,
  "blockchain_head_block_time": "20140620T004300",
  "blockchain_head_block_time_rel": "3 minutes old",
  "blockchain_confirmation_requirement": 303,
  "blockchain_average_delegate_participation": 10.1010101010101,
  "network_num_connections": 4,
  "ntp_time": "20140620T004615.160231",
  "ntp_error_seconds": -0.023188,
  "wallet_unlocked_seconds_remaining": 99999813,
  "wallet_next_block_production_time": null,
  "wallet_seconds_until_next_block_production": null,
  "wallet_local_time": "20140620T004615",
  "blockchain_random_seed": "a4636e0bfcdfdda1c5222c6569ece324a37c4d74",
  "blockchain_shares": 9999957995000,
  "network_num_connections_max": 12,
  "network_protocol_version": 103,
  "wallet_open": true,
  "wallet_unlocked_until": "20170820T102948",
  "wallet_version": 100
}

201
General Discussion / Re: Dry Run 3: A Game of Delegates
« on: June 20, 2014, 12:44:03 am »
I need some fund to register delegate.

Can someone send me some fund? Thanks.

my address is XTS85s81zMdkgEuQRySuRWDWcWRoqzHv1qnssG6mAtRb1SGMmFGHN

202
General Discussion / Re: Names for dry run 3
« on: June 18, 2014, 11:00:26 pm »
btsjohn: XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8 (was init-delegate-9)
btszhangwei:XTS7CoMc1xHodpiVYS8gukQRhmrpxaBEz7oMaUy434HBLbJegtFo1(was init-delegate-10)
btsjohn2:XTS7kcfTvho6h7juwajcNxBQA9rmiqd5iSFMZYywwbWRk9wqjo2Np(was init-delegate-11)
btszhangwei2:XTS6yyGEujvofqgQRfwvwWxMjZiFJwE4kBE1BpXtGpmhZ8aC58Dmb(was init-delegate-12)

Thanks.

203
General Discussion / Re: Dry Run 2: The Real Deal
« on: June 17, 2014, 10:18:14 pm »
Today the delegates are incentive to produce blocks by getting reward and punished only by votes.

I guess people are lazy to vote and I think we can further punish the delegate for missing blocks like this:

The reward for each block will be (normal reward)*(blocks produced in last 10000 blocks)/(blocks should have produced in last 10000 blocks). This means the more you miss, the less you can get the reward. Of course, you can be recovered if you continuously produce blocks for 10000 blocks (100 turns).

204
General Discussion / Re: Dry Run 2: The Real Deal
« on: June 17, 2014, 10:00:22 pm »
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.

205
General Discussion / Re: Dry Run 2: The Real Deal
« on: June 15, 2014, 10:39:27 am »
Code: [Select]
Loading blockchain from "/root/.BitSharesXTS/chain"
Starting JSON RPC server on port 57466 (localhost only)
Starting HTTP JSON RPC server on port 9989 (localhost only)
------------ error --------------
8 out_of_range_exception: Out of Range
read datastream of length 23 over by 1
    {"method":"read","len":23,"over":1}
    th_a  datastream.cpp:6 throw_datastream_range_error
error unpacking uint8_t
    {"type":"uint8_t"}
    th_a  raw.hpp:440 unpack
optional<fc::exception>
    {"type":"fc::exception"}
    th_a  raw.hpp:164 unpack
Error unpacking field last_error
    {"field":"last_error"}
    th_a  raw.hpp:222 operator()
error unpacking bts::net::potential_peer_record
    {"type":"bts::net::potential_peer_record"}
    th_a  raw.hpp:440 unpack
what is wrong

I solved this by deleting ~/.BitsharesXT dir. But remember to backup your wallet. Or maybe you can try run ./bitshare_client --clear-peer-database --resync-blockchain

206
General Discussion / Re: Delegates, start your engines!
« on: June 10, 2014, 01:06:51 pm »
Still failed from switching fork. Any idea?


1784976ms       th_a       switch_to_fork ]     pop 83bdb2434ad8e1f02c043d33871b689a2049ce9e                    chain_database.cpp:432
1784978ms       th_a           push_block ] attempt to switch to fork failed: 13 St12bad_weak_ptr: bad_weak_ptr
bad_weak_ptr:
    {"what":"bad_weak_ptr"}
    th_a  chain_database.cpp:758 pop_block

    {"block_id":"4565f1d3b495212c59fea3390ef944c2fe973ca6"}
    th_a  chain_database.cpp:440 switch_to_fork, reverting                      chain_database.cpp:1005

I can see it's caused by chain_database.cpp line 756 but no further idea.

         if( _observer ) _observer->state_changed(undo_state.shared_from_this());

Edit:

I've temporarily bypassed this by changing it to below:
         if( _observer ) _observer->state_changed((pending_chain_state_ptr&)undo_state);

207
General Discussion / Re: Delegates, start your engines!
« on: June 10, 2014, 10:31:00 am »
Still failed from switching fork. Any idea?


1784976ms       th_a       switch_to_fork ]     pop 83bdb2434ad8e1f02c043d33871b689a2049ce9e                    chain_database.cpp:432
1784978ms       th_a           push_block ] attempt to switch to fork failed: 13 St12bad_weak_ptr: bad_weak_ptr
bad_weak_ptr:
    {"what":"bad_weak_ptr"}
    th_a  chain_database.cpp:758 pop_block

    {"block_id":"4565f1d3b495212c59fea3390ef944c2fe973ca6"}
    th_a  chain_database.cpp:440 switch_to_fork, reverting                      chain_database.cpp:1005

208
General Discussion / Re: Delegates, start your engines!
« on: June 09, 2014, 09:54:22 pm »
I guess I'm on a fork as I can see that I'm the only delegate generating blocks.

get_info
{
  "blockchain_head_block_num": 962,
  "blockchain_head_block_time": "20140609T214430",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 19.696969696969695,
  "network_num_connections": 7,
  "wallet_unlocked_seconds_remaining": 9999999343,
  "wallet_next_block_production_time": "20140609T215515",
  "wallet_seconds_until_next_block_production": 119,
  "wallet_local_time": "20140609T215316",
  "blockchain_random_seed": "3a3a9e5f0ac5b5ebbfa4aeb0294a0c152af8efad",
  "blockchain_shares": 9999979523473,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20181223T045058.320125",
  "wallet_version": 100
}

I have below logs, does that prevent me connecting to other normal nodes?

3208214ms       th_a p2p_network_connect_ ] I don't need any more connections, waiting forever until something changes                node.cpp:684
3208214ms       th_a                 bind ] Exception binding outgoing connection to desired local endpoint: bind: Address already in use                      tcp_socket.cpp:105
3208214ms       th_a           connect_to ] Failed to bind to desired local endpoint 0.0.0.0:45410, will connect using an OS-selected endpoint: {"code":0,"name":"exception","message":"unspecified","stack":[{"context":{"level":"error","file":"tcp_socket.cpp","line":106,"method":"bind","hostname":"","thread_name":"th_a","timestamp":"20140609T215328.214711"},"format":"error binding to ${endpoint}: ${what}","data":{"endpoint":"0.0.0.0:45410","what":"bind: Address already in use"}}]}                  node.cpp:483

Edit:
I started the client with --clear-peer-database and --resync-blockchain and got the similar but the block size is 422 and blockchain_get_config is like below:
blockchain_get_config
{
  "blockchain_id": "964b38343dc7337f8d87a16323faaa7c63b95160c73739c6d0a276ef41f37312",
  "block_interval": 15,
  "max_block_size": 104857,
  "target_block_size": 52428,
  "block_reward": "0.104857 XTS",
  "inactivity_fee_apr": 10,
  "max_blockchain_size": 107374182400,
  "symbol": "XTS",
  "name": "BitShares XTS",
  "version": 101,
  "address_prefix": "XTS",
  "min_block_fee": 1,
  "delegate_num": 97,
  "delegate_reg_fee": 10485700,
  "delegate_reward_min": 104857,
  "name_size_max": 63,
  "symbol_size_max": 5,
  "symbol_size_min": 3,
  "data_size_max": 65536,
  "asset_reg_fee": 10485700,
  "asset_shares_max": 1000000000000000
}

I can see logs getting fork and switching but failed.
1861246ms       th_a       handle_message ] CLIENT: just received block 082e59b67949339ddaed7354ceadb965f9713f4b                      client.cpp:461
1861246ms       th_a         on_new_block ] Received block 1754 from the server, current head block is 427                      client.cpp:421
1861246ms       th_a      store_and_index ]            we already know about its previous: f38c12564894e1ac0deee676bd91b7ff957ddf97   chain_database.cpp:355
1861246ms       th_a       switch_to_fork ] switch from fork b7ea78344a5056476537428623d00899a3cead7d to 082e59b67949339ddaed7354ceadb965f9713f4b                      chain_database.cpp:425
1861246ms       th_a     get_fork_history ]                     chain_database.cpp:704
...
1861261ms       th_a           push_block ] attempt to switch to fork failed: 13
bad_weak_ptr:
    {"what":"bad_weak_ptr"}
    th_a  chain_database.cpp:756 pop_block

    {"block_id":"082e59b67949339ddaed7354ceadb965f9713f4b"}
    th_a  chain_database.cpp:438 switch_to_fork, reverting                      chain_database.cpp:1003

209
General Discussion / Re: Initial delegates, let's get ready!
« on: June 08, 2014, 12:18:04 pm »
Node: 1 Core CPU/2G memory/20G SSD
Location: Qingdao, China

Public keys:
zhangweis-delegate-1:XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8
zhangweis-delegate-2:XTS7CoMc1xHodpiVYS8gukQRhmrpxaBEz7oMaUy434HBLbJegtFo1
zhangweis-delegate-3:XTS7kcfTvho6h7juwajcNxBQA9rmiqd5iSFMZYywwbWRk9wqjo2Np
zhangweis-delegate-4:XTS6yyGEujvofqgQRfwvwWxMjZiFJwE4kBE1BpXtGpmhZ8aC58Dmb
zhangweis-delegate-5:XTS4yrt2mFvEcaNCD3HVYiDgWcS5jVpf3R9MfnTh6W3v3Y1W4vGrA

(repost)

210
General Discussion / Re: Initial delegates, let's get ready!
« on: June 08, 2014, 12:56:14 am »
Node: 1 Core CPU/2G memory/20G SSD
Location: Qingdao, China

Public keys:
zhangweis-delegate-1:XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8
zhangweis-delegate-2:XTS7CoMc1xHodpiVYS8gukQRhmrpxaBEz7oMaUy434HBLbJegtFo1
zhangweis-delegate-3:XTS7kcfTvho6h7juwajcNxBQA9rmiqd5iSFMZYywwbWRk9wqjo2Np
zhangweis-delegate-4:XTS6yyGEujvofqgQRfwvwWxMjZiFJwE4kBE1BpXtGpmhZ8aC58Dmb
zhangweis-delegate-5:XTS4yrt2mFvEcaNCD3HVYiDgWcS5jVpf3R9MfnTh6W3v3Y1W4vGrA

Pages: 1 ... 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21