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

0 Members and 1 Guest are viewing this topic.

clout

  • Guest
i already deleted ~/.BitsharesXTS

Offline bytemaster

History of recent forks...



The bottom number in each circle is the time slice... it should be sequential.    If it is not sequential then it means some blocks were missed.

These are the forks known by the main seed node.
« Last Edit: June 15, 2014, 09:10:43 pm by bytemaster »
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 toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
I just recompiled the client. However i cannot get it to work. I get the error:

Code: [Select]

Initializing genesis state from built-in genesis file
Not starting RPC server, use --server to enable the RPC interface
------------ 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


delete your peer database "rm -r ~/.BitSharesXTS/peers.leveldb"
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.

clout

  • Guest
I just recompiled the client. However i cannot get it to work. I get the error:

Code: [Select]

Initializing genesis state from built-in genesis file
Not starting RPC server, use --server to enable the RPC interface
------------ 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


Offline bytemaster

"blockchain_average_delegate_participation": 70.69...........


Still working out some bugs that we have found, but it looks like forking has been greatly reduced.
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
Do you have your delegate key imported on two separate nodes?
That would partially explain why you keep getting onto a fork

No, delegate key is only loaded on server node.
>>> approve bitcoiners

clout

  • Guest
Would it be bad to automatically fire delegates if they fall below a certain ratio of blocks produced vs blocks missed?

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Can you give me the result of 'list_errors' ?

Here is my latest.

Code: [Select]
     >>> list_errors
[[
    "20140615T202617.117015",{
      "code": 10,
      "name": "assert_exception",
      "message": "Assert Exception",
      "stack": [{
          "context": {
            "level": "error",
            "file": "chain_database.cpp",
            "line": 502,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.116696"
          },
          "format": "block_data.timestamp <= (now + BTS_BLOCKCHAIN_BLOCK_INTERVAL_SEC/2): ${t} < ${now}",
          "data": {
            "t": "20140615T202700",
            "now": "20140615T202617"
          }
        },{
          "context": {
            "level": "warn",
            "file": "chain_database.cpp",
            "line": 519,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.116735"
          },
          "format": "",
          "data": {}
        },{
          "context": {
            "level": "warn",
            "file": "chain_database.cpp",
            "line": 703,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.116872"
          },
          "format": "",
          "data": {
            "block": {
              "previous": "a0746545259e47614589373baad67bd203c74eaa",
              "block_num": 8311,
              "fee_rate": 1000,
              "delegate_pay_rate": 77795,
              "timestamp": "20140615T202700",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "1e304010c539bd92b57be0579619d4bcf6430043",
              "previous_secret": "7de7cf32ce93fed59c0a8655d70eb0420a6dd0ba",
              "delegate_signature": "201c21399a7148a16ce8581bdf16e8b7a222ce202776f5937f36065e3beace8a09027493ede5dfb9fdec83aeb852df4ab9cb3da372ea64760d84c24526393e050b",
              "user_transactions": []
            }
          }
        },{
          "context": {
            "level": "warn",
            "file": "chain_database.cpp",
            "line": 1078,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.116928"
          },
          "format": "",
          "data": {
            "block_data": {
              "previous": "a0746545259e47614589373baad67bd203c74eaa",
              "block_num": 8311,
              "fee_rate": 1000,
              "delegate_pay_rate": 77795,
              "timestamp": "20140615T202700",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "1e304010c539bd92b57be0579619d4bcf6430043",
              "previous_secret": "7de7cf32ce93fed59c0a8655d70eb0420a6dd0ba",
              "delegate_signature": "201c21399a7148a16ce8581bdf16e8b7a222ce202776f5937f36065e3beace8a09027493ede5dfb9fdec83aeb852df4ab9cb3da372ea64760d84c24526393e050b",
              "user_transactions": []
            }
          }
        },{
          "context": {
            "level": "warn",
            "file": "client.cpp",
            "line": 520,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.116999"
          },
          "format": "Error pushing block ${block_number} - ${block_id}",
          "data": {
            "block_id": "e9e03bdb20102b3a54705f6d00d61e188bac0577",
            "block_number": 8311,
            "block": {
              "previous": "a0746545259e47614589373baad67bd203c74eaa",
              "block_num": 8311,
              "fee_rate": 1000,
              "delegate_pay_rate": 77795,
              "timestamp": "20140615T202700",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "1e304010c539bd92b57be0579619d4bcf6430043",
              "previous_secret": "7de7cf32ce93fed59c0a8655d70eb0420a6dd0ba",
              "delegate_signature": "201c21399a7148a16ce8581bdf16e8b7a222ce202776f5937f36065e3beace8a09027493ede5dfb9fdec83aeb852df4ab9cb3da372ea64760d84c24526393e050b",
              "user_transactions": []
            }
          }
        }
      ]
    }
  ],[
    "20140615T202617.118015",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.118014"
          },
          "format": "I am disconnecting peer 128.199.180.19:56891 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.119228",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.119227"
          },
          "format": "I am disconnecting peer 180.153.142.120:8764 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.121452",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.121450"
          },
          "format": "I am disconnecting peer 106.187.91.24:38866 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.122178",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.122176"
          },
          "format": "I am disconnecting peer 106.185.24.234:39283 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.124988",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.124986"
          },
          "format": "I am disconnecting peer 79.173.81.171:8764 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.126778",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.126776"
          },
          "format": "I am disconnecting peer 80.240.133.79:55577 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.135656",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.135654"
          },
          "format": "I am disconnecting peer 162.243.127.243:39878 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ],[
    "20140615T202617.138049",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 818,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140615T202617.138048"
          },
          "format": "I am disconnecting peer 107.170.30.182:8764 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ]
]



