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

0 Members and 1 Guest are viewing this topic.

Offline muse-umum

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile

When did you build your client ? BM updated /libraries/client/client.cpp earlier today, you can only produce blocks when you have more than 5 connections if you built your client with this update.

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/client/client.cpp   line 450.

client built from code pulled in the last hour.

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4369,
  "blockchain_head_block_time": "20140614T182045",
  "blockchain_confirmation_requirement": 284,
  "blockchain_average_delegate_participation": 54.957507082152972,
  "network_num_connections": 1,
  "wallet_unlocked_seconds_remaining": 999999991,
  "wallet_next_block_production_time": "20140614T183700",
  "wallet_seconds_until_next_block_production": 832,
  "wallet_local_time": "20140614T182308",
  "blockchain_random_seed": "9aaecbe4f4974f5231326f3eb1f37b064a6b405b",
  "blockchain_shares": 10000027393425,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T134123",
  "wallet_version": 100
}

Code: [Select]
default (unlocked) >>> about
{
  "bitshares_toolkit_revision": "5d2f9a71c69fd8eb5aebf33ead1d1f3fb2090121",
  "bitshares_toolkit_revision_age": "78 minutes ago",
  "fc_revision": "eab346121d1e6a2f52246e84b503907d8ec705f1",
  "fc_revision_age": "44 hours ago",
  "compile_date": "compiled on Jun 14 2014 at 17:16:08"
}

So you have to wait till you get 5 or more connections. Now you only have one.

Offline bytemaster

It appears that the P2P connectivity issues are the problem for you.    Right now we are adding extra code to give us greater visibility into the state of the connections and help diagnose these kinds of issues.

I just added code to catch and report the reason why your block didn't get produced.  There is a new RPC command 'list_errors' that will dump major exceptions:

    1) why you didn't produce a block when it was your turn
    2) why a block or transaction was rejected
    3) ... coming soon ... why a peer was intentionally disconnected
    4) ... coming soon ... why you were intentionally disconnected from a peer.

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 bitcoinerS

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

When did you build your client ? BM updated /libraries/client/client.cpp earlier today, you can only produce blocks when you have more than 5 connections if you built your client with this update.

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/client/client.cpp   line 450.

client built from code pulled in the last hour.

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4369,
  "blockchain_head_block_time": "20140614T182045",
  "blockchain_confirmation_requirement": 284,
  "blockchain_average_delegate_participation": 54.957507082152972,
  "network_num_connections": 1,
  "wallet_unlocked_seconds_remaining": 999999991,
  "wallet_next_block_production_time": "20140614T183700",
  "wallet_seconds_until_next_block_production": 832,
  "wallet_local_time": "20140614T182308",
  "blockchain_random_seed": "9aaecbe4f4974f5231326f3eb1f37b064a6b405b",
  "blockchain_shares": 10000027393425,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T134123",
  "wallet_version": 100
}

Code: [Select]
default (unlocked) >>> about
{
  "bitshares_toolkit_revision": "5d2f9a71c69fd8eb5aebf33ead1d1f3fb2090121",
  "bitshares_toolkit_revision_age": "78 minutes ago",
  "fc_revision": "eab346121d1e6a2f52246e84b503907d8ec705f1",
  "fc_revision_age": "44 hours ago",
  "compile_date": "compiled on Jun 14 2014 at 17:16:08"
}
>>> approve bitcoiners

Offline bitcoinerS

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

Can you print out your peers?
Can you restart your peer and see if that allows it to produce blocks.   
This is a very curious case.

Code: [Select]

