Testing BitShares XT Launch...

Started by bytemaster, May 02, 2014, 07:42:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mess

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?

modprobe

Quote from: coolspeed on May 03, 2014, 01:51:41 PM
I am caught by a compile error as the following.

/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.

coolspeed

#27
I am caught by a compile error as the following.

/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.
Please vote for  delegate.coolspeed    dac.coolspeed
BTS account: coolspeed
Sina Weibo:@coolspeed

zhangweis

Quote from: bytemaster on May 03, 2014, 01:45:19 AM
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:[url="http://weibo.com/zhangweis"]http://weibo.com/zhangweis[/url]

zhangweis

Quote from: HackFisher on May 03, 2014, 08:05:15 AM
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:[url="http://weibo.com/zhangweis"]http://weibo.com/zhangweis[/url]

HackFisher

BTS wallet's approach seems to be HD wallet.
Refer https://en.bitcoin.it/wiki/Deterministic_wallet

Quote from: CrazyBit on May 03, 2014, 06:27:38 AM
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.

toast

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.

crazybit

#22
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.

crazybit

Quote from: CrazyBit on May 03, 2014, 02:34:29 AM
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

toast

Quote from: bytemaster on May 03, 2014, 02:29:27 AM
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.

Overthetop

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

BTSdac

-- 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
[url="//github.com"]github.com[/url] :pureland
BTS2.0 API :[url="ws://139.196.37.179:8091"]ws://139.196.37.179:8091[/url]
BTS2.0 API 数据源ws:[url="//139.196.37.179:8091"]//139.196.37.179:8091[/url]

cgafeng

Quote from: bytemaster on May 03, 2014, 02:29:27 AM
Import private key does not work with btc or pts keys


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

crazybit

EWJBpZvLQiGWmUqnVFKuTfhc4fQ7adfaH


could anyone pls sent me some test btsx ? thanks

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: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
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.