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

0 Members and 1 Guest are viewing this topic.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
  To get a proper NTP sync delegates should install NTP and set it to track as closely as possible to minimize drift. 


I am running a VPS server on OpenVZ and manual time updates are not possible as this is a shared-kernel setup.
>>> approve bitcoiners

Offline bytemaster

Ok so I recently discovered that we failed to use the NTP time for the block generation loop, (only using it for validation).  This would cause any nodes that fall out of sync with NTP by more than 30 seconds to end up on a fork.  I have updated the code and it should hopefully resolve the remaining forks.

Just because we include NTP in our client does not mean we are using the most accurate form of NTP.  We merely query the server without factoring in network latency.  To get a proper NTP sync delegates should install NTP and set it to track as closely as possible to minimize drift. 

Recent error logged by one of the seed servers...
Code: [Select]
     "format": "block_data.timestamp <= (now + BTS_BLOCKCHAIN_BLOCK_INTERVAL_SEC*2): ${block_data.timestamp} < ${now}",
          "data": {
            "block_data.timestamp": "20140617T024645",
            "now": "20140617T024332"
          }
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 networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
You are right. Digital makes the problem.
Now:
networker (unlocked) >>>  wallet_asset_create POR Power networker "Power Coin" null 1000000000000000 1000000         
20011 insufficient_funds: insufficient funds

    {"required":"10.495701 XTS","available":"10.464290 XTS"}
    th_a  wallet.cpp:206 withdraw_to_transaction

Can someone send me more XTS for the test?

try a new name without digital

Can someone send me more XTS for the test?

1. you create power with max supply only 1, you should set it more
2. after create power, you need to issue your asset to yourself
Code: [Select]
delegate (unlocked) >>> wallet_asset_issue 0.1 POW networker "little power"

Have some happiness :D

Code: [Select]
11060.0    2014-06-16T13:08:30 betax               networker                                                100,000.000000 HAP        0.010000 XTS        532275d5
try creating your own assets

