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

0 Members and 1 Guest are viewing this topic.

Offline BTSdac

  • Hero Member
  • *****
  • Posts: 1219
    • View Profile
  • BitShares: K1
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 ,
« Last Edit: June 17, 2014, 04:13:11 am by BTSdac »
github.com :pureland
BTS2.0 API :ws://139.196.37.179:8091
BTS2.0 API 数据源ws://139.196.37.179:8091

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • 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

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

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
Do not produce any block for 12 min or I am on the forked chain

Code: [Select]
info
{
  "blockchain_head_block_num": 13112,
  "blockchain_head_block_time": "20140617T034415",
  "blockchain_head_block_time_rel": "12 minutes old",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 50.259067357512954,
  "network_num_connections": 7,
  "ntp_time": "20140617T035550.088785",
  "ntp_error_seconds": -0.010285000000000001,
  "wallet_unlocked_seconds_remaining": 9988922,
  "wallet_next_block_production_time": "20140617T040100",
  "wallet_seconds_until_next_block_production": 310,
  "wallet_local_time": "20140617T035550",
  "blockchain_random_seed": "7e1a30ee30277f7cd7c090f8487b584bf5624f52",
  "blockchain_shares": 10000458377029,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20141010T183752",
  "wallet_version": 100
}

Here is mine:
Code: [Select]
emski (unlocked) >>> get_info
{
  "blockchain_head_block_num": 13543,
  "blockchain_head_block_time": "20140617T035900",
  "blockchain_head_block_time_rel": "10 seconds old",
  "blockchain_confirmation_requirement": 7,
  "blockchain_average_delegate_participation": 73.262839879154072,
  "network_num_connections": 27,
  "ntp_time": "20140617T035910.362611",
  "ntp_error_seconds": 3.6413069999999998,
  "wallet_unlocked_seconds_remaining": 2891989745,
  "wallet_next_block_production_time": "20140617T040000",
  "wallet_seconds_until_next_block_production": 50,
  "wallet_local_time": "20140617T035910",
  "blockchain_random_seed": "b3dc1e136fdabc070a7d8a141b0c6b6202c70c86",
  "blockchain_shares": 10000487430311,
  "network_num_connections_max": 60,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "19691231T235959",
  "wallet_version": 100
}
--- there are now 27 active connections to the p2p network

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
Do not produce any block for 12 min or I am on the forked chain

Code: [Select]
info
{
  "blockchain_head_block_num": 13112,
  "blockchain_head_block_time": "20140617T034415",
  "blockchain_head_block_time_rel": "12 minutes old",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 50.259067357512954,
  "network_num_connections": 7,
  "ntp_time": "20140617T035550.088785",
  "ntp_error_seconds": -0.010285000000000001,
  "wallet_unlocked_seconds_remaining": 9988922,
  "wallet_next_block_production_time": "20140617T040100",
  "wallet_seconds_until_next_block_production": 310,
  "wallet_local_time": "20140617T035550",
  "blockchain_random_seed": "7e1a30ee30277f7cd7c090f8487b584bf5624f52",
  "blockchain_shares": 10000458377029,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20141010T183752",
  "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 networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
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 bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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": {}
        }
      ]
    }
  ]
]
>>> approve bitcoiners

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Second issue is known.

Regarding keyhotee, I just wouldn't worry about it - the whole thing is really screwy and we need to figure out what we're doing about that

What if my local account name is the same as Keyhotee id?
For example , I creat an account named 'networker' , and my Keyhotee id is 'networker' too.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
why some transactions from UNKNOWN?

Code: [Select]
delegate (unlocked) >>> wallet_account_transaction_history
.....
  13288.0    2014-06-17T02:27:30 UNKNOWN             UNKNOWN                                                        0.000000 XTS        0.000000 XTS        30ee8dad

