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.


Topics - BTSdac

Pages: 1 [2] 3 4 5 6 7 8 9 10
16
中文 (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 发分红者的余额,就可以打包交易广播了,然后在慢慢调整股东余额。这样不会影响打包速度。

17
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

18
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

19
I am going to go my hometown for Chinese new year, and wish everybody happy

20
why cancel order with fee? even back the fee create order ?
it is unreasonable totally ,      create order and cancel order both would write on block-chain ?
what are you really think ?  no fee would make block-chain expand!

no fee would make block-chain expand!
no fee would make block-chain expand!
no fee would make block-chain expand!
no fee would make block-chain expand!
no fee would make block-chain expand!

21
通过网络费用来支持开发就是画地为牢。
自己把自己圈死,
阿里巴巴,最近几年才盈利,没有天猫之前,taobao基本没有收入, 如果以收入支撑开发,那早完蛋吧。
价格变到2分就改变当初自己的看法?

我一直观点是,我赞成work 支付工资, 但必须要给反对的人简单表达权利的途径.
如果反对所有的worker 只需要给 refund400k (1.14.0) 这个worker 投赞成票.  就等于给所有worker投反对票     
如果你想了解为什么等价, 请看我发布的帖子
https://bitsharestalk.org/index.php/topic,21139.0.html

22
General Discussion / Marketing cap of bts descend to twelfth.
« on: January 24, 2016, 01:05:53 pm »
Marketing cap of bts descend to twelfth. 
Do not hold any hope for bts. I just read the code

23
General Discussion / some question about worker
« on: January 24, 2016, 09:07:24 am »
I try explain worker function to public , but I have two questions ,who can help me ,thanks  thanks

1. what different between "burn_worker" and "refund_worker"?
2.how many bts chain's budget per day?

24
中文 (Chinese) / 有关refund400k (1.14.0) 工作合同的说明
« on: January 24, 2016, 07:49:11 am »
声明我的言论和价格没有任何,只是讲述事实情况。

最近又有不少人造谣(也有可能是完全不了解)说BM 每天拿40万BTS ,
这不是事实, BM现在并没有拿工资

第一次发文时候  增发 门槛是1.5亿,后来被他们降低到4000万,  现在增发已经到25万每天

我们可以现有的工作合同上可以看见http://cryptofresh.com/workers  refund400k (1.14.0)  每天40万BTS的工作合同,但这个工作合同的工资谁也别想得,这是返还给块链的。

为了说明清楚这个问题,先看看什么是工作合同,工作合同简单说 就是开发者或者为BTS做贡献的人可以在 BTS链上申请为自己的工资,每个BTS持有者可以对这个工作合同投赞成票或者反对票,如果赞成票>反对票那么这个工作合同就生效。而每天的总工资预算是确定的,按批准投票数 由高到低支付工资,如果每天限额用完了,排名后的工作合同得不到支付。
而工作合同有三种类型

1.为自己申请工作合同自己拿工资。
2.申请工作合同 但工资谁也给,让工资返还给块链,让工资销毁,
3.申请工作合同 但工资谁也不给,让工资销毁 将工资发给一个没有私钥的空账号。

可以看出只有第一种工作合同是实际支付,第二,三工作合同都不实际支付,
由于每天总工资预算是一定的,如果第二,三种工作类型多了话,那么实际支付的就少了。

而refund400k (1.14.0) 这个工作合同 就是 第二种类型的工作合同,每天取40万工资(每天总工资支付限额) 但返还给块链了,没有任何人可以得到。也就是工作合同的批准票数高于 refund400k (1.14.0) 的才生效。

而现在BTS每天的总量会增加大约12万
支出:
1.付给网络维护者的工资,任何币都需要支付给网络维护者工资,比如BTC是每天3600BTC ,每个块有1.5BTS的增加,总计是 每天28800块  总计 43200BTS
2. 付给开发者的工资现在总计是8.4万BTS每天。这些合同都会在今年3.4月份全部到期,如果没有新的工作合同被批准,那么这块会变成0,当然如果有新的合同批准也会增加。
销毁:
各种交易费用,注册费用,

虽然我个人是非常喜欢工作合同这个制度的,但也要给那些反对的人简单的表达想法的权利,所以如果你不想让BTS有任何稀释的话,只需要给refund400k (1.14.0)  合同投票。

为什么要搞这么麻烦,申请了又销毁。
每天工资总预算限额是 40万
比如有两个工作合同
        类型         每天工资        批准票数
1.    refund      40万              2亿
2.    支付          3万                1.9亿
那么工作合同2不会支付,因为 refund工作合同 要求付给40万但同时又把这40万销毁了,似乎白忙活,但真正的作用在于,每天总工资预算只有40万,而支付是按排名由高到低支付,而refund工作合同 把所有的限额用完了,所以合同2不能支付。
如果合同2的批准票数高于refund  合同,那么就先支付合同2 .
 相当于任何支付合同要实际支付, 需要批准票数高于  refund 合同。





25
Technical Support / dividend for asset
« on: January 24, 2016, 01:33:30 am »
i am working on asset dividend and boost testing OK

26
General Discussion / how many bts that bm hold now ?
« on: January 21, 2016, 04:28:44 pm »
how many bts that bm hold now ?
Hi, bm how many bts you hold now? if you want to let public know, 

27
中文 (Chinese) / BTS2.0 代码底层类简谈.
« on: January 13, 2016, 02:23:59 am »
最近几个朋友在问有关BTS代码的问题, 所以我把我最近看的东西简单整理一下.
BTS里有很多基础的类如raw ,static_variant ,reflect 都是放在fc库中,
而现在fc库基本没有任何技术介绍资料. 所以只有去看类的实现代码去了解用法,
raw: 包含两个关键的函数, pack 和unpack ,  每个函数分别有几十种模板特例, 根据函数重载和模板匹配规则, 编译系统在编译的时候就会生成模板实例,
pack:将变量数据(包含类)文件流化(变成二进制), 将数据压入sha256 离散函数的准备数据包中......
unpack: 将文件流(二进制)转换成变量数据(包含类),
在pack 和unpack 两个相反的过程中,如果被操作的数据不是变量而是类时,使用reflect将类展开, 并且分别对每个变量调用pack/unpack函数.  每个需要被pack和unpack 函数调用的对象需要实现重载 操作符<<  >>

static_variant  :
这个类和boost:variant 类 用途相同, 可以参考boost_variant 用法

reflect类
这个类包含了 多层的参数宏, 所以一个宏展开往往有几十行代码.  主要所用是用于raw:pack 和raw:unpack 两个函数展开类的.



28
I think bts create a  excellence base structure of block chain , there a several features on bts , like exchange , referral programs , 
but in my sight , it is all not the kill feature so far , in other words there all are the features with less real requirement.  what is the really feature the crowd need ?
but I just want know how many bts the block-chain glad to pay for a kill feature?   

29
General Discussion / how many delegates you vote usually
« on: January 07, 2016, 02:48:01 pm »
how many delegates you vote usually ?
I don`t know if bm really want make BTS  really decentralize ,   how many delegates one account can vote ,   I think it is should small than the average delegates of people voting , 

30
General Discussion / what is purpose of struct static_variant ?
« on: January 01, 2016, 05:52:10 am »
what is purpose of struct  static_variant ? 
is it similar with boost::variant ?
there is not any comments about this class,
who can explain what the purpose of this class ,
 +5% +5% +5%

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