Author Topic: [OVER] new testnet *WITH GUI! WOW!* inside  (Read 20048 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

FYI:

Code: [Select]
wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply]   Creates a new user issued asset
Creates a new user issued asset

Parameters:
  symbol (asset_symbol, required): the ticker symbol for the new asset
  asset_name (std::string, required): the name of the asset
  issuer_name (std::string, required): the name of the issuer of the asset
  description (std::string, optional, defaults to ""): a description of the asset
  data (json_variant, optional, defaults to null): arbitrary data attached to the asset
  maximum_share_supply (int64_t, optional, defaults to 1000000000000000): the maximum number of shares of the asset

Returns:
  signed_transaction

Code: [Select]
default (unlocked) >>> blockchain_list_registered_assets
[{
    "id": 1,
    "symbol": "LOVE",
    "name": "LOVE",
    "description": "Buy and Send some LOVE!",
    "public_data": null,
    "issuer_account_id": 359,
    "current_share_supply": 9000,
    "maximum_share_supply": 1000000000000000,
    "collected_fees": 0,
    "registration_date": "20140606T114130"
  },{

Issuing love to my self was successful. Issuing for an other user was not :-(
Code: [Select]
wallet_asset_issue 1000 LOVE alt  "Some Love for you!"
Afterwards:
Code: [Select]
44   2643.0    2014-06-06T11:43:00 voting              xeroc1              First Kiss!                        1,000 LOVE               0 XTS           N/A  5ec68072abae1a6a4d61e53b90aa9e8143424fee
 45   2644.2    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  835545b2be4567bb0284e7189015e5e816e8c50d
 46   2644.3    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  986873fc702bb450cd560aa76acab99d9a503bb4
 47   2644.0    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  06fc83c424ea153da67922c9a4c0026515f20fae
 48   2644.4    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  d6675ff9b0fdb025bad40a912cccd699c439e664
 49   2646.1    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  abd38a74bfd73dd07d57bf6b47e953869fcf9b75
 50   2646.0    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  223a25576a86d675511183f11e27782396ad025b
 51   2647.1    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  eabfb9d6de6073fa956cda6d9bc928ce2e08e953
 52   2647.0    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  05926f9a89a34b6ef3d99682058e12b4dc92f3e6

Also wallet_transfer seems to not work with that asset:
Code: [Select]
default (unlocked) >>> wallet_transfer 100000 LOV xeroc1 alt "Sent you some LOVE"
assert
asset_id == o.asset_id:
    {}
    th_a  asset.cpp:51 operator-=

    {"amount_to_transfer":100000,"amount_to_transfer_symbol":"LOV","from_account_name":"xeroc1","to_account_name":"alt","memo_message":"Sent you some LOVE"}
    th_a  wallet.cpp:1091 transfer

    {}
    th_a  common_api_client.cpp:332 wallet_transfer

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


I was able to create the FREEDOM asset and send you 1000. It seems it works.

 #    BLK.TRX  TIMESTAMP           FROM                TO                  MEMO                                   AMOUNT                 FEE          VOTE                                        ID
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
19   2704.0    2014-06-06T12:34:00 spartako-1          xeroc1              Some freedom                    1,000 FREEDOM          10,000 XTS           N/A  37c031f765c19126005231615094ba9d53cee379

I think those having trouble with sending assets are not using the latest revision.  The assert you quoted is clearly from a day old revision.   
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
FYI:

Code: [Select]
wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply]   Creates a new user issued asset
Creates a new user issued asset

Parameters:
  symbol (asset_symbol, required): the ticker symbol for the new asset
  asset_name (std::string, required): the name of the asset
  issuer_name (std::string, required): the name of the issuer of the asset
  description (std::string, optional, defaults to ""): a description of the asset
  data (json_variant, optional, defaults to null): arbitrary data attached to the asset
  maximum_share_supply (int64_t, optional, defaults to 1000000000000000): the maximum number of shares of the asset

Returns:
  signed_transaction

Code: [Select]
default (unlocked) >>> blockchain_list_registered_assets
[{
    "id": 1,
    "symbol": "LOVE",
    "name": "LOVE",
    "description": "Buy and Send some LOVE!",
    "public_data": null,
    "issuer_account_id": 359,
    "current_share_supply": 9000,
    "maximum_share_supply": 1000000000000000,
    "collected_fees": 0,
    "registration_date": "20140606T114130"
  },{

Issuing love to my self was successful. Issuing for an other user was not :-(
Code: [Select]
wallet_asset_issue 1000 LOVE alt  "Some Love for you!"
Afterwards:
Code: [Select]
44   2643.0    2014-06-06T11:43:00 voting              xeroc1              First Kiss!                        1,000 LOVE               0 XTS           N/A  5ec68072abae1a6a4d61e53b90aa9e8143424fee
 45   2644.2    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  835545b2be4567bb0284e7189015e5e816e8c50d
 46   2644.3    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  986873fc702bb450cd560aa76acab99d9a503bb4
 47   2644.0    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  06fc83c424ea153da67922c9a4c0026515f20fae
 48   2644.4    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  d6675ff9b0fdb025bad40a912cccd699c439e664
 49   2646.1    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  abd38a74bfd73dd07d57bf6b47e953869fcf9b75
 50   2646.0    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  223a25576a86d675511183f11e27782396ad025b
 51   2647.1    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  eabfb9d6de6073fa956cda6d9bc928ce2e08e953
 52   2647.0    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  05926f9a89a34b6ef3d99682058e12b4dc92f3e6

Also wallet_transfer seems to not work with that asset:
Code: [Select]
default (unlocked) >>> wallet_transfer 100000 LOV xeroc1 alt "Sent you some LOVE"
assert
asset_id == o.asset_id:
    {}
    th_a  asset.cpp:51 operator-=

    {"amount_to_transfer":100000,"amount_to_transfer_symbol":"LOV","from_account_name":"xeroc1","to_account_name":"alt","memo_message":"Sent you some LOVE"}
    th_a  wallet.cpp:1091 transfer

    {}
    th_a  common_api_client.cpp:332 wallet_transfer

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


I was able to create the FREEDOM asset and send you 1000. It seems it works.

 #    BLK.TRX  TIMESTAMP           FROM                TO                  MEMO                                   AMOUNT                 FEE          VOTE                                        ID
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
19   2704.0    2014-06-06T12:34:00 spartako-1          xeroc1              Some freedom                    1,000 FREEDOM          10,000 XTS           N/A  37c031f765c19126005231615094ba9d53cee379

wallet_account_set_approval spartako

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12920
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
FYI:

Code: [Select]
wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply]   Creates a new user issued asset
Creates a new user issued asset

Parameters:
  symbol (asset_symbol, required): the ticker symbol for the new asset
  asset_name (std::string, required): the name of the asset
  issuer_name (std::string, required): the name of the issuer of the asset
  description (std::string, optional, defaults to ""): a description of the asset
  data (json_variant, optional, defaults to null): arbitrary data attached to the asset
  maximum_share_supply (int64_t, optional, defaults to 1000000000000000): the maximum number of shares of the asset

Returns:
  signed_transaction

Code: [Select]
default (unlocked) >>> blockchain_list_registered_assets
[{
    "id": 1,
    "symbol": "LOVE",
    "name": "LOVE",
    "description": "Buy and Send some LOVE!",
    "public_data": null,
    "issuer_account_id": 359,
    "current_share_supply": 9000,
    "maximum_share_supply": 1000000000000000,
    "collected_fees": 0,
    "registration_date": "20140606T114130"
  },{

Issuing love to my self was successful. Issuing for an other user was not :-(
Code: [Select]
wallet_asset_issue 1000 LOVE alt  "Some Love for you!"
Afterwards:
Code: [Select]
44   2643.0    2014-06-06T11:43:00 voting              xeroc1              First Kiss!                        1,000 LOVE               0 XTS           N/A  5ec68072abae1a6a4d61e53b90aa9e8143424fee
 45   2644.2    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  835545b2be4567bb0284e7189015e5e816e8c50d
 46   2644.3    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  986873fc702bb450cd560aa76acab99d9a503bb4
 47   2644.0    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  06fc83c424ea153da67922c9a4c0026515f20fae
 48   2644.4    2014-06-06T11:45:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  d6675ff9b0fdb025bad40a912cccd699c439e664
 49   2646.1    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  abd38a74bfd73dd07d57bf6b47e953869fcf9b75
 50   2646.0    2014-06-06T11:46:00 unknown             unknown                                                     0 XTS               0 XTS           N/A  223a25576a86d675511183f11e27782396ad025b
 51   2647.1    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  eabfb9d6de6073fa956cda6d9bc928ce2e08e953
 52   2647.0    2014-06-06T11:46:30 unknown             unknown                                                     0 XTS               0 XTS           N/A  05926f9a89a34b6ef3d99682058e12b4dc92f3e6

Also wallet_transfer seems to not work with that asset:
Code: [Select]
default (unlocked) >>> wallet_transfer 100000 LOV xeroc1 alt "Sent you some LOVE"
assert
asset_id == o.asset_id:
    {}
    th_a  asset.cpp:51 operator-=

    {"amount_to_transfer":100000,"amount_to_transfer_symbol":"LOV","from_account_name":"xeroc1","to_account_name":"alt","memo_message":"Sent you some LOVE"}
    th_a  wallet.cpp:1091 transfer

    {}
    th_a  common_api_client.cpp:332 wallet_transfer

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

« Last Edit: June 06, 2014, 12:17:07 pm by xeroc »

Offline sudo

  • Hero Member
  • *****
  • Posts: 2255
    • View Profile
  • BitShares: ags
Code: [Select]
------------ error --------------
assert
total_votes == total.amount:
    {"total_votes":79999999999976,"total_shares":{"amount":479999999999856,"asset_id":0}}

i meet this before

delete all the files
git compile  again  the error disappeared

You're sure you deleted the data-dir? If so, are you manually specifying the genesis block or something?
That looks like what happens when you sync from scratch with the wrong blockchain

yes  i delete all the files
virtualbox have some snapshot  i roll back to the  original

Offline coolspeed

  • Hero Member
  • *****
  • Posts: 536
    • View Profile
    • My Blog
I have created two account: alt and dorian
 transfer  100000000 xts from alt to dorian, I do this with web wallet.
but I saw 3 transactions broadcast:
Code: [Select]
11   1804.0    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     84,615,882 XTS          10,000 XTS           N/A  6cd994c8a6def325c5556391ae70af5f26e631f9
 12   1804.3    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     99,980,000 XTS          10,000 XTS           N/A  fa6dbcb7ae823a81208626d09ad303546d00b5f3
 13   1804.2    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                    100,000,000 XTS          10,000 XTS           N/A  bfcd9077226718e8c1a45fa949f1210b43dbe7fa

This is part of the security system called multi-part transactions... instead of combining your inputs (leaking info about your identity), it created 3 transactions.    I will have to look closer to see why the numbers don't add up to 100000000 like they are supposed to.

Is it TITAN or what was once named "coin never join"?
Please vote for  delegate.coolspeed    dac.coolspeed
BTS account: coolspeed
Sina Weibo:@coolspeed

Offline coolspeed

  • Hero Member
  • *****
  • Posts: 536
    • View Profile
    • My Blog
coolspeed,

it is possible to control the client with json-rpc only without the command line interface.  In fact, this is how the web_wallet is doing it.

Thx for your response.
Please vote for  delegate.coolspeed    dac.coolspeed
BTS account: coolspeed
Sina Weibo:@coolspeed

Offline laow

  • Full Member
  • ***
  • Posts: 155
    • View Profile
I also have the similar bug. delete the data-dir, run the client with "--server", then the client will crash.

Code: [Select]
Initializing genesis state
------------ error --------------
assert
total_votes == total.amount:
    {"total_votes":79999999999976,"total_shares":{"amount":159999999999952,"asset_id":0}}
    th_a  chain_database.cpp:1573 sanity_check

    {}
    th_a  chain_database.cpp:1580 sanity_check

    {}
    th_a  chain_database.cpp:1334 initialize_genesis

    {"data_dir":"/root/.BitSharesXTS/chain"}
    th_a  chain_database.cpp:810 open

    {"data_dir":"/root/.BitSharesXTS","genesis_dat":"/root/bitshares_toolkit/programs/client/genesis.json"}
    th_a  client.cpp:324 open

BTS acount: laow

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Code: [Select]
------------ error --------------
assert
total_votes == total.amount:
    {"total_votes":79999999999976,"total_shares":{"amount":479999999999856,"asset_id":0}}

i meet this before

delete all the files
git compile  again  the error disappeared

You're sure you deleted the data-dir? If so, are you manually specifying the genesis block or something?
That looks like what happens when you sync from scratch with the wrong blockchain
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 sudo

  • Hero Member
  • *****
  • Posts: 2255
    • View Profile
  • BitShares: ags
Code: [Select]
------------ error --------------
assert
total_votes == total.amount:
    {"total_votes":79999999999976,"total_shares":{"amount":479999999999856,"asset_id":0}}

i meet this before

delete all the files
git compile  again  the error disappeared

Offline amencon

  • Sr. Member
  • ****
  • Posts: 227
    • View Profile
The first error is because there is no wallet named "default" - the default is no wallets exist.
Not sure about the second error... maybe it doesn't make a wallet dir until you create at least one wallet? In that case the error should say something different, I'll check it out
Hmm good point, that does make sense, thanks.

Now that everything was wiped and I started over I'm getting errors at initializing genesis state:

Quote
./bitshares_client --server
================================================================
=                                                              =
=             Welcome to BitShares XTS                         =
=                                                              =
=  This software is in alpha testing and is not suitable for   =
=  real monetary transactions or trading.  Use at your own     =
=  risk.                                                       =
=                                                              =
=  Type 'help' for usage information.                          =
================================================================
Logging to file "/root/.BitSharesXTS/default.log"
Logging RPC to file "/root/.BitSharesXTS/rpc.log"
Loading config "/root/.BitSharesXTS/config.json"
{
  "rpc": {
    "rpc_user": "a",
    "rpc_password": "a",
    "rpc_endpoint": "127.0.0.1:0",
    "httpd_endpoint": "127.0.0.1:0",
    "htdocs": "/root/web_wallet/generated"
  },
  "default_peers": [
    "107.170.30.182:8764"
  ],
  "ignore_console": false
}
Loading blockchain from "/root/.BitSharesXTS/chain"
Using genesis block from file "/root/bitshares_toolkit/programs/client/genesis.json"
Initializing genesis state
------------ error --------------
assert
total_votes == total.amount:
    {"total_votes":79999999999976,"total_shares":{"amount":479999999999856,"asset_id":0}}
    th_a  chain_database.cpp:1619 sanity_check

    {}
    th_a  chain_database.cpp:1626 sanity_check

    {}
    th_a  chain_database.cpp:1380 initialize_genesis

    {"data_dir":"/root/.BitSharesXTS/chain"}
    th_a  chain_database.cpp:811 open

    {"data_dir":"/root/.BitSharesXTS","genesis_dat":"/root/bitshares_toolkit/programs/client/genesis.json"}
    th_a  client.cpp:324 open
root@BitSharesVM:~/bitshares_toolkit/programs/client#

Looks like more open file errors.  I also tried power cycling the VM but got the same errors once logged back in.  I'll keep trying stuff, thanks.
« Last Edit: June 06, 2014, 01:31:57 am by amencon »

Offline bytemaster

I have created two account: alt and dorian
 transfer  100000000 xts from alt to dorian, I do this with web wallet.
but I saw 3 transactions broadcast:
Code: [Select]
11   1804.0    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     84,615,882 XTS          10,000 XTS           N/A  6cd994c8a6def325c5556391ae70af5f26e631f9
 12   1804.3    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     99,980,000 XTS          10,000 XTS           N/A  fa6dbcb7ae823a81208626d09ad303546d00b5f3
 13   1804.2    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                    100,000,000 XTS          10,000 XTS           N/A  bfcd9077226718e8c1a45fa949f1210b43dbe7fa

This is part of the security system called multi-part transactions... instead of combining your inputs (leaking info about your identity), it created 3 transactions.    I will have to look closer to see why the numbers don't add up to 100000000 like they are supposed to.
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 alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I have created two account: alt and dorian
 transfer  100000000 xts from alt to dorian, I do this with web wallet.
but I saw 3 transactions broadcast:
Code: [Select]
11   1804.0    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     84,615,882 XTS          10,000 XTS           N/A  6cd994c8a6def325c5556391ae70af5f26e631f9
 12   1804.3    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                     99,980,000 XTS          10,000 XTS           N/A  fa6dbcb7ae823a81208626d09ad303546d00b5f3
 13   1804.2    2014-06-05T23:58:00 alt                 dorian              aaaa aa ff                    100,000,000 XTS          10,000 XTS           N/A  bfcd9077226718e8c1a45fa949f1210b43dbe7fa

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I think it is good to open a bug in github and cross-post it here so that people scanning this thread know what has been caught and can help debug.  Not everyone is on github.

This is a good bug to track down.

OK, reported as https://github.com/BitShares/bitshares_toolkit/issues/208

we fixed it before you were able to file it  :P
+5% +5% +5%

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
The first error is because there is no wallet named "default" - the default is no wallets exist.
Not sure about the second error... maybe it doesn't make a wallet dir until you create at least one wallet? In that case the error should say something different, I'll check it out
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 amencon

  • Sr. Member
  • ****
  • Posts: 227
    • View Profile
Sorry if I just missed it here or on GitHub, but is there instructions somewhere on how to fully uninstall the bitshares_toolkit and start over?

I tried blowing out the bitshares_toolkit and /root/.BitSharesXTS directories and then reinstalling to start over but now I'm getting wallet command errors.

I guess the good news is that I do seem to be connected now and I can resync the blockchain and getinfo just fine however wallet commands either tell me that a file is open or doesn't exist.

file open:
Quote
wallet_open default
assert
fc::exists( wallet_filename ):
    {}
    th_a  wallet.cpp:492 open_file
Unable to open wallet /root/.BitSharesXTS/wallets/default
    {"filename":"/root/.BitSharesXTS/wallets/default"}
    th_a  wallet.cpp:501 open_file

    {"wallet_name":"default"}
    th_a  wallet.cpp:486 open

    {}
    th_a  common_api_client.cpp:172 wallet_open

    {"command":"wallet_open"}
    th_a  cli.cpp:592 execute_command

directory/file not found:
Quote
wallet_list
std
what: boost::filesystem::directory_iterator::construct: No such file or directory: "/root/.BitSharesXTS/wallets" -
    {"what":"boost::filesystem::directory_iterator::construct: No such file or directory: \"/root/.BitSharesXTS/wallets\""}
    th_a  common_api_client.cpp:302 wallet_list

    {"command":"wallet_list"}
    th_a  cli.cpp:592 execute_command

Now that I've broken it, I think I can get it running easily if I can start over from scratch.

Thanks.

Edit: Still interested in this, however I just decided to re-image this VPS in the meantime since there wasn't much else on it
« Last Edit: June 05, 2014, 11:18:55 pm by amencon »