Author Topic: Testing BitShares XT Launch...  (Read 42817 times)

0 Members and 1 Guest are viewing this topic.

Offline mess

  • Newbie
  • *
  • Posts: 16
    • View Profile
Just tested bts_xt_client. The ratio between bts_xt_balance and ags_balance from the same wallet is 1.6395. Shouldn't it be 3.33 according to the Feb 28th snapshot?

Offline modprobe

I am caught by a compile error as the following.

Code: [Select]
/home/XXXX/bitshares_toolkit/libraries/fc/GitSHA3.cpp:6:29: error: ‘HEAD’ was not declared in this scope
 #define GIT_UNIX_TIMESTAMP3 HEAD-HASH-NOTFOUND

It seems g++ treats "HEAD" as a token instead of whole "HEAD-HASH-NOTFOUND". Is it an issue of gcc version?
My g++ version is 4.8.1

Anyone know how to solve it? Thanks.

p.s. I've followed the build guide for Ubuntu.

Replace HEAD-HASH-NOTFOUND with 1398967484 and try building again.

Offline coolspeed

  • Hero Member
  • *****
  • Posts: 536
    • View Profile
    • My Blog
I am caught by a compile error as the following.

Code: [Select]
/home/XXXX/bitshares_toolkit/libraries/fc/GitSHA3.cpp:6:29: error: ‘HEAD’ was not declared in this scope
 #define GIT_UNIX_TIMESTAMP3 HEAD-HASH-NOTFOUND

It seems g++ treats "HEAD" as a token instead of whole "HEAD-HASH-NOTFOUND". Is it an issue of gcc version?
My g++ version is 4.8.1

Anyone know how to solve it? Thanks.

p.s. I've followed the build guide for Ubuntu.
« Last Edit: May 03, 2014, 02:49:00 pm by coolspeed »
Please vote for  delegate.coolspeed    dac.coolspeed
BTS account: coolspeed
Sina Weibo:@coolspeed

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 305
    • View Profile
I need to add an rpc call for that. 


Sent from my iPhone using Tapatalk
Thanks for the feedback.

I see that getblock returns signed_block_header which doesn't have transaction ids. If it returns digest_block by calling fetch_digest_block, that'll satisfy my needs. Anyway, another api returning block_trxs.fetch(blocknumber) is also fine.
Weibo:http://weibo.com/zhangweis

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 305
    • View Profile
BTS wallet's approach seems to be HD wallet.
Refer https://en.bitcoin.it/wiki/Deterministic_wallet

From the code from wallet.cpp(wallet::new_public_key), I think that it will generate the same series of keys if you start from the same wallet key password and the same encrypted_base_key.
Weibo:http://weibo.com/zhangweis

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
BTS wallet's approach seems to be HD wallet.
Refer https://en.bitcoin.it/wiki/Deterministic_wallet
 
Quote

>>> getnewaddress CrazyBit
spending passphrase:
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH : CrazyBit
>>> ^C
bts_xt_client.exe --trustee-address 9gWvCSLaAA67Rwg9AEvPAttUrdr9pXXKk --connect-to 107.170.30.
182:8765 --data-dir D:\bitshares\VS2013_update\programs\bts_xt\Debug\Client
================================================================
=                                                              =
=             Welcome to BitShares XT                          =
=                                                              =
=  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.                          =

>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
>>> getnewaddress CrazyBit
spending passphrase:
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH : CrazyBit
>>> quit

unbelievable, the private key come back again,is it possible to generate the same key in different time? as the operation history enclosed above, i terminate the client without saving the key to the wallet, and i can get the same key "EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH" after i re-launch the client.
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 toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
I think there's a pool of keys it generated when it made the wallet and it's just giving them back to you in the same order. Try deleting your default wallet and see if you get a new set of keys.
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 crazybit

Quote

>>> getnewaddress CrazyBit
spending passphrase:
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH : CrazyBit
>>> ^C
bts_xt_client.exe --trustee-address 9gWvCSLaAA67Rwg9AEvPAttUrdr9pXXKk --connect-to 107.170.30.
182:8765 --data-dir D:\bitshares\VS2013_update\programs\bts_xt\Debug\Client
================================================================
=                                                              =
=             Welcome to BitShares XT                          =
=                                                              =
=  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.                          =

>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
>>> getnewaddress CrazyBit
spending passphrase:
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH : CrazyBit
>>> quit

unbelievable, the private key come back again,is it possible to generate the same key in different time? as the operation history enclosed above, i terminate the client without saving the key to the wallet, and i can get the same key "EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH" after i re-launch the client.
« Last Edit: May 03, 2014, 06:34:25 am by CrazyBit »

Offline crazybit

EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH


could anyone pls sent me some test btsx ? thanks

pls ignore it, as i have missed the private key of above address, seems there is a bug,  the generated address was not saved to the wallet when i use CTRL+C to terminate the client but not use the command "quit" to exit

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Import private key does not work with btc or pts keys


Sent from my iPhone using Tapatalk

Why not?

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/rpc/rpc_server.cpp#L1147

Looks like the wallet has the private key so it should know that it can spend the output in the genesis block when it rescans. We shouldn't have to do a separate "sweep" transaction for the balance to show.
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 Overthetop

个人微博账号: Overthetop_万里晴空
“块链创新与创业”交流群: 330378613

Offline BTSdac

  • Hero Member
  • *****
  • Posts: 1219
    • View Profile
  • BitShares: K1
-- Using /usr as ICU root
Found ICU version 4.8.1.1
CMake Error at CMakeLists.txt:43 (MESSAGE):
  Error, BitShares require ICU version 52.1 or 53.1
github.com :pureland
BTS2.0 API :ws://139.196.37.179:8091
BTS2.0 API 数据源ws://139.196.37.179:8091

Offline cgafeng

Import private key does not work with btc or pts keys


Sent from my iPhone using Tapatalk
how to import pts keys
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline crazybit

EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH


could anyone pls sent me some test btsx ? thanks

Offline bytemaster

Import private key does not work with btc or pts keys


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.