Author Topic: !!! Stupid Questions Thread !!!  (Read 253248 times)

0 Members and 1 Guest are viewing this topic.

zerosum

  • Guest
Continuation on the prvious post....

It seem they (bter.com) also do not know what the client actually do (how it selects where/what key to, to send the funds to).
Let's start with something easier then -Which of the 4 keys listed below is actually receiving the transfer?

Code: [Select]
>> blockchain_get_transaction c854f6568de5786ea291baceb8ce6a2368ccd70d

{
  "trx": {
    "expiration": "20141017T070034",
    "delegate_slate_id": null,
    "operations": [{
        "type": "withdraw_op_type",
        "data": {
          "balance_id": "BTSXA5eyQwJUPd4AmaudVx6u8aUpfKXk5VdYa",
          "amount": 1625728000,
          "claim_input_data": ""
        }
      },{
        "type": "deposit_op_type",
        "data": {
          "amount": 1625678000,
          "condition": {
            "asset_id": 0,
            "delegate_slate_id": 0,
            "type": "withdraw_signature_type",
            "data": {
              "owner": "BTSX3RF97vighDgFR7RGEoS8rpLYtJCE5xRm5",
              "memo": {
                "one_time_key": "BTSX8ak3SJFQdt7BgHpS3AawzhZe3mREqUHnPPwEYyJh6bLRSPVzhS",
                "encrypted_memo_data": "e27f4f323d76452fbfc76bb57356174af0098787d6fb97901365aaa0ce53737f3a421b0f4bd823b8b3ecc17975f8467bc4891f2f5fe3ebc9cb531ab84ea38a62"
              }
            }
          }
        }
      }
    ],
    "signatures": [
      "1fccdfb8055003b68136f7c051ccba34df4a1b62b1f914053623c8e79e5954b98acb2194c585c51be348b2d298734f4a5ded1b68be9478e1df35fd579832eda91a"
    ]
  },
  "signed_keys": [],
  "validation_error": null,
  "required_deposits": [],
  "provided_deposits": [[
      "BTSX9RptBKVDGHkZEn49TeDKS9ENBAQRaNoDT",{
        "amount": 1625678000,
        "asset_id": 0
      }
    ]
  ],
  "deposits": [[
      0,{
        "amount": 1625678000,
        "asset_id": 0
      }
    ]
  ],
  "withdraws": [[
      0,{
        "amount": 1625728000,
        "asset_id": 0
      }
    ]
  ],
  "yield": [],
  "deltas": [[
      0,{
        "amount": -1625728000,
        "asset_id": 0
      }
    ],[
      1,{
        "amount": 1625678000,
        "asset_id": 0
      }
    ]
  ],
  "required_fees": {
    "amount": 0,
    "asset_id": 0
  },
  "alt_fees_paid": {
    "amount": 0,
    "asset_id": 0
  },
  "balance": [[
      0,
      50000
    ]
  ],
  "net_delegate_votes": [],
  "chain_location": {
    "block_num": 764180,
    "trx_num": 0
  }
}

zerosum

  • Guest
The problem started like this:

BTER is again experiencing problems with BTSX products...

After failing repeatedly my BTSX and bitUSD withdrawals claiming my account is
not registered, I finally decide to use my public key. Now it says
-'Waiting for balance...' for 20 min already.
That is an issue we cannot help with .. because we just don't know what bter is
doing when you add a public key to that field .. which btw you are not supposed
to do as stated in RED letters next to the field!

Now the transfer is finalized supposedly... But I did not get the funds it seams. I found the transactions and tried
Code: [Select]
wallet_rescan_blockchain
wallet_recover_transaction <transaction_id_prefix> [recipient_account]   
and wallet_regenerate_keys <account_name> <max_key_number> 
Neither producing results.

The questions are:
Code: [Select]
blockchain_get_transaction <transaction_id>Provides several ids, neither one of them is the one I gave bter to transfer the funds to.
1. Is this how it is supposed to be?  How I check if they did send the funds to me and not somebody else?
2. I f not which of those has to be the one I (or whoever received the funds) is the id of the party receiving the funds. It has:

1.
Code: [Select]
"type": "withdraw_op_type",
        "data": {
          "balance_id": "BTSXA5eyQwJUPd4AmaudVx6u8aUpfKXk5VdYa",
2. 2 here:
Code: [Select]
["type": "deposit_op_type",
        "data": {
          "amount": 1625678000,
          "condition": {
            "asset_id": 0,
            "delegate_slate_id": 0,
            "type": "withdraw_signature_type",
            "data": {
              "owner": "BTSX3RF97vighDgFR7RGEoS8rpLYtJCE5xRm5",
              "memo": {
                "one_time_key": "BTSX8ak3SJFQdt7BgHpS3AawzhZe3mREqUHnPPwEYyJh6bLRSPVzhS",
3.
Code: [Select]
"provided_deposits": [[
      "BTSX9RptBKVDGHkZEn49TeDKS9ENBAQRaNoDT",{

The withdrawal btw should have gone to :
BTSX5e9S3uTdhLsKg7JwPFp79p4VscPAyrPHb4oUzy6kW9FzcirpEf

if this helps...

Due to the security and privacy features in BTSX (called TITAN) .. the
address/key you see in the transaction is linked to your (supposedly) account
name in a way that prohibits linking to your account if you are not holding the
private key. It' basically "stealth addresses" in bitcoin. Read more about this
in the wiki.bitshares.org

From where I stand, there is no way to say, if this transaction should end up
on your account or in someone elses account. However vikram (a core developer)
just recently added a new feature to the wallet that can tell you for sure if
the transaction went to your account or not .. but it's not released yet
(actually he pushed the code yesterday :) )

https://github.com/BitShares/bitshares_toolkit/issues/832#event-176959796

I'd recommend you contact BTER support and ask them what they did when you use
a pubkey instead of an account name

thanks...
and btw there are no red letters next to the box. Now, it simply says "Must be registered account on the blockchain or unregistered account KEY. "
« Last Edit: October 17, 2014, 04:56:16 pm by zerosum »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
The problem started like this:

BTER is again experiencing problems with BTSX products...

After failing repeatedly my BTSX and bitUSD withdrawals claiming my account is
not registered, I finally decide to use my public key. Now it says
-'Waiting for balance...' for 20 min already.
That is an issue we cannot help with .. because we just don't know what bter is
doing when you add a public key to that field .. which btw you are not supposed
to do as stated in RED letters next to the field!

Now the transfer is finalized supposedly... But I did not get the funds it seams. I found the transactions and tried
Code: [Select]
wallet_rescan_blockchain
wallet_recover_transaction <transaction_id_prefix> [recipient_account]   
and wallet_regenerate_keys <account_name> <max_key_number> 
Neither producing results.

The questions are:
Code: [Select]
blockchain_get_transaction <transaction_id>Provides several ids, neither one of them is the one I gave bter to transfer the funds to.
1. Is this how it is supposed to be?  How I check if they did send the funds to me and not somebody else?
2. I f not which of those has to be the one I (or whoever received the funds) is the id of the party receiving the funds. It has:

1.
Code: [Select]
"type": "withdraw_op_type",
        "data": {
          "balance_id": "BTSXA5eyQwJUPd4AmaudVx6u8aUpfKXk5VdYa",
2. 2 here:
Code: [Select]
["type": "deposit_op_type",
        "data": {
          "amount": 1625678000,
          "condition": {
            "asset_id": 0,
            "delegate_slate_id": 0,
            "type": "withdraw_signature_type",
            "data": {
              "owner": "BTSX3RF97vighDgFR7RGEoS8rpLYtJCE5xRm5",
              "memo": {
                "one_time_key": "BTSX8ak3SJFQdt7BgHpS3AawzhZe3mREqUHnPPwEYyJh6bLRSPVzhS",
3.
Code: [Select]
"provided_deposits": [[
      "BTSX9RptBKVDGHkZEn49TeDKS9ENBAQRaNoDT",{

The withdrawal btw should have gone to :
BTSX5e9S3uTdhLsKg7JwPFp79p4VscPAyrPHb4oUzy6kW9FzcirpEf

if this helps...

Due to the security and privacy features in BTSX (called TITAN) .. the
address/key you see in the transaction is linked to your (supposedly) account
name in a way that prohibits linking to your account if you are not holding the
private key. It' basically "stealth addresses" in bitcoin. Read more about this
in the wiki.bitshares.org

From where I stand, there is no way to say, if this transaction should end up
on your account or in someone elses account. However vikram (a core developer)
just recently added a new feature to the wallet that can tell you for sure if
the transaction went to your account or not .. but it's not released yet
(actually he pushed the code yesterday :) )

https://github.com/BitShares/bitshares_toolkit/issues/832#event-176959796

I'd recommend you contact BTER support and ask them what they did when you use
a pubkey instead of an account name

Offline uray

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • cryptoport
i am almost give up on btsx

first time i got my btsx was on ver 0.3.x, then i keep following the update, on each version i back up my wallet to .json
after long time i dont touch btsx, i start to download latest version ( 0.4.20 ) , then just overwrite it to my old btsx wallet
blockchain is synced, but when i logged there are no account, then i do wallet_backup_restore , but wallet complained that the wallet name already exists, then i do wallet_open , my account is open i can see my transaction history, but still no account, i can''t go to market because wallet say i need to create account

is there a simple way, that i can just keep my private key, and import the key to any client i want ? its just to complicated, and it seems the wallet is never finish
1) Close the client
2) On windows .. in the directory "%APPDATA%\BitShares X" there is a folder called "wallets" .. rename it to walletsBackup or something similar and
3) start the client again
4) import from backup (main menu)!

i am on osx, do you know where the path is ?

nevermind, i got it
btsx delegate : wallet_approve_delegate delegate.cryptoport
btsx seednode : network_add_node "54.254.168.208:443"

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
~/Library/Application Support/BitShares X/

Offline uray

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • cryptoport
i am almost give up on btsx

first time i got my btsx was on ver 0.3.x, then i keep following the update, on each version i back up my wallet to .json
after long time i dont touch btsx, i start to download latest version ( 0.4.20 ) , then just overwrite it to my old btsx wallet
blockchain is synced, but when i logged there are no account, then i do wallet_backup_restore , but wallet complained that the wallet name already exists, then i do wallet_open , my account is open i can see my transaction history, but still no account, i can''t go to market because wallet say i need to create account

is there a simple way, that i can just keep my private key, and import the key to any client i want ? its just to complicated, and it seems the wallet is never finish
1) Close the client
2) On windows .. in the directory "%APPDATA%\BitShares X" there is a folder called "wallets" .. rename it to walletsBackup or something similar and
3) start the client again
4) import from backup (main menu)!

i am on osx, do you know where the path is ?
btsx delegate : wallet_approve_delegate delegate.cryptoport
btsx seednode : network_add_node "54.254.168.208:443"

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
i am almost give up on btsx

first time i got my btsx was on ver 0.3.x, then i keep following the update, on each version i back up my wallet to .json
after long time i dont touch btsx, i start to download latest version ( 0.4.20 ) , then just overwrite it to my old btsx wallet
blockchain is synced, but when i logged there are no account, then i do wallet_backup_restore , but wallet complained that the wallet name already exists, then i do wallet_open , my account is open i can see my transaction history, but still no account, i can''t go to market because wallet say i need to create account

is there a simple way, that i can just keep my private key, and import the key to any client i want ? its just to complicated, and it seems the wallet is never finish
1) Close the client
2) On windows .. in the directory "%APPDATA%\BitShares X" there is a folder called "wallets" .. rename it to walletsBackup or something similar and
3) start the client again
4) import from backup (main menu)!

Offline uray

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • cryptoport
i am almost give up on btsx

first time i got my btsx was on ver 0.3.x, then i keep following the update, on each version i back up my wallet to .json
after long time i dont touch btsx, i start to download latest version ( 0.4.20 ) , then just overwrite it to my old btsx wallet
blockchain is synced, but when i logged there are no account, then i do wallet_backup_restore , but wallet complained that the wallet name already exists, then i do wallet_open , my account is open i can see my transaction history, but still no account, i can''t go to market because wallet say i need to create account

is there a simple way, that i can just keep my private key, and import the key to any client i want ? its just to complicated, and it seems the wallet is never finish
btsx delegate : wallet_approve_delegate delegate.cryptoport
btsx seednode : network_add_node "54.254.168.208:443"

zerosum

  • Guest
The problem started like this:

BTER is again experiencing problems with BTSX products...

After failing repeatedly my BTSX and bitUSD withdrawals claiming my account is not registered, I finally decide to use my public key. Now it says -'Waiting for balance...' for 20 min already.

Now the transfer is finalized supposedly... But I did not get the funds it seams. I found the transactions and tried
Code: [Select]
wallet_rescan_blockchain
wallet_recover_transaction <transaction_id_prefix> [recipient_account]   
and wallet_regenerate_keys <account_name> <max_key_number> 
Neither producing results.

The questions are:
Code: [Select]
blockchain_get_transaction <transaction_id>Provides several ids, neither one of them is the one I gave bter to transfer the funds to.
1. Is this how it is supposed to be?  How I check if they did send the funds to me and not somebody else?
2. I f not which of those has to be the one I (or whoever received the funds) is the id of the party receiving the funds. It has:

1.
Code: [Select]
"type": "withdraw_op_type",
        "data": {
          "balance_id": "BTSXA5eyQwJUPd4AmaudVx6u8aUpfKXk5VdYa",
2. 2 here:
Code: [Select]
["type": "deposit_op_type",
        "data": {
          "amount": 1625678000,
          "condition": {
            "asset_id": 0,
            "delegate_slate_id": 0,
            "type": "withdraw_signature_type",
            "data": {
              "owner": "BTSX3RF97vighDgFR7RGEoS8rpLYtJCE5xRm5",
              "memo": {
                "one_time_key": "BTSX8ak3SJFQdt7BgHpS3AawzhZe3mREqUHnPPwEYyJh6bLRSPVzhS",
3.
Code: [Select]
"provided_deposits": [[
      "BTSX9RptBKVDGHkZEn49TeDKS9ENBAQRaNoDT",{

The withdrawal btw should have gone to :
BTSX5e9S3uTdhLsKg7JwPFp79p4VscPAyrPHb4oUzy6kW9FzcirpEf

if this helps...

Offline Riverhead

Ask him to join the the dev hangout tomorrow and talk to Dan himself. Most likely Dan might agree some standards could have been better followed.

Also even if your friend just wants to listen in it would give a much better feel for what the project all about right from the horse's mouth. A $50MM market cap, the fourth highest crypto on the planet, indicates that his opinion of it being "such , such a bad idea" is in the minority.

Come join us on tomorrow's dev chat. Come talk with us. The water's fine :) .

Sent from my SM-G900T using Tapatalk
« Last Edit: October 17, 2014, 02:40:56 am by Riverhead »

Offline happybit

  • Full Member
  • ***
  • Posts: 87
  • Happy Bit!
    • View Profile
This question is from a friend:

Quote
:Why is the core code in libraries? ... libraries are always external.

:101 noob mistake...  you call it \src

:i just don't understand, like, not even putting the effort in proper code structure
: they have a market engine? hmmm
: ok, that is interesting
: normally in any source base, you clearly distinguish between your own code and foreign code
: so, libs is where you put all the stuff you use
: src is where you put your own source code

: // prime the pump, to make sure that margin calls (asks) have a bid to check against.
: they have margining in there...
: this is such, such a bad idea

: but how do they plug the exchange engine into their blockchain?!


Please help me respond to him, I'm trying to get him to take a closer look at Bitshares.  [i do not code, but will forward your response to him]
« Last Edit: October 16, 2014, 04:24:17 pm by happybit »

Offline Riverhead


How do I change the default tx fee which is currently in the same asset, so my bitAsset transfer pay the transaction fee in BTSX?

In the GUI preferably, but if not possible, in the console is fine too.

In the GUI you can go to preferences and select your fee though you cannot change how it is calculated.

Offline jamesc

There is only one fee in BTSX.   It gets converted into the equal bit asset amount automatically.

zerosum

  • Guest

How do I change the default tx fee which is currently in the same asset, so my bitAsset transfer pay the transaction fee in BTSX?

In the GUI preferably, but if not possible, in the console is fine too.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
@zerosum:
- 1bitUSD is backed by BTSX worth 1,5-3 USD .. (collateral for shorts)
- a bitUSD could (in theory) only end up being unbacked in a flash crash / black swan event

plenty of discussion of the latter can be found here: https://bitsharestalk.org/index.php?topic=7032.0

BTW
 - +5% for reading 10%!!!!! of the forum .. that's awesome
 - welcome to the community!