Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Dry Run 14 - The Next Generation ($200 BitUSD bounty)  (Read 3015 times)

Offline bytemaster

Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« on: August 13, 2014, 09:28:04 PM »

CyberSpace, the final frontier
These are the voyages of the BitShares community
Its continuing mission to explore strange new blockchains
To seek out new DACs and new civilizations
To boldly go where no market has gone before.

https://www.youtube.com/watch?v=XsxgcLf0TSY

This update has seen many fixes to the market infrastructure.  We are are offering a $200 BitUSD bounty for bugs that result in changes to the market execution engine.

I would appreciate it if someone could help by providing build instructions for getting on the network.

Things to test... delegates: we are attempting to track down communications getting "Hung" so please try to maintain uptime.

Please Test all of these markets:
User Issued Assets / Trading
User Issued vs BitAssets
BitBTC vs BitUSD
BitUSD vs XTS
BitBTC vs XTS


Note:  use develop branch
« Last Edit: August 13, 2014, 09:47:27 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 bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
Re: Dry Run 14 - The Next Generation
« Reply #1 on: August 13, 2014, 09:35:11 PM »
Don't know if this qualifies but here is a bug:

10 assert_exception: Assert Exception


Code: [Select]
>>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0.4087 USD                                                      MARKET PRICE | 0.008695652174 USD                  113,149.50000 XTS              983.9086 USD
0.9999 USD                112.00000 XTS                   0.008928571429 USD*| 0.009000000000 USD                  100,000.00000 XTS              900.0000 USD
0.9999 USD                115.00000 XTS                   0.008695652174 USD*| 0.010000000000 USD                1,000,000.00000 XTS           10,000.0000 USD
0.9999 USD                115.00000 XTS                   0.008695652174 USD*| 0.100000000000 USD                1,000,000.00000 XTS          100,000.0000 USD
0.9999 USD                150.00000 XTS                   0.006666666667 USD*|
10.0000 USD               2,000.00000 XTS                 0.005000000000 USD*|
99.9999 USD               29,999.99999 XTS                0.003333333333 USD*|
100.0000 USD              40,000.00000 XTS                0.002500000000 USD*|
100.0000 USD              50,000.00000 XTS                0.002000000000 USD*|
49.9999 USD               75,000.00000 XTS                0.000666666667 USD*|
499.9999 USD              825,000.00000 XTS               0.000606060606 USD*|
400.0000 USD              1,000,000.00000 XTS             0.000400000000 USD*|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN                                 
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             | 0.008522727273 USD                      132.00000 XTS                0.9999 USD   176.00000 XTS
                                                                             | 0.006756756757 USD                      832.50000 XTS                4.9999 USD   1,110.00000 XTS
                                                                             | 0.006521739130 USD                    1,725.00000 XTS                9.9999 USD   2,300.00000 XTS

Median Feed Price: 0.00860397119999999 USD / XTS     Maximum Short Price: 0.01147196159999998 USD / XTS     Minimum Cover Price: 0.00573598079999999 USD / XTS
Bid Depth: 2,022,491.99999 XTS     Ask Depth: 2,216,735.50000 XTS     Min Depth: 2,000,000.00000 XTS
Last Error:  Assert Exception (10)
mtrx.ask_paid == xts_paid_by_short:


Details:
10 assert_exception: Assert Exception
mtrx.ask_paid == xts_paid_by_short:
    {"mtrx":{"bid_owner":"XTSCKEphFHw37zAfmoPD7fuya1QjrmQbknuM","ask_owner":"XTS8Gome3eZ3cVcgBvhPPW7xxdhbfbwYfWNo","bid_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"ask_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"bid_paid":{"amount":9999,"asset_id":22},"bid_received":{"amount":14998500,"asset_id":0},"ask_paid":{"amount":14998500,"asset_id":0},"ask_received":{"amount":9999,"asset_id":22},"bid_type":"short_order","ask_type":"cover_order","fees_collected":{"amount":0,"asset_id":0}},"xts_paid_by_short":{"amount":15000000,"asset_id":0}}
    th_a  market_engine.cpp:472 pay_current_short

    {"mtrx":{"bid_owner":"XTSCKEphFHw37zAfmoPD7fuya1QjrmQbknuM","ask_owner":"XTS8Gome3eZ3cVcgBvhPPW7xxdhbfbwYfWNo","bid_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"ask_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"bid_paid":{"amount":9999,"asset_id":22},"bid_received":{"amount":14998500,"asset_id":0},"ask_paid":{"amount":14998500,"asset_id":0},"ask_received":{"amount":9999,"asset_id":22},"bid_type":"short_order","ask_type":"cover_order","fees_collected":{"amount":0,"asset_id":0}}}
    th_a  market_engine.cpp:506 pay_current_short
