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 - BTSdac

Pages: 1 2 3 [4] 5 6 7 8 9 10 11 ... 82
46
what is you github account ?

47
General Discussion / Re: Today's wallet seems to be very not smooth
« on: February 16, 2016, 04:52:57 pm »
Last I heard the OL server has CPU overheating issues.  The number of active connections is also growing.

The next release should include more options for servers.

The actual network is running fine.
local full client can easy run by local running witness_node +GUI, 
but it need to re-index by every time restart witness_node .  it is there any way to void re-index when restart witness_node

48
General Discussion / Re: Favorite Forum
« on: February 16, 2016, 02:03:27 pm »
it is a good idea to use reddit

49
General Discussion / Re: Dividend feature
« on: February 16, 2016, 07:26:54 am »
wow .. awesome progress these days ...

One thing though: could you please fork from github.com/cryptonomex/graphene instead of bitshares? That would make it way easier for me to run code like this on the testnet!
if it is a worker on bts chain , I think it is reasonable that fork from github.com/bitshares.

50
General Discussion / Re: Dividend feature
« on: February 15, 2016, 04:12:01 pm »
Good job  +5%, finally you published something out.

I'd recommend that you run a performance test for example on following code:
https://github.com/pureland/bitshares-2/blob/baaa44d920bd010a5344c164ae61ea76ffff3323/libraries/chain/db_balance.cpp#L44-L56
Code: [Select]
vector<pair<account_id_type, share_type>> database::get_balance(asset_id_type asset_id) const
{
vector<pair<account_id_type, share_type>> results;
pair<account_id_type, share_type> result;
auto& index = get_index_type<account_balance_index>().indices().get<by_asset>();
for (auto itr = index.find(asset_id); itr != index.end() && itr->asset_type == asset_id; itr++)
{
result.first = itr->owner;
result.second = itr->balance;
results.push_back(result);
}
return results;
}

IMO std::vector will kill performance.
thank you  +5%
I would change a way ,
like a multiple transfer ,  a transfer send to many user
it would take more spare of chain ,but small cpu time
consider account id take 8B, and shares also take 8B,  it mean increase a receiver of a transfer , it just increase 16B  ,
if a transfer send to 10,000 accounts , it is just increase 160KB apace , it is not too much .
if want to reduce the space more ,
1.2^32 is a big value , and now there are only about 100k account ,so in a multiple transfer ,use 4B to record account_id, and also use the small apace to record shares
2.set two parameters
   account_id_length  and share_length
   to define how many bytes acount_id take and how many bytes shares take , it would reduce to 8B for one receiver increasing in  multiple transfer.

51
General Discussion / Re: Dividend feature
« on: February 15, 2016, 03:44:39 pm »
now .. this is very useful for sharedrops and alike:
https://github.com/pureland/bitshares-2/commit/106b195838943801871ed9e74c0a9f6269738bc8

could you add a cli-wallet call to get the owners and their balances for a given asset? that would be awesome!

We need a worker for this, so we can pay CNX to properly review this code!!
I was not a coder ,  I learning code after I investing bts ,  I find code is a language between people and computer ,
so I am not very similar with github.
it is my first feature on bts ,I would try to perfect it ,
after that I will develop more features that I think kill feature.

52
中文(Chinese) / 分红功能简介
« on: February 15, 2016, 03:22:11 pm »
分红功能