delegate (unlocked) >>> blockchain_get_transaction 30ee8dad
{
  "trx": {
    "expiration": null,
    "delegate_id": null,
    "operations": [{
        "type": "withdraw_op_type",
        "data": {
          "balance_id": "XTSHswxSb1yoHgyoK3u7SqLUnHbkMRKBFgAk",
          "amount": 10000000,
          "claim_input_data": ""
        }
      },{
        "type": "withdraw_op_type",
        "data": {
          "balance_id": "XTS82KFS55P7RxQT2yGaHjhKNEqs9b8PuYSN",
          "amount": 495709,
          "claim_input_data": ""
        }
      },{
        "type": "create_asset_op_type",
        "data": {
          "symbol": "POW",
          "name": "power",
          "description": "Power Coin",
          "public_data": 100000000000,
          "issuer_account_id": 332,
          "maximum_share_supply": 1000000,
          "precision": 1000000
        }
      }
    ],
    "signatures": [
      "20c92066273109a6c3c2b424f97cabd0e771b9dbd39db0d356a8f8796d201fdf9f8fd25fc6e83517bb4d43e24d38c19cf6e59404cd49edf85893df743cfec69ca9",
      "1f2a2e085730d3cd6600b5cbd2a0e57816eed9a05e4903d7b1c7bade49c2d1e29bf1d9a11f2cc84cadc06360f7152446464ba0d09ae9c547295760ddbb0dc208e1",
      "1f4a276262d8a90bc3d90bd5f6561474a1f2091a2facb46af698005073826b998b15e5d499fc7bf5c363d6ebb9369ca6d111161454ee01e959bf0b7a44bab2563e"
    ]
  },
  "signed_keys": [
    "XTSKnJ3GsgVzcKnQUDUX3bZjFrR8cpz4Hgfp",
    "XTSC3Rrm5HHMmjJJpvXf5owhUvchPZduDXJ1",
    "XTSJ1uVkKwj6opxn1XpHtSH2Ku1B5gRRutbS",
    "XTSPAdo1Fx1JTuo438oKJxKbDdJXGjQMCQdJ",
    "XTSGfFUDNNT46A6v7uHU4nsrykAJpCtxo52M",
    "XTS4Akzyo6tNUbgdemtrpYaLwSxjqNctxRaM",
    "XTSCtGKAhg6pDbigyPf7EpapEkgBHXfeupDX",
    "XTSDJizuC5nqRDGYi5j2vChi9mYeaV8kxPhw",
    "XTSDbE5sTA2rGycqst17EXqUJ2nZswNnMY9M",
    "XTS2X2aCdRJX1HTGJ3JTZi7iJfm8fcaqhb17",
    "XTSzeBJTaQEDcx6NffvuYW39qyt6gG91Rwj",
    "XTSEGJzmcJsCmbKw4Goi8VBy5xK9HRtUvtd1",
    "XTS44N71Gpanrwm2ZAeBXJZ4S9p8nfYgzwAM",
    "XTSCjRYC1frZKt2edjheESDvrKsiLkMHTCH3",
    "XTS3mCdpG8RQ2uKRwAL36dfmE6UPynM4596f"
  ],
  "validation_error": null,
  "required_deposits": [],
  "provided_deposits": [],
  "deposits": [],
  "withdraws": [[
      0,{
        "amount": 10495709,
        "asset_id": 0
      }
    ]
  ],
  "balance": [[
      0,
      10495709
    ]
  ],
  "net_delegate_votes": [[
      304,{
        "votes_for": -10000000,
        "votes_against": 0
      }
    ],[
      314,{
        "votes_for": -495709,
        "votes_against": 0
      }
    ]
  ],
  "chain_location": {
    "block_num": 13288,
    "trx_num": 0
  }
}

Offline networker

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
networker (unlocked) >>> getinfo
{
  "blockchain_head_block_num": 11007,
  "blockchain_head_block_time": "20140616T124900",
  "blockchain_head_block_time_rel": "2 hours old",

How to resync to the network and recover from this unnormal status?

Yes, I think you are in a fork, this is my state:
Code: [Select]
{
  "blockchain_head_block_num": 11405,
  "blockchain_head_block_time": "20140616T151645",
  "blockchain_head_block_time_rel": "21 seconds old",

Stop the program, remove ~/.BitShares\ XTS/chain/ and restart

It's ok now.

networker (unlocked) >>> blockchain_get_account_record networker
{
  "id": 332,
  "name": "networker",
  "public_data": null,
  "owner_key": "XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m",
  "active_key_history": [[
      "20140616T124900",
      "XTS7ridJBN8aG7rGNqdtqwc8Twp8krpx9Qq4dqqRmh8gVnFHJEs5m"
    ]
  ],
  "delegate_info": null,
  "registration_date": "20140616T124900",
  "last_update": "20140616T124900",
  "meta_data": null
}

Can I become a real delegate for testing block produce?
« Last Edit: June 17, 2014, 02:49:26 am by networker »

Offline cgafeng

Good news, we appear to have solved the hang on block 173 issue (stack overflow due to default stack size chosen by boost::context being too small).   

Those of you who are lucky enough to experience this particular bug can checkout the latest (be sure to do submodule update) and you should be able to get past block 173.
Good job.
It work well now.
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Can I  buy you a drink?   8)

Code: [Select]
delegate (unlocked) >>> wallet_transfer 10000 DRINK delegate-alt 0dayzh "buy you a drink"                                                                             
10 assert_exception: Assert Exception
is_valid_account_name( account_name ):
    {}
    th_a  wallet.cpp:2594 is_valid_account

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"DRINK","from_account_name":"delegate-alt","to_account_name":"0dayzh","memo_message":"buy you a drink"}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:482 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:570 execute_command