>>> approve bitcoiners

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
Re: Dry Run 14 - The Next Generation
« Reply #2 on: August 13, 2014, 09:37:35 PM »
compiling
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline bytemaster

Re: Dry Run 14 - The Next Generation
« Reply #3 on: August 13, 2014, 09:37:51 PM »
Don't know if this qualifies but here is a bug:

10 assert_exception: Assert Exception


Code: [Select]
>>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0.4087 USD                                                      MARKET PRICE | 0.008695652174 USD                  113,149.50000 XTS              983.9086 USD
0.9999 USD                112.00000 XTS                   0.008928571429 USD*| 0.009000000000 USD                  100,000.00000 XTS              900.0000 USD
0.9999 USD                115.00000 XTS                   0.008695652174 USD*| 0.010000000000 USD                1,000,000.00000 XTS           10,000.0000 USD
0.9999 USD                115.00000 XTS                   0.008695652174 USD*| 0.100000000000 USD                1,000,000.00000 XTS          100,000.0000 USD
0.9999 USD                150.00000 XTS                   0.006666666667 USD*|
10.0000 USD               2,000.00000 XTS                 0.005000000000 USD*|
99.9999 USD               29,999.99999 XTS                0.003333333333 USD*|
100.0000 USD              40,000.00000 XTS                0.002500000000 USD*|
100.0000 USD              50,000.00000 XTS                0.002000000000 USD*|
49.9999 USD               75,000.00000 XTS                0.000666666667 USD*|
499.9999 USD              825,000.00000 XTS               0.000606060606 USD*|
400.0000 USD              1,000,000.00000 XTS             0.000400000000 USD*|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN                                 
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             | 0.008522727273 USD                      132.00000 XTS                0.9999 USD   176.00000 XTS
                                                                             | 0.006756756757 USD                      832.50000 XTS                4.9999 USD   1,110.00000 XTS
                                                                             | 0.006521739130 USD                    1,725.00000 XTS                9.9999 USD   2,300.00000 XTS

Median Feed Price: 0.00860397119999999 USD / XTS     Maximum Short Price: 0.01147196159999998 USD / XTS     Minimum Cover Price: 0.00573598079999999 USD / XTS
Bid Depth: 2,022,491.99999 XTS     Ask Depth: 2,216,735.50000 XTS     Min Depth: 2,000,000.00000 XTS
Last Error:  Assert Exception (10)
mtrx.ask_paid == xts_paid_by_short:


Details:
10 assert_exception: Assert Exception
mtrx.ask_paid == xts_paid_by_short:
    {"mtrx":{"bid_owner":"XTSCKEphFHw37zAfmoPD7fuya1QjrmQbknuM","ask_owner":"XTS8Gome3eZ3cVcgBvhPPW7xxdhbfbwYfWNo","bid_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"ask_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"bid_paid":{"amount":9999,"asset_id":22},"bid_received":{"amount":14998500,"asset_id":0},"ask_paid":{"amount":14998500,"asset_id":0},"ask_received":{"amount":9999,"asset_id":22},"bid_type":"short_order","ask_type":"cover_order","fees_collected":{"amount":0,"asset_id":0}},"xts_paid_by_short":{"amount":15000000,"asset_id":0}}
    th_a  market_engine.cpp:472 pay_current_short

    {"mtrx":{"bid_owner":"XTSCKEphFHw37zAfmoPD7fuya1QjrmQbknuM","ask_owner":"XTS8Gome3eZ3cVcgBvhPPW7xxdhbfbwYfWNo","bid_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"ask_price":{"ratio":"0.000666666666666666","quote_asset_id":22,"base_asset_id":0},"bid_paid":{"amount":9999,"asset_id":22},"bid_received":{"amount":14998500,"asset_id":0},"ask_paid":{"amount":14998500,"asset_id":0},"ask_received":{"amount":9999,"asset_id":22},"bid_type":"short_order","ask_type":"cover_order","fees_collected":{"amount":0,"asset_id":0}}}
    th_a  market_engine.cpp:506 pay_current_short

That looks like the prior test net (internal only).... cause I fixed that :) 

Code: [Select]
(wallet closed) >>> info
{
  "blockchain_head_block_num": 156,
  "blockchain_head_block_age": "6 seconds old",
  "blockchain_head_block_timestamp": "2014-08-13T21:37:20",
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 Riverhead

Re: Dry Run 14 - The Next Generation
« Reply #4 on: August 13, 2014, 09:42:22 PM »
Make sure you delete your ~/.BitsharesXTS (or your ~/.BitsharesXTS_Test15 if you jumped the gun like me  :o ).  That's my technique anyway, may be overkill for each Dry Run.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #5 on: August 13, 2014, 10:07:22 PM »
 :)
True, looks like I jumped the gun by an hour or two..

I am on the latest now.

Lets do some fancy trading!
>>> approve bitcoiners

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #6 on: August 13, 2014, 10:09:30 PM »

Should we try building GUI?
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #7 on: August 13, 2014, 10:10:55 PM »
I'm in vacation with limited PC access.
I've missed a lot.
Am I doing something wrong with this:
Code: [Select]
emski (unlocked) >>> wallet_asset_create
symbol: UNO
asset_name: UNObtainium
issuer_name: emski
10 assert_exception: Assert Exception
BTS_BLOCKCHAIN_MAX_SHARES / precision > max_share_supply:
    {}
    th_a  wallet.cpp:3515 create_asset

    {"symbol":"UNO","name":"UNObtainium","description":"","issuer_account":"emski"}
    th_a  wallet.cpp:3548 create_asset

    {}
    th_a  common_api_client.cpp:1235 wallet_asset_create

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

Offline toast

Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #8 on: August 13, 2014, 10:13:27 PM »
I'm in vacation with limited PC access.
I've missed a lot.
Am I doing something wrong with this:
Code: [Select]
emski (unlocked) >>> wallet_asset_create
symbol: UNO
asset_name: UNObtainium
issuer_name: emski
10 assert_exception: Assert Exception
BTS_BLOCKCHAIN_MAX_SHARES / precision > max_share_supply:
    {}
    th_a  wallet.cpp:3515 create_asset

    {"symbol":"UNO","name":"UNObtainium","description":"","issuer_account":"emski"}
    th_a  wallet.cpp:3548 create_asset

    {}
    th_a  common_api_client.cpp:1235 wallet_asset_create

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

LOL the default optional arguments are invalid.

try "help wallet_asset_create" for full usage
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 bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #9 on: August 13, 2014, 10:20:03 PM »

Should we try building GUI?

I am using market GUI!
>>> approve bitcoiners

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #10 on: August 13, 2014, 10:26:49 PM »

Should we try building GUI?

I am using market GUI!

Is it cool ? Is it Christmas?

Post a pic, please?

building....44%....
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline bytemaster

Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #11 on: August 13, 2014, 10:31:56 PM »
The GUI has many bugs still so GUI bugs do not count for bounty.    When in doubt use the console for an accurate representation of the market.
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 emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #12 on: August 13, 2014, 10:32:55 PM »
Shouldl I continue using TUI or I should do something else ?
Am I doing something wrong here ?
Code: [Select]
emski (unlocked) >>> wallet_market_submit_ask
from_account_name: emski
sell_quantity: 10
sell_quantity_symbol: UNOT
ask_price: 10000
ask_price_symbol: XTS
37001 invalid_market: invalid market

    {"quote_symbol":"XTS","quantity_symbol":"UNOT"}
    th_a  wallet.cpp:4130 submit_ask

    {"from_account_name":"emski","real_quantity":10,"quantity_symbol":"UNOT","quote_price":10000,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:4207 submit_ask

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    th_a  cli.cpp:471 execute_command
--- there are now 9 active connections to the p2p network
emski (unlocked) >>> help wallet_market_submit_ask
Usage:
wallet_market_submit_ask <from_account_name> <sell_quantity> <sell_quantity_symbol> <ask_price> <ask_price_symbol>   Used to place a request to sell a quantity of assets at a price specified in another asset
Used to place a request to sell a quantity of assets at a price specified in another asset

Parameters:
  from_account_name (account_name, required): the account that will provide funds for the ask
  sell_quantity (real_amount, required): the quantity of items you would like to sell
  sell_quantity_symbol (asset_symbol, required): the type of items you would like to sell
  ask_price (real_amount, required): the price per unit sold.
  ask_price_symbol (asset_symbol, required): the type of asset you would like to be paid

Returns:
  signed_transaction

aliases: ask
emski (unlocked) >>> wallet_market_submit_ask emski 10 UNOT 1000 XTS
37001 invalid_market: invalid market

    {"quote_symbol":"XTS","quantity_symbol":"UNOT"}
    th_a  wallet.cpp:4130 submit_ask

    {"from_account_name":"emski","real_quantity":10,"quantity_symbol":"UNOT","quote_price":1000,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:4207 submit_ask

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    th_a  cli.cpp:471 execute_command


Offline Riverhead

Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #13 on: August 13, 2014, 10:32:59 PM »
GUI dumped the core on me. Guess I'll stick to the CLI 8)

Offline bytemaster

Re: Dry Run 14 - The Next Generation ($200 BitUSD bounty)
« Reply #14 on: August 13, 2014, 10:34:34 PM »
Shouldl I continue using TUI or I should do something else ?
Am I doing something wrong here ?
Code: [Select]
emski (unlocked) >>> wallet_market_submit_ask
from_account_name: emski
sell_quantity: 10
sell_quantity_symbol: UNOT
ask_price: 10000
ask_price_symbol: XTS
37001 invalid_market: invalid market

    {"quote_symbol":"XTS","quantity_symbol":"UNOT"}
    th_a  wallet.cpp:4130 submit_ask

    {"from_account_name":"emski","real_quantity":10,"quantity_symbol":"UNOT","quote_price":10000,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:4207 submit_ask

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    th_a  cli.cpp:471 execute_command
--- there are now 9 active connections to the p2p network
emski (unlocked) >>> help wallet_market_submit_ask
Usage:
wallet_market_submit_ask <from_account_name> <sell_quantity> <sell_quantity_symbol> <ask_price> <ask_price_symbol>   Used to place a request to sell a quantity of assets at a price specified in another asset
Used to place a request to sell a quantity of assets at a price specified in another asset

Parameters:
  from_account_name (account_name, required): the account that will provide funds for the ask
  sell_quantity (real_amount, required): the quantity of items you would like to sell
  sell_quantity_symbol (asset_symbol, required): the type of items you would like to sell
  ask_price (real_amount, required): the price per unit sold.
  ask_price_symbol (asset_symbol, required): the type of asset you would like to be paid

Returns:
  signed_transaction

aliases: ask
emski (unlocked) >>> wallet_market_submit_ask emski 10 UNOT 1000 XTS
37001 invalid_market: invalid market

    {"quote_symbol":"XTS","quantity_symbol":"UNOT"}
    th_a  wallet.cpp:4130 submit_ask

    {"from_account_name":"emski","real_quantity":10,"quantity_symbol":"UNOT","quote_price":1000,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:4207 submit_ask

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    th_a  cli.cpp:471 execute_command


Your market is backward...   try putting a BID instead.
« Last Edit: August 13, 2014, 10:36:49 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.

 

Google+