network_get_peer_info
[{
    "addr": "107.170.30.182:8764",
    "addrlocal": "207.12.89.119:36129",
    "services": "00000001",
    "lastsend": 1402770137,
    "lastrecv": 1402770137,
    "bytessent": 1024,
    "bytesrecv": 12400,
    "conntime": "",
    "pingtime": "",
    "pingwait": "",
    "version": "",
    "subver": "bts::net::node",
    "inbound": false,
    "firewall_status": "unknown",
    "startingheight": "",
    "banscore": "",
    "syncnode": "",
    "bitshares_git_revision_sha": "834272898d260eb54335196fb1009332c2789785 (different from ours)",
    "bitshares_git_revision_unix_timestamp": "20140613T223721",
    "bitshares_git_revision_age": "20 hours ago (older than ours)",
    "fc_git_revision_sha": "b02210a3617f86d09a2898bab17c727c73aae6f0 (different from ours)",
    "fc_git_revision_unix_timestamp": "20140612T213658",
    "fc_git_revision_age": "45 hours ago (older than ours)",
    "platform": "linux"
  }
]


Node restarted. Will update with results.
« Last Edit: June 14, 2014, 06:27:46 pm by bitcoinerS »
>>> approve bitcoiners

Offline bytemaster

Quote
Install NTP and sync your local time .. that fixed it for me!

The client now has a built in NTP service... I suppose I could add checks to make sure it actually worked properly.  It doesn't change your system clock, but does update the offset it the client uses for blockchain validation.
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

Quote
When did you build your client ? BM updated /libraries/client/client.cpp earlier today, you can only produce blocks when you have more than 5 connections if you built your client with this update.

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/client/client.cpp   line 450.
Modify message

Good catch!
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
We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,

strangely my delegate (bitcoiners) is still not producing any blocks..

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4298,
  "blockchain_head_block_time": "20140614T174845",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 54.18994413407821,
  "network_num_connections": 3,
  "wallet_unlocked_seconds_remaining": 999994911,
  "wallet_next_block_production_time": "20140614T180415",
  "wallet_seconds_until_next_block_production": 921,
  "wallet_local_time": "20140614T174854",
  "blockchain_random_seed": "fe9131fe0b860cb38cc45efaf16a9490601333f2",
  "blockchain_shares": 10000023565531,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T114229",
  "wallet_version": 100
}



Code: [Select]
default (unlocked) >>> blockchain_get_account_record bitcoiners
{
  "id": 299,
  "name": "bitcoiners",
  "public_data": null,
  "owner_key": "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk",
  "active_key_history": [[
      "20140613T030845",
      "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk"
    ]
  ],
  "delegate_info": {
    "votes_for": 83118870000,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 39,
    "pay_balance": 0,
Install NTP and sync your local time .. that fixed it for me!

Offline muse-umum

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,

strangely my delegate (bitcoiners) is still not producing any blocks..

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4298,
  "blockchain_head_block_time": "20140614T174845",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 54.18994413407821,
  "network_num_connections": 3,
  "wallet_unlocked_seconds_remaining": 999994911,
  "wallet_next_block_production_time": "20140614T180415",
  "wallet_seconds_until_next_block_production": 921,
  "wallet_local_time": "20140614T174854",
  "blockchain_random_seed": "fe9131fe0b860cb38cc45efaf16a9490601333f2",
  "blockchain_shares": 10000023565531,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T114229",
  "wallet_version": 100
}



Code: [Select]
default (unlocked) >>> blockchain_get_account_record bitcoiners
{
  "id": 299,
  "name": "bitcoiners",
  "public_data": null,
  "owner_key": "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk",
  "active_key_history": [[
      "20140613T030845",
      "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk"
    ]
  ],
  "delegate_info": {
    "votes_for": 83118870000,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 39,
    "pay_balance": 0,

When did you build your client ? BM updated /libraries/client/client.cpp earlier today, you can only produce blocks when you have more than 5 connections if you built your client with this update.

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/client/client.cpp   line 450.

Offline bytemaster

We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,

strangely my delegate (bitcoiners) is still not producing any blocks..

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4298,
  "blockchain_head_block_time": "20140614T174845",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 54.18994413407821,
  "network_num_connections": 3,
  "wallet_unlocked_seconds_remaining": 999994911,
  "wallet_next_block_production_time": "20140614T180415",
  "wallet_seconds_until_next_block_production": 921,
  "wallet_local_time": "20140614T174854",
  "blockchain_random_seed": "fe9131fe0b860cb38cc45efaf16a9490601333f2",
  "blockchain_shares": 10000023565531,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T114229",
  "wallet_version": 100
}



Code: [Select]
default (unlocked) >>> blockchain_get_account_record bitcoiners
{
  "id": 299,
  "name": "bitcoiners",
  "public_data": null,
  "owner_key": "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk",
  "active_key_history": [[
      "20140613T030845",
      "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk"
    ]
  ],
  "delegate_info": {
    "votes_for": 83118870000,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 39,
    "pay_balance": 0,
"blockchain_head_block_num": 4330,
  "blockchain_head_block_time": "20140614T180115",

Can you print out your peers?
Can you restart your peer and see if that allows it to produce blocks.   
This is a very curious case.
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
Now that my machine produces blocks successfully I'd like to reoffer my pub-keys for the discared delegates:

public key: XTS6DTmCuhUgGyN3sE2qxe7x21Fon9yqYrn9nErGLVqpiRJg9MvAH
public key: XTS8Y443qpsYp5hpmczg7NvDtqumZvzP8Az88n2EDrKECzYJKwMDP
public key: XTS5dLdpSdVZEcT7JNFL6Q7CJ8kxxj2geX7xCNJRhAK543gULNoK2
public key: XTS5oSzGcPetswPJSQ9s9qoXRdfax1oVVWCZsaKnBS5Q8u7gawZ6B   (this one is active in the current testnet)
public key: XTS7e4pNDgLy7C7T6haye45PLrTRvH9FfAKpj8BAS3fbXNd6EtYEM

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,

strangely my delegate (bitcoiners) is still not producing any blocks..

Code: [Select]
get_info
{
  "blockchain_head_block_num": 4298,
  "blockchain_head_block_time": "20140614T174845",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 54.18994413407821,
  "network_num_connections": 3,
  "wallet_unlocked_seconds_remaining": 999994911,
  "wallet_next_block_production_time": "20140614T180415",
  "wallet_seconds_until_next_block_production": 921,
  "wallet_local_time": "20140614T174854",
  "blockchain_random_seed": "fe9131fe0b860cb38cc45efaf16a9490601333f2",
  "blockchain_shares": 10000023565531,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19100115T114229",
  "wallet_version": 100
}



Code: [Select]
default (unlocked) >>> blockchain_get_account_record bitcoiners
{
  "id": 299,
  "name": "bitcoiners",
  "public_data": null,
  "owner_key": "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk",
  "active_key_history": [[
      "20140613T030845",
      "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk"
    ]
  ],
  "delegate_info": {
    "votes_for": 83118870000,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 39,
    "pay_balance": 0,
>>> approve bitcoiners

Offline muse-umum

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,

 +5% +5% +5%

My three nodes:
"blocks_produced": 76,
"blocks_missed": 31,

"blocks_produced": 80,
"blocks_missed": 29,

"blocks_produced": 76,
"blocks_missed": 30,

Offline bytemaster

@bytemaster: maybe i'am wrong, but i observed the issue due to limited p2p connections the first time after
commit f9d175e8ddb2391e2dbee74449cd3c10f307b553 in vendors submodule where upnpc.c gets removed.
Before that commit i had 8 connections in no time. Hope it helps.

Thanks for the tip, we will look into it.
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

We are making progress here... once we get this up to 100% we will know we have a solid network :) 

"blockchain_average_delegate_participation": 54.463784390791687,
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 spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Thank you, I will vote for you if it helps (smart way of buying votes ;)
Thanks you deserve some love ;)
Code: [Select]
4257.0    2014-06-14T17:28:30 spartako            mauritso            some love                               100.000000 LOVE        0.010000 XTS        7067702c

Quote
I will try to import my private keys once again, I will post here if it works or not in a moment.

EDIT: It worked, tried the same thing a few days back, it didn't work that time.

There was a bug in the import command and it was fixed.
wallet_account_set_approval spartako