names cannot start with numbers, those shouldn't even be in genesis block
I agree you.

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
run list_errors and got following error log,not sure if it is just a warning or an exception
Code: [Select]

list_errors
[[
    "20140617T001800.760239",{
      "code": 10,
      "name": "assert_exception",
      "message": "Assert Exception",
      "stack": [{
          "context": {
            "level": "error",
            "file": "wallet.cpp",
            "line": 1043,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T001800.747660"
          },
          "format": "key.valid(): ",
          "data": {}
        },{
          "context": {
            "level": "warn",
            "file": "wallet.cpp",
            "line": 1046,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T001800.759609"
          },
          "format": "",
          "data": {
            "addr": "XTSJBUPebvzdAsmhxvzvqRdwKtTKg7Y9bvX5"
          }
        },{
          "context": {
            "level": "warn",
            "file": "wallet.cpp",
            "line": 1148,
            "method": "",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "20140617T001800.760134"
          },
          "format": "",
          "data": {
            "header": {
              "previous": "51ff0d6880749851c4c1ba3eb9a64d5e7d4e11e4",
              "block_num": 12902,
              "fee_rate": 1000,
              "delegate_pay_rate": 90909,
              "timestamp": "20140617T001800",
              "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
              "next_secret_hash": "0000000000000000000000000000000000000000",
              "previous_secret": "0000000000000000000000000000000000000000",
              "delegate_signature": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
            }
          }
        }
      ]
    }
  ]
]
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Can I  buy you a drink?   8)

Code: [Select]
delegate (unlocked) >>> wallet_transfer 10000 DRINK delegate-alt 0dayzh "buy you a drink"                                                                             
10 assert_exception: Assert Exception
is_valid_account_name( account_name ):
    {}
    th_a  wallet.cpp:2594 is_valid_account

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"DRINK","from_account_name":"delegate-alt","to_account_name":"0dayzh","memo_message":"buy you a drink"}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:482 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:570 execute_command

names cannot start with numbers, those shouldn't even be in genesis block
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 alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Can I  buy you a drink?   8)

Code: [Select]
delegate (unlocked) >>> wallet_transfer 10000 DRINK delegate-alt 0dayzh "buy you a drink"                                                                             
10 assert_exception: Assert Exception
is_valid_account_name( account_name ):
    {}
    th_a  wallet.cpp:2594 is_valid_account

    {"real_amount_to_transfer":10000,"amount_to_transfer_symbol":"DRINK","from_account_name":"delegate-alt","to_account_name":"0dayzh","memo_message":"buy you a drink"}
    th_a  wallet.cpp:1599 transfer_asset

    {}
    th_a  common_api_client.cpp:482 wallet_transfer

    {"command":"wallet_transfer"}
    th_a  cli.cpp:570 execute_command

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I made a mistake when create my dream.
So I just lose my dreak  :P

Code: [Select]
default (unlocked) >>> wallet_asset_create  DREAM Dream alt "I have a dream" 100000000000 1000000

default (unlocked) >>> blockchain_list_registered_assets
    ID SYMBOL           NAME                        DESCRIPTION  CURRENT_SUPPLY      MAX_SUPPLY  FEES COLLECTED      REGISTERED
     8  APPLE          Dream                     I have a dream               0          0.0001               02014-06-17T00:24:45
     5  DREAM          Dream                     I have a dream               0               1               02014-06-17T00:20:30
     2   FREE        Freedom                                          100999999      1000000000               02014-06-16T08:32:00
     3    HAP      Happiness                                          100000000      1000000000               02014-06-16T08:35:15
     6  HELLO          Dream                     I have a dream               0               1               02014-06-17T00:23:00
     1   LOVE           LOVE                                             100000      1000000000               02014-06-13T08:12:15
     9    ORA          Dream                     I have a dream             999            1000               02014-06-17T00:26:15
     4    PPL    puppie_LOVE                   Right back at ya       170000000      1000000000               02014-06-16T19:03:00
     0    XTS  BitShares XTS  Stake in future BitShares X ch...  10000454.92553      1000000000      339.9027932014-06-01T00:00:00