I created my own asset 'POWER'
,{
    "id": 11,
    "symbol": "POW",
    "name": "power",
    "description": "Power Coin",
    "public_data": 100000000000,
    "issuer_account_id": 332,
    "precision": 1000000,
    "current_share_supply": 0,
    "maximum_share_supply": 1000000,
    "collected_fees": 0,
    "registration_date": "20140617T022715"
  },{
How can I send some to you? I used
networker (unlocked) >>> wallet_transfer
amount_to_transfer: 10000
asset_symbol: POW
from_account_name: networker
to_account_name: betax
20011 insufficient_funds: insufficient funds

    {"required":"10,000.000000 POW","available":"0.000000 POW"}
    th_a  wallet.cpp:206 withdraw_to_transaction

    {"amount":10000000000,"asset_id":11,"from_account_address":"XTSzeBJTaQEDcx6NffvuYW39qyt6gG91Rwj","trx":{"expiration":null,"delegate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    th_a  wallet.cpp:207 withdraw_to_transaction

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"POW","from_account_name":"networker","to_account_name":"betax","memo_message":""}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:472 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:547 execute_command
What does this mean? Why the fund is insufficient?
What's the problem with following command?


networker (unlocked) >>>  wallet_asset_create POW2 power2 networker "Power Coin" null 1000000000000000 1000000
10 assert_exception: Assert Exception
my->_blockchain->is_valid_symbol_name( symbol ):
    {}
    th_a  wallet.cpp:1692 create_asset

    {"symbol":"POW2","name":"power2","description":"Power Coin","issuer_account":"networker"}
    th_a  wallet.cpp:1729 create_asset

    {}
    th_a  common_api_client.cpp:562 wallet_asset_create

    {"command":"wallet_asset_create"}
    th_a  cli.cpp:547 execute_command

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
try a new name without digital

1. you create power with max supply only 1, you should set it more
2. after create power, you need to issue your asset to yourself
Code: [Select]
delegate (unlocked) >>> wallet_asset_issue 0.1 POW networker "little power"

Have some happiness :D

Code: [Select]
11060.0    2014-06-16T13:08:30 betax               networker                                                100,000.000000 HAP        0.010000 XTS        532275d5
try creating your own assets

I created my own asset 'POWER'
,{
    "id": 11,
    "symbol": "POW",
    "name": "power",
    "description": "Power Coin",
    "public_data": 100000000000,
    "issuer_account_id": 332,
    "precision": 1000000,
    "current_share_supply": 0,
    "maximum_share_supply": 1000000,
    "collected_fees": 0,
    "registration_date": "20140617T022715"
  },{
How can I send some to you? I used
networker (unlocked) >>> wallet_transfer
amount_to_transfer: 10000
asset_symbol: POW
from_account_name: networker
to_account_name: betax
20011 insufficient_funds: insufficient funds

    {"required":"10,000.000000 POW","available":"0.000000 POW"}
    th_a  wallet.cpp:206 withdraw_to_transaction

    {"amount":10000000000,"asset_id":11,"from_account_address":"XTSzeBJTaQEDcx6NffvuYW39qyt6gG91Rwj","trx":{"expiration":null,"delegate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    th_a  wallet.cpp:207 withdraw_to_transaction

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"POW","from_account_name":"networker","to_account_name":"betax","memo_message":""}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:472 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:547 execute_command
What does this mean? Why the fund is insufficient?
What's the problem with following command?


networker (unlocked) >>>  wallet_asset_create POW2 power2 networker "Power Coin" null 1000000000000000 1000000
10 assert_exception: Assert Exception
my->_blockchain->is_valid_symbol_name( symbol ):
    {}
    th_a  wallet.cpp:1692 create_asset

    {"symbol":"POW2","name":"power2","description":"Power Coin","issuer_account":"networker"}
    th_a  wallet.cpp:1729 create_asset

    {}
    th_a  common_api_client.cpp:562 wallet_asset_create

    {"command":"wallet_asset_create"}
    th_a  cli.cpp:547 execute_command

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
After creating an asset you must issue it to yourself before you can transfer. 

wallet_asset_issue....
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 networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
1. you create power with max supply only 1, you should set it more
2. after create power, you need to issue your asset to yourself
Code: [Select]
delegate (unlocked) >>> wallet_asset_issue 0.1 POW networker "little power"

Have some happiness :D

Code: [Select]
11060.0    2014-06-16T13:08:30 betax               networker                                                100,000.000000 HAP        0.010000 XTS        532275d5
try creating your own assets

I created my own asset 'POWER'
,{
    "id": 11,
    "symbol": "POW",
    "name": "power",
    "description": "Power Coin",
    "public_data": 100000000000,
    "issuer_account_id": 332,
    "precision": 1000000,
    "current_share_supply": 0,
    "maximum_share_supply": 1000000,
    "collected_fees": 0,
    "registration_date": "20140617T022715"
  },{
How can I send some to you? I used
networker (unlocked) >>> wallet_transfer
amount_to_transfer: 10000
asset_symbol: POW
from_account_name: networker
to_account_name: betax
20011 insufficient_funds: insufficient funds

    {"required":"10,000.000000 POW","available":"0.000000 POW"}
    th_a  wallet.cpp:206 withdraw_to_transaction

    {"amount":10000000000,"asset_id":11,"from_account_address":"XTSzeBJTaQEDcx6NffvuYW39qyt6gG91Rwj","trx":{"expiration":null,"delegate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    th_a  wallet.cpp:207 withdraw_to_transaction

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"POW","from_account_name":"networker","to_account_name":"betax","memo_message":""}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:472 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:547 execute_command
What does this mean? Why the fund is insufficient?
What's the problem with following command?


networker (unlocked) >>>  wallet_asset_create POW2 power2 networker "Power Coin" null 1000000000000000 1000000
10 assert_exception: Assert Exception
my->_blockchain->is_valid_symbol_name( symbol ):
    {}
    th_a  wallet.cpp:1692 create_asset

    {"symbol":"POW2","name":"power2","description":"Power Coin","issuer_account":"networker"}
    th_a  wallet.cpp:1729 create_asset

    {}
    th_a  common_api_client.cpp:562 wallet_asset_create

    {"command":"wallet_asset_create"}
    th_a  cli.cpp:547 execute_command

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
seems your local time is wrong, you can't produc block if your tims is not correct.


Do you know how to correct it? Ubuntu 14.04 server.
install ntp, run it to sync with ntp server.
From what I know, latest bitshares_client have include a ntp client already.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
seems your local time is wrong, you can't produc block if your tims is not correct.


I am using a VPS server with OpenVZ, so can't set time manually.
« Last Edit: June 17, 2014, 04:57:31 am by bitcoinerS »
>>> approve bitcoiners

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Code: [Select]
(wallet closed) >>> wallet_open
wallet_name: roy
20005 no_such_wallet: wallet does not exist
No such wallet exists!
    {"name":"roy"}
    th_a  wallet.cpp:563 open

    {"wallet_name":"roy"}
    th_a  wallet.cpp:567 open

    {}
    th_a  common_api_client.cpp:252 wallet_open

    {"command":"wallet_open"}
    th_a  cli.cpp:570 execute_command
Code: [Select]
root@BTS002:~/.BitSharesXTS/wallets# dir
roy
I cannot open the wallet, after update code ,
config dir had change to .BitShares\ XTS
mv your wallet file from old dir to new dir.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
seems your local time is wrong, you can't produc block if your tims is not correct.

Still not producing any blocks.. after 7

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": 83109630849,
    "votes_against": 0,
    "blocks_produced": 7,
    "blocks_missed": 145,

Code: [Select]
>>> get_info
{
  "blockchain_head_block_num": 13427,
  "blockchain_head_block_time": "20140617T031615",
  "blockchain_head_block_time_rel": "in the future",
  "blockchain_confirmation_requirement": 8,
  "blockchain_average_delegate_participation": 73.652239939255878,
  "network_num_connections": 9,

>>> about
{
  "bitshares_toolkit_revision": "c345f294b5bdca77f1e6a45cc0b7ae86477e2e5b",
  "bitshares_toolkit_revision_age": "4 hours ago",
  "fc_revision": "6ef1c3e5d915cd655cf1f8727e35d52b64ee196a",
  "fc_revision_age": "4 hours ago",
  "compile_date": "compiled on Jun 17 2014 at 02:16:5

Code: [Select]
list_errors
..
 "level": "warn",
            "file": "chain_database.cpp",
            "line": 1069,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T024332.916702"
          },
          "format": "",
          "data": {
            "block_data": {
              "previous": "4ade36992ec3209214b0fc91eb67ca0677186748",
              "block_num": 13349,
              "fee_rate": 1000,
              "delegate_pay_rate": 91803,
              "timestamp": "20140617T024645",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "447c7dfd98fbd471a93113ef6ce23b63ea2172f9",
              "previous_secret": "31fee77caf17df77620ba7067cff2c652beb7b36",
              "delegate_signature": "1fb0a852e7e463c3bea50eb8fc4e07cc1ad325db031a10b16a24f278e1e32b9ea1ad945d7a5bc6b950b5722e158aa88b511487e89bd91549e8790b1da39f806ea3",
              "user_transactions": []
            }
          }
        },{
          "context": {
            "level": "warn",
            "file": "client.cpp",
            "line": 550,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T024332.916777"
          },
          "format": "Error pushing block ${block_number} - ${block_id}",
          "data": {
            "block_id": "73142597a754b26aac370ff1ebffa9ea98351592",
            "block_number": 13349,
            "block": {
              "previous": "4ade36992ec3209214b0fc91eb67ca0677186748",
              "block_num": 13349,
              "fee_rate": 1000,
              "delegate_pay_rate": 91803,
              "timestamp": "20140617T024645",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "447c7dfd98fbd471a93113ef6ce23b63ea2172f9",
              "previous_secret": "31fee77caf17df77620ba7067cff2c652beb7b36",
              "delegate_signature": "1fb0a852e7e463c3bea50eb8fc4e07cc1ad325db031a10b16a24f278e1e32b9ea1ad945d7a5bc6b950b5722e158aa88b511487e89bd91549e8790b1da39f806ea3",
              "user_transactions": []
            }
          }
        }
      ]
    }
  ],[
    "20140617T024332.917766",{
      "code": 0,
      "name": "exception",
      "message": "unspecified",
      "stack": [{
          "context": {
            "level": "error",
            "file": "client.cpp",
            "line": 848,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T024332.917764"
          },
          "format": "I am disconnecting peer 107.170.30.182:8764 for reason: You offered us a block that we reject as invalid",
          "data": {}
        }
      ]
    }
  ]
]

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
1. you create power with max supply only 1, you should set it more
2. after create power, you need to issue your asset to yourself
Code: [Select]
delegate (unlocked) >>> wallet_asset_issue 0.1 POW networker "little power"

Have some happiness :D

Code: [Select]
11060.0    2014-06-16T13:08:30 betax               networker                                                100,000.000000 HAP        0.010000 XTS        532275d5
try creating your own assets

I created my own asset 'POWER'
,{
    "id": 11,
    "symbol": "POW",
    "name": "power",
    "description": "Power Coin",
    "public_data": 100000000000,
    "issuer_account_id": 332,
    "precision": 1000000,
    "current_share_supply": 0,
    "maximum_share_supply": 1000000,
    "collected_fees": 0,
    "registration_date": "20140617T022715"
  },{
How can I send some to you? I used
networker (unlocked) >>> wallet_transfer
amount_to_transfer: 10000
asset_symbol: POW
from_account_name: networker
to_account_name: betax
20011 insufficient_funds: insufficient funds

    {"required":"10,000.000000 POW","available":"0.000000 POW"}
    th_a  wallet.cpp:206 withdraw_to_transaction

    {"amount":10000000000,"asset_id":11,"from_account_address":"XTSzeBJTaQEDcx6NffvuYW39qyt6gG91Rwj","trx":{"expiration":null,"delegate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    th_a  wallet.cpp:207 withdraw_to_transaction

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"POW","from_account_name":"networker","to_account_name":"betax","memo_message":""}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:472 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:547 execute_command
What does this mean? Why the fund is insufficient?

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
Great.  Something to take on in the am.


Sent from my iPhone using Tapatalk

let me know if you need any log
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
could you please do" blockchain_get_block_by_number 13112" and post the output below?
I am suspicious the network is forked into 2 chains.

following is mine output for 13112

Code: [Select]
blockchain_get_block_by_number 13112
{
  "previous": "4212da499f7bbaee08101232023946dfb397e2e6",
  "block_num": 13112,
  "fee_rate": 1000,
  "delegate_pay_rate": 91329,
  "timestamp": "20140617T034415",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "42a008716f3f720b535c5dd47581fd32be2daf89",
  "previous_secret": "104fc6c7297da0f15b6c97af5227562db8e7d0b2",
  "delegate_signature": "20e5d0dd14fad51dbf40549c5706d58cbb34f7df04e23ddd6005b1639d807e286bd4bc766fc7427ee434dbff871a34138027f1a50540da9476d91eb1c6c2d99b0d",
  "user_transaction_ids": []
}
pan2pa


Code: [Select]
>>> blockchain_get_block_by_number 13112
{
  "previous": "4a0892eefaa2a8be974478bd9d054e2959508ab6",
  "block_num": 13112,
  "fee_rate": 1000,
  "delegate_pay_rate": 91329,
  "timestamp": "20140617T012845",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a81c89804309b6f12f1ee332a1ca8efb180d2c37",
  "previous_secret": "b1a33103e50925046ccfdb1b0651d4529dbcce15",
  "delegate_signature": "203af87a488097790e643ea0ed8e5337d44a96e98bf40677b1f7bf4e27252e1d3f6e642df9c24f4a640820f0eb62c74bc987570417d443729ceaa031be283227ed",
  "user_transaction_ids": []
>>> approve bitcoiners

Offline bytemaster

Great.  Something to take on in the am.


Sent from my iPhone using Tapatalk
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 sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
Toast /BM , bad news , our network forked . following is info of  block 13112 form 2 clients

btw, i am on the latest code form github

Code: [Select]
blockchain_get_block_by_number 13112
{
  "previous": "4212da499f7bbaee08101232023946dfb397e2e6",
  "block_num": 13112,
  "fee_rate": 1000,
  "delegate_pay_rate": 91329,
  "timestamp": "20140617T034415",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "42a008716f3f720b535c5dd47581fd32be2daf89",
  "previous_secret": "104fc6c7297da0f15b6c97af5227562db8e7d0b2",
  "delegate_signature": "20e5d0dd14fad51dbf40549c5706d58cbb34f7df04e23ddd6005b1639d807e286bd4bc766fc7427ee434dbff871a34138027f1a50540da9476d91eb1c6c2d99b0d",
  "user_transaction_ids": []
}


Code: [Select]
blockchain_get_block_by_number 13112
{
  "previous": "4a0892eefaa2a8be974478bd9d054e2959508ab6",
  "block_num": 13112,
  "fee_rate": 1000,
  "delegate_pay_rate": 91329,
  "timestamp": "20140617T012845",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "a81c89804309b6f12f1ee332a1ca8efb180d2c37",
  "previous_secret": "b1a33103e50925046ccfdb1b0651d4529dbcce15",
  "delegate_signature": "203af87a488097790e643ea0ed8e5337d44a96e98bf40677b1f7bf4e27252e1d3f6e642df9c24f4a640820f0eb62c74bc987570417d443729ceaa031be283227ed",
  "user_transaction_ids": []
}
« Last Edit: June 17, 2014, 04:15:20 am by sfinder »
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students