Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - crazybit

Pages: 1 ... 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29
316
BTW.

我刚看了lotto的状态更新帖。这个dac最好不要仅有一种玩法吧,你说的那3种玩法都挺有代表性的,我觉得3种都做会好玩些。别人也好扩展。

主要是不太希望玩法膨胀,否则后期多发行一种新的玩法,对原有的玩法都会形成市场冲击。
有在考虑要不要用主货币做背书冻结, 发行新游戏玩法,每个游戏有自己的筹码,但是具体实现还没有考虑清楚。

用能bta做筹码就好了,不知道在技术上行不行得通。

317
英文该怎么说,有人知道么?
RT

还有“筹码”英语怎么说?bargaining chip? 感觉太长了

平时赌钱的”筹码“用chips就可以了吧。彩票“注”在英语里应该没对应的量词,一般都收 buy one/two...lotto ticket

318
wow, what a long post, need some time go through,it would be nice if you could make a short summary to express your thought。

319
General Discussion / Re: Testing BitShares XT Launch...
« on: May 11, 2014, 02:48:46 am »
I just added some extra code to save the wallet on Ctrl+C. 

The key generation algorithm is deterministic so you you can always regenerate your change addresses.

can your exception handling cater for the scenarios that the client crashed or computer power off suddenly?

power failure cannot be handled. Only way to is to sync wallet changes immiediently on disk

It should be saving after every major wallet operation...   One thing that I have realized is that we need to switch to using a database for the wallet so that we can do partial saves with proper logging without the performance hit of having to encrypt / save the entire wallet.

Now automatically saves after every command that would require the wallet to be unlocked: https://github.com/BitShares/bitshares_toolkit/commit/1300929e64bed39f24e4f137bc2171dda9af2758

We may want to save on other big operations as well, e.g. rescan.
Seems Dan was working on the Berkeley DB based wallet which will be more scalable, it should not require to save the entire wallet after the RPC command which changes the wallet data,and it may also solve the old version wallet can not open issue.

320
Obviously,FC is the fundamental library of bitshare toolkit.  i would like to have an in-depth study, but do not know how/where to start, is there any documentation i can refer to? attached below are some of my questions, appreciated if anyone help to clarify.

1) there is some following code under the data object,what is the purpose? how it work?and when such code will be executed?
Code: [Select]
FC_REFLECT(..)
2)there are many multiple thread program like below in bitshare toolkit, i  don't quit understand how it work.

Code: [Select]
my->....complete = fc::async( [=](){ my->process..(); } );
3)Serialization is also frequently used in the toolkit,what data format are the following functions convert to? and where are the data saved after the serialization?any difference of the data format between the following serialization functions

Code: [Select]
fc::raw::pack( ...); 

pub.serialize();

321
中文 (Chinese) / Re: 版主看过来
« on: May 10, 2014, 02:52:38 am »
没说不能抱怨,我也不满意他们的开发进度,但是表达不满也要选择正确的方式,重复无节操的冷嘲热讽对事件本身毫无帮助,别搞得像怨妇一样,否定别人的同时也在否定自己,现在的中文版都怨气冲天了。

322
中文 (Chinese) / 版主看过来
« on: May 09, 2014, 05:20:39 pm »
论坛里中文版是负能量帖的集中地,而且来来去去就那么几个id,对于这些只热衷于发布无内容,无黑点,祥林嫂式般的冷嘲热讽帖的id,应该给予警告,劝告不止,直接关小黑屋。

323
中文 (Chinese) / Re: 搞不出来叫推迟
« on: May 09, 2014, 05:01:25 pm »
5块钱想收btsx?门都没有啊,5块1pibs还差不多。

324
General Discussion / Re: Testing BitShares XT Launch...
« on: May 07, 2014, 01:23:13 pm »
Heh, now it builds but old bug returns
Code: [Select]
1238056ms       th_a                 main ] bad_cast
Invalid cast from type '6' to Object
    {"type":6}
    th_a  variant.cpp:498 get_object
unable to load /home/alexxy/.bitsharesxt/default_wallet.dat
    {"wal":"/home/alexxy/.bitsharesxt/default_wallet.dat"}
    th_a  wallet.cpp:442 open                   main.cpp:157

coz the wallet data structure was changed after 5May, the wallet created before that day can not be opened if the client is built with the latest code.

Code: [Select]
       //std::unordered_map<address,std::string>                      receive_addresses;
       std::unordered_set<receive_address>                          receive_addresses;

325
General Discussion / Re: Testing BitShares XT Launch...
« on: May 06, 2014, 02:56:45 pm »
I just added some extra code to save the wallet on Ctrl+C. 

The key generation algorithm is deterministic so you you can always regenerate your change addresses.

can your exception handling cater for the scenarios that the client crashed or computer power off suddenly?

326
General Discussion / Re: Testing BitShares XT Launch...
« on: May 04, 2014, 01:11:47 pm »
problem importing pts wallet..

Code: [Select]
> import_bitcoin_wallet ~/.bitshares-pts/wallet.dat xxx
spending passphrase:
std

    {}
    th_a  import_bitcoin_wallet.cpp:339 import_bitcoin_wallet
Unable to import bitcoin wallet ~/.bitshares-pts/wallet.dat
    {"wallet_dat":"~/.bitshares-pts/wallet.dat"}
    th_a  wallet.cpp:555 import_bitcoin_wallet

Code: [Select]
import_bitcoin_wallet , this command is for bitcoin wallet import, not pts wallet, you could try to import the PTS address private key directly with command
Code: [Select]
import_private_key

327
General Discussion / Re: Testing BitShares XT Launch...
« on: May 04, 2014, 07:26:24 am »
Quote
I received 10,000 bts just now. But I am not sure whether they're sent by you. And I am also a little confused by the 'getblockcount', the count I got was quite different from what you got.

i triggered 2 transactions , seems the network only accept the 10,000 one, but not accept the 5,000 one, i also confused.

for the block no. issue, my blockchain DB has not been completely synchronized yet when i issue the "getblockcount", do not know if it is due to this.



328
General Discussion / Re: Testing BitShares XT Launch...
« on: May 04, 2014, 07:08:49 am »
you should have it now,my transaction has been included in the new block

Code: [Select]
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
BFL73TtraijmhJ457ba1NTrePDNN9p6vG : heyD

Could anyone please send me some bts ?

329
General Discussion / Re: Testing BitShares XT Launch...
« on: May 04, 2014, 06:37:29 am »
suppose it should be done within 30 seconds, seems this is something wrong ,my transaction was not included in the new block

Quote
>>> getblockcount
4294967295
>>> get_transaction_history
[[
    "9bec511a3e1149bf0b6b1ec274d2de40d3f6698f",{
      "trx": {
        "version": 0,
        "stake": 1467989992,
        "vote": 68,
        "valid_until": "19700101T000000",
        "inputs": [{
            "output_ref": {
              "trx_hash": "735687d2efeb25ee92e5c1d5696183c6b26077a1",
              "output_idx": 0
            },
            "input_data": ""
          },{
            "output_ref": {
              "trx_hash": "735687d2efeb25ee92e5c1d5696183c6b26077a1",
              "output_idx": 1
            },
            "input_data": ""
          }
        ],
        "outputs": [{
            "amount": {
              "amount": 5000,
              "unit": 0
            },
            "claim_func": 2,
            "claim_data": {
              "owner": "BFL73TtraijmhJ457ba1NTrePDNN9p6vG"
            }
          },{
            "amount": {
              "amount": 294579,
              "unit": 0
            },
            "claim_func": 2,
            "claim_data": {
              "owner": "Fiw2xbEHacPCKaagsJhanFjXRojusWnav"
            }
          }
        ],
        "sigs": [
          "1f968aa426af73add678f80c9374746444d54f37b2bdc68911d687119f751089437871eb76773a592bb28928f422b2deb000d4f332242f34672b28745a1a726edc",
          "1fc06e77bf668d2e6ac80087bc4095375eea7161853b358e38e3b5e1f2d9a57fa0464264b0e9b9d8b72f68f67574416be7b610182c5a6c515fac7001f7fdc65eb3"
        ]
      },
      "memo": "",
      "block_num": 4294967295,
      "to": [],
      "from": [],
      "delta_balance": [],
      "valid": false,
      "fees": []
    }
  ],
]
>>>

330
General Discussion / Re: Testing BitShares XT Launch...
« on: May 04, 2014, 06:01:09 am »
Code: [Select]
>>> list_receive_addresses
address                           : account
--------------------------------------------------------------------------------
BFL73TtraijmhJ457ba1NTrePDNN9p6vG : heyD

Could anyone please send me some bts ?

sent you some just now, please check.

Pages: 1 ... 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29