Looks like I am two different forks.

desktop


Code: [Select]
>>> blockchain_get_block_by_number 8312
{
  "previous": "e9e03bdb20102b3a54705f6d00d61e188bac0577",
  "block_num": 8312,
  "fee_rate": 1000,
  "delegate_pay_rate": 77799,
  "timestamp": "20140615T202715",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "5e35de2abda755a54cb771fa55fa12b54ce832d0",
  "previous_secret": "343e7ff8cc86e25ecb4e8b2ad57cf1fb2681eefa",
  "delegate_signature": "1fcec3efbb49f099c9c63444636a1300428b8af87fbd5a07043f761e7e88fa45d5494a5ed0187c94e680a91c9d6ea179ee75a0b39568b36380ab03774385990049",
  "user_transaction_ids": []

delegate node

Code: [Select]
blockchain_get_block_by_number 8312
{
  "previous": "12c95234b7fa8dfe12e0e2ae4a238e384953daf0",
  "block_num": 8312,
  "fee_rate": 1000,
  "delegate_pay_rate": 77799,
  "timestamp": "20140615T205800",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "41ebd8f0adc61466e4daa57b64c2736ff7dd4ed5",
  "previous_secret": "62518597fa402d3cfdd670fe2effda4474e0d1ab",
  "delegate_signature": "2042c68aad18bcf3698ca63fc29bbc6cd93ba86148a1b8dad5cf8087eba98fa554324f842d44435bc1793ac9824eab374a211b070c722e12b2c53ea5cdb7122568",
  "user_transaction_ids": []
}

« Last Edit: June 15, 2014, 09:29:07 pm by bitcoinerS »
>>> approve bitcoiners

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Do you have your delegate key imported on two separate nodes?
That would partially explain why you keep getting onto a fork
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 bytemaster

try command below and find out both clients are on the same chain

blockchain_get_block_by_number 7489



desktop
Code: [Select]
blockchain_get_block_by_number 7489
{
  "previous": "a1d2a69bfc8e2ad421972be43230f64551ce0c76",
  "block_num": 7489,
  "fee_rate": 1000,
  "delegate_pay_rate": 74119,
  "timestamp": "20140615T153815",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a8b7d4cb492d5a53d43e055d77ba0be9445e9e1d",
  "previous_secret": "fc8f207fd0d1c53da6fd2bb3c674c9e1a0c2d407",
  "delegate_signature": "200bd9114e5e932760e0f64dcdd74df79c9b7dbd98ed4f0f0ea4957ca0df00c7fab5cd8186c2434111a9dfb2c470b1428c1432483fcf687a672e27a4936916f277",
  "user_transaction_ids": []
}

get_info
{
  "blockchain_head_block_num": 8037,
  "blockchain_head_block_time": "20140615T185145",
  "blockchain_head_block_time_rel": "in the future",
  "blockchain_confirmation_requirement": 174,
  "blockchain_average_delegate_participation": 67.454798331015297,
  "network_num_connections": 8,


server
Code: [Select]
blockchain_get_block_by_number 7489
{
  "previous": "a1d2a69bfc8e2ad421972be43230f64551ce0c76",
  "block_num": 7489,
  "fee_rate": 1000,
  "delegate_pay_rate": 74119,
  "timestamp": "20140615T153815",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a8b7d4cb492d5a53d43e055d77ba0be9445e9e1d",
  "previous_secret": "fc8f207fd0d1c53da6fd2bb3c674c9e1a0c2d407",
  "delegate_signature": "200bd9114e5e932760e0f64dcdd74df79c9b7dbd98ed4f0f0ea4957ca0df00c7fab5cd8186c2434111a9dfb2c470b1428c1432483fcf687a672e27a4936916f277",
  "user_transaction_ids": []
}

get_info
{
  "blockchain_head_block_num": 7489,
  "blockchain_head_block_time": "20140615T153815",
  "blockchain_head_block_time_rel": "3 hours ago",
  "blockchain_confirmation_requirement": 278,
  "blockchain_average_delegate_participation": 42.863455589924875,
  "network_num_connections": 11,


looks like my delegate node is stuck on block 7489

Can you give me the result of 'list_errors' ?
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
try command below and find out both clients are on the same chain

blockchain_get_block_by_number 7489



desktop
Code: [Select]
blockchain_get_block_by_number 7489
{
  "previous": "a1d2a69bfc8e2ad421972be43230f64551ce0c76",
  "block_num": 7489,
  "fee_rate": 1000,
  "delegate_pay_rate": 74119,
  "timestamp": "20140615T153815",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a8b7d4cb492d5a53d43e055d77ba0be9445e9e1d",
  "previous_secret": "fc8f207fd0d1c53da6fd2bb3c674c9e1a0c2d407",
  "delegate_signature": "200bd9114e5e932760e0f64dcdd74df79c9b7dbd98ed4f0f0ea4957ca0df00c7fab5cd8186c2434111a9dfb2c470b1428c1432483fcf687a672e27a4936916f277",
  "user_transaction_ids": []
}

get_info
{
  "blockchain_head_block_num": 8037,
  "blockchain_head_block_time": "20140615T185145",
  "blockchain_head_block_time_rel": "in the future",
  "blockchain_confirmation_requirement": 174,
  "blockchain_average_delegate_participation": 67.454798331015297,
  "network_num_connections": 8,


server
Code: [Select]
blockchain_get_block_by_number 7489
{
  "previous": "a1d2a69bfc8e2ad421972be43230f64551ce0c76",
  "block_num": 7489,
  "fee_rate": 1000,
  "delegate_pay_rate": 74119,
  "timestamp": "20140615T153815",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a8b7d4cb492d5a53d43e055d77ba0be9445e9e1d",
  "previous_secret": "fc8f207fd0d1c53da6fd2bb3c674c9e1a0c2d407",
  "delegate_signature": "200bd9114e5e932760e0f64dcdd74df79c9b7dbd98ed4f0f0ea4957ca0df00c7fab5cd8186c2434111a9dfb2c470b1428c1432483fcf687a672e27a4936916f277",
  "user_transaction_ids": []
}

get_info
{
  "blockchain_head_block_num": 7489,
  "blockchain_head_block_time": "20140615T153815",
  "blockchain_head_block_time_rel": "3 hours ago",
  "blockchain_confirmation_requirement": 278,
  "blockchain_average_delegate_participation": 42.863455589924875,
  "network_num_connections": 11,


looks like my delegate node is stuck on block 7489

>>> approve bitcoiners

Offline denkhaus

  • Newbie
  • *
  • Posts: 18
    • View Profile
yea my delegate is up for now! plz vote for me

Code: [Select]
wallet_set_delegate_trust_level denkhaus 10
as an cloud it pro i will keep my european node up, scalable and reliable!

btw: whoever wants to checkout bitshares in a docker container: take mine @
https://github.com/denkhaus/dockerfiles/tree/master/bitshares
« Last Edit: June 15, 2014, 06:00:45 pm by denkhaus »

Offline muse-umum

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
What's the output of command 'wallet_account_balance' in your clients ?

I have four accounts but get nothing by this command .

Code: [Select]
walletdelegate (unlocked) >>> wallet_account_balance
walletdelegate (unlocked) >>>

help info:

Quote
Usage:
wallet_account_balance [account_name]                                                                 Lists the total balances of all accounts sorted by account and asset
Lists the total balances of all accounts sorted by account and asset

Parameters:
  account_name (account_name, optional, defaults to "*"): the account to get a balance for, '*' or ''.  If '*' or '' then all accounts will be returned

Returns:
  map< account_name, map< asset_symbol, share_type> >

aliases: balance

So I guess the right output should be the balance of each account instead of nothing, right ?

Code: [Select]
walletdelegate (unlocked) >>> wallet_account_balance *
walletdelegate (unlocked) >>>

Code: [Select]
walletdelegate (unlocked) >>> wallet_account_balance heyd
heyd:
    0.000000 XTS
« Last Edit: June 15, 2014, 05:23:11 pm by heyD »

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
try command below and find out both clients are on the same chain

blockchain_get_block_by_number 7489




Your delegate has been voted back in along with some others.  I am all out of funds for voting.

Thanks. It looks like this delegate has more votes now, but still has not produced any blocks..


Code: [Select]
>>> blockchain_get_account_record bitcoiners
{
  "id": 299,
  "name": "bitcoiners",
  "public_data": null,
  "owner_key": "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk",
  "active_key_history": [[
      "20140613T030845",
      "XTS8eoFWByxKtGYzBrNF4diAhv1zjY7jGNTUv6PSqVGbQs8yi7nqk"
    ]
  ],
  "delegate_info": {
    "votes_for": 83109074296,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 63,

My desktop client and VPS server nodes are showing different block counts. Seems delegate node is falling behind.

delegate node
Code: [Select]
>>> get_info 
{
  "blockchain_head_block_num": 7489,
  "blockchain_head_block_time": "20140615T153815",
  "blockchain_head_block_time_rel": "53 minutes ago",
  "blockchain_confirmation_requirement": 278,
  "blockchain_average_delegate_participation": 56.362579895409645,
  "network_num_connections": 12,

desktop
Code: [Select]
get_info
{
  "blockchain_head_block_num": 7635,
  "blockchain_head_block_time": "20140615T163430",
  "blockchain_head_block_time_rel": "12 seconds ago",
  "blockchain_confirmation_requirement": 282,
  "blockchain_average_delegate_participation": 64.666666666666671,
  "network_num_connections": 8,
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Ha .. my first pull request to the bitshares_toolkit repo :-)
https://github.com/BitShares/bitshares_toolkit/pull/284

BTW: I am no coder :) took me like 20 minutes to figure this out :)

EDIT: you can now vote for my keyhotee-ID as delegate

Quote

wallet_set_delegate_trust_level xeroc 10

Thanks for voting me up .. now producing blocks ..

BTW:
Quote
--- there are now 25 active connections to the p2p network