Features:
BTS众多功能中股权交易功能是一大特色,但没发给股票持有者分红,所以我琢磨着做了个分红的功能,可以给任意资产持有者 分红(当然也是任意资产)欢迎大家测试,找找BUG
下面是cli 钱包 输出
Code: [Select]
dividend k1 DVD BTS 10000  188 0 testing 1
{
  "ref_block_num": 924,
  "ref_block_prefix": 480314239,
  "expiration": "2016-02-15T15:18:20",
  "operations": [[
      45,{
        "fee": {
          "amount": 20007812,
          "asset_id": "1.3.0"
        },
        "isser": "1.2.11",
        "shares_asset": "1.3.1",
        "dividend_asset": "1.3.0",
        "min_shares": 10000,
        "value_per_shares": 188,
        "block_no": 0,
        "describtion": "testing",
        "extensions": []
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "1f1782d8f8b74eb711764731855a457aefcdee04d31048915445575871a4e2782a66f6da6e10d68c15245fc6a84b976fc4bf21a36d8177e4ae2c2d90ba6eef0664"
  ]
}

代码在:
https://github.com/pureland/bitshares-2/commits/bitshares
性能测试
给1000个账号分红,用时少于1s
给11000个账号分红,用时间大于3s
考虑 A股股东一般在几万左右,
初期的BTS的资产 股东一般在 几百左右,性能够用了

将来如果一个资产真在几万甚至几十万个股东,有两个方便可以改进
1.witness当让需要更好的电脑,
2.执行操作时候采取异步, 先adjust 发分红者的余额,就可以打包交易广播了,然后在慢慢调整股东余额。这样不会影响打包速度。

53
General Discussion / Dividend feature
« on: February 15, 2016, 03:20:12 pm »
Dividend feature

Features:
Pay a dividend (of course ,dividend also is a specific asset on chain)to holder of a specific asset.
below is the output of opreation
Code: [Select]
dividend k1 DVD BTS 10000  188 0 testing 1
{
  "ref_block_num": 924,
  "ref_block_prefix": 480314239,
  "expiration": "2016-02-15T15:18:20",
  "operations": [[
      45,{
        "fee": {
          "amount": 20007812,
          "asset_id": "1.3.0"
        },
        "isser": "1.2.11",
        "shares_asset": "1.3.1",
        "dividend_asset": "1.3.0",
        "min_shares": 10000,
        "value_per_shares": 188,
        "block_no": 0,
        "describtion": "testing",
        "extensions": []
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "1f1782d8f8b74eb711764731855a457aefcdee04d31048915445575871a4e2782a66f6da6e10d68c15245fc6a84b976fc4bf21a36d8177e4ae2c2d90ba6eef0664"
  ]
}

Code is here:
https://github.com/pureland/bitshares-2/commits/bitshares
the code have bug , because I am not similar with github ,the code on github is not same as my local 
performance testing :
dividend to 1000 accounts take less than 1s in local testing
and dividend to 10000 accounts take about 3s

54
中文(Chinese) / Re: "CoinHoarder's machine" 是个什么鬼?
« on: February 14, 2016, 07:31:44 am »
有四大愿的为菩萨,
而四大皆空为佛

55
please notice what I say


why not after you do good effort and wait btser to vote . I think if you do really useful work to bts, they must vote support to your worker.

then please explain to me what alt / baozi is doing just now. I certainly does not recognize any value brought to the ecosystem.

If this goes on .. and more shareholders support him .. he could essential force the network to stand still in development ..
the information I get :
btser that oppose dilution proxy to baozi ,
it is reasonable , many of them do not know code , so they really does not know what the developer do , so they just consider the result (price )
 though many people oppose, 1.14.17; 1.14.16; 1.14.30 are getting paid,
because others saw the really works developer do , like UI developing ,   
though some oppose ,most of btser saw the hard works , so they can get paid
so I think :
I think if you do really useful work to bts, they must vote support to your worker.

56
So atm 1.14.17; 1.14.16; 1.14.30 are not getting paid? Meaning they can stop working at any time?
1.14.17; 1.14.16; 1.14.30 are getting paid

57
are you shame?
think about many people do many thing for bts , but never ask to pay one bts ,  and also many investor lose their money by investing bts
are you shame?
So you're sitting there complaining about people not working for free to make you rich?

Are YOU shame?
please notice what I say


why not after you do good effort and wait btser to vote . I think if you do really useful work to bts, they must vote support to your worker.


58
are you shame?
think about many people do many thing for bts , but never ask to pay one bts ,  and also many investor lose their money by investing bts
are you shame?

59
refund400k (1.14.0)
Oct 20 '15 — Dec 31 '35   init0
-   148,052,019

voting of refund400k  from 50M to 1.48M,  so I delete my old post

60
 how many works you do per day?????




Pages: 1 2 3 [4] 5 6 7 8 9 10 11 ... 82