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

Pages: 1 ... 279 280 281 282 283 284 285 [286] 287 288 289 290 291 292 293 ... 299
4276
中文(Chinese) / Re: BitShares PLAY分配方案
« on: January 09, 2015, 04:22:13 pm »
有个问题想请教下 PLAY给BTS分配份额 是不是意味着按照相应比例减少自己的BTS来换取PLS?
不是用bts换取,是白给的。
不过如果play上线导致bts跌价那是另外一回事。。

4277
General Discussion / Re: Block Explorer and Delegates Listing
« on: January 09, 2015, 10:48:27 am »
Interesting.. BTSBOTS's batch market transactions are identified as 'Ask'?

BTW transaction types should include 'cancel an order'.

4278
Here is a complaint about fund lost caused by covering a short order.
https://bitsharestalk.org/index.php?topic=13042.0

Please check this block:
http://bitsharesblocks.com/blocks/block?id=1465854

Looks strange.
Code: [Select]
>>> blockchain_get_block_transactions 1465854
...
      "deposits": [[
          22,{
            "amount": 5504026,
            "asset_id": 22
          }
        ]
      ],
      "withdraws": [[
          0,{
            "amount": 9900337696,
            "asset_id": 0
          }
        ],[
          22,{
            "amount": 5504026,
            "asset_id": 22
          }
        ]
      ],
...

4279
General Discussion / Re: api call error
« on: January 09, 2015, 08:31:53 am »
The feed scripts use float() with %g to format the number .. maybe thats the issue ...

Have a sample code?

I think xeroc is correct, it looks like the exponent at the end of "1.2028997179833209e-05" might be causing the failure.
I don't know where it convert price  from type float to type string
from the output above, it's still float when I call requests.post()
Anyway encoded HTTP post data is a String. You have this in the data:
Code: [Select]
['ask_order', ['fund.btsbots', 11429.350384438114, 'BTS', 1.202899717
9833209e-05, 'GOLD']]

generated by
Code: [Select]
json.dumps(payload)

4280
+5%
密码最好不要写在文件中,VPS硬盘很容易被克隆,简单点的办法是自己把密码设置到环境变量中,在GDB中从环境变量中读出密码
在机器不重启的情况下可以这么做。
或者,创建一个ramdisk,把主贴所述包含密码的文件写在ramdisk上,这样密码只在内存中,克隆硬盘不会导致密码泄露。

机器重启怎么办?我能想到的两个思路:
1. 采用加密的文件系统来存放敏感数据
2. 使用一台“安全的”电脑来远程监控运行钱包的服务器,需要时,自动远程连接,创建包含密码的文件/设置密码环境变量

4281
受托人运行过程中,可能遇到服务器重启后,需要自动启动钱包。官方wiki上有说明:
http://wiki.bitshares.org/index.php/Bitshares-x-delegate-how-to#Starting_the_client_after_a_reboot_or_crash

第一步,启动钱包
Code: [Select]
gdb ./bitshares_client --server --httpport 9989 --rpcuser user --rpcpassword pass
第二步,钱包启动后,在钱包的控制台输入下面的命令
Code: [Select]
open mywallet
 unlock 999999
 <enter password>
 wallet_delegate_set_block_production user123 true
 network_set_advanced_node_parameters {"desired_number_of_connections":100, "maximum_number_of_connections":200}

但是实际上,如果是服务器异常重启,是没有机会人工输入上述命令的,这样就会导致丢块。

为了解决这个问题,alt实现了一个用expect脚本来自动输入上述命令的方法,代码见 https://github.com/bitsuperlab/operation_tools/tree/master/restart
其他受托人也有各自的做法。

这里介绍的是另外一种方法:直接使用钱包程序的启动参数和配置文件,来实现启动时自动加载命令执行。
第一步,创建一个文件,比如命名为 startup.input ,内容如下
Code: [Select]
>>> open mywallet
>>> unlock 99999999 <password>
>>> wallet_delegate_set_block_production user123 true
>>> network_set_advanced_node_parameters {"desired_number_of_connections":100, "maximum_number_of_connections":200}
注意,每行以“>>> ”开头,也就是3个大于号加一个空格,后面跟要执行的命令。
命令里的参数,包括钱包名,密码,受托人账号等等,请根据自己情况修改。
至于密码写在文件里怎么让别人看不到,这里不详细讨论,有经验的请补充。

第二步,修改启动钱包的命令,在后面添加一个参数
Code: [Select]
gdb ./bitshares_client --server --httpport 9989 --rpcuser user --rpcpassword pass --input-log startup.input
这样,钱包启动时,就会自动加载 startup.input 里的命令了。

结束。

欢迎打赏或者拍砖 :D


4282
这个和比特股没关系。

4283
Q2. wallet2 to get back the bts
@abit, @vikram
as this act involoves more than half of my savings
i have to be really discreet
will it cause any problem
that the due bts was once claimed,later a transaction was made
then import the pts wallet again?
do you think i should import it to the same wallet same account
or a brand new empty wallet with new account ?
If you 'claimed' but didn't transfer all the fund to another account, you left the remaining fund at its original address, it's re-claimable with the private key. So it's safe if you're the only one who know the key.
As vikram answered, claim to a new wallet is better.

4284
Technical Support / Re: how to save advanced_node_parameters
« on: January 07, 2015, 05:42:28 pm »
Code: [Select]
$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup

Looks like it's possible to set some commands to excute at startup, but how to?

You can give it a file with a command on each line prefixed by the console prefix ">>> ". Anything before the prefix or on a line without it is ignored. Like so:

https://github.com/BitShares/bitshares/blob/6b5febbeca5e4274a1b29f56b5e67bc093412392/tests/regression_tests/_common_logs/create_wallet.log
Great. This makes a lot sense.
Thanks.

4285
For those who lost fund after importing a private key, it may be interesting to check whether the owner key and the active key of the account are same.
While creating a new sub-account with current version of client (v0.4.27.2), the owner key and active_key are different by default. In this case, if one dump out the private key of the account and import it into another wallet, only the active key will be imported, as a result, something strange may happen.

Code: [Select]
>> wallet_account_create test.abit

"BTS5R1G2iBqAoKAKZCRfJgZA7us7N7xkvSaMwStnY1hkK52s42A56"

>> wallet_get_account test.abit

{
  "index": 52041,
  "id": 0,
  "name": "test.abit",
  "public_data": null,
  "owner_key": "BTS5R1G2iBqAoKAKZCRfJgZA7us7N7xkvSaMwStnY1hkK52s42A56",
  "active_key_history": [[
      "2015-01-07T13:40:53",
      "BTS5j2xL7jKjFprETK1suWfxGEux8gQcuheyaL9nytW9AHtzRDuUz"
    ]
  ],
...
}

4286
Technical Support / Re: Exception cancelling market orders
« on: January 07, 2015, 01:08:33 pm »
Let's replay..
1. open a wallet console (v0.4.27.1),
1.1 type a command 'wallet_account_create [sub.account]'
1.2 type command 'register [sub.account] [account]'
1.3 type 'wallet_dump_private_key [sub.account]', will get a private key
2. transfer some BTS and CNY to the new sub-account
3. on another computer, open a wallet console (v0.4.27.2),
3.1 type 'create_wallet [wallet_name]'
3.2 type 'wallet_import_private_key [the_private_key]'
3.3 type 'wallet_market_submit_bid aaa xxx bbb yyy', created a bid order
3.4 type 'wallet_market_order_list xxx yyy', can see the order created, with an order id
3.5 type 'wallet_market_cancel_order [order_id]', Exception raised.

It's interesting that the owner key and active key of that sub-account are different. Perhaps it makes sense?
The result of command 'wallet_dump_private_key [account_name]' is the private key of the active key, but not the owner key.
So I guess active key is needed for submit an order, but owner key is needed for cancelling an order? Will import the other key and make some tests.

UPDATE:
After imported the private key of owner key of the sub-account in the new client, I was able to cancel the market orders successfully.

So here comes a question: is it a new feature or a bug?

4287
i send some bitcoin to ags with multibit in jan last year
and on mar 1st i had some pts, i sold them days after the snapshot
im to claim these 2 sum of bts

windows xp,bts 0.4.27.2

===============================

Q1:now what do i do with wallet1 to get the due bts for ags?
You can check your AGS balance at http://www1.agsexplorer.com/ , input all of your btc address there, you'll know which address has AGS. Then import the private key of that address in BTS wallet.
Quote
Q2:now what do i do with wallet2 to get back the bts?
Import the pts wallet again.
Since you haven't move all of your BTS to another account, most of it should be in the original address.
Quote
Q3:is there any place i can input my bts acccount address so that i can see the balance of it, just like blockchain.info for bitcoin?
No way for TITAN accounts.

4288
I think you know Chinese. Please check these 2 pages:
http://www.bts.hk/bitshares-xt-import-wallet-key.html
http://www.bts.hk/multibit-pts-btc-qt-export-key.html

If you are importing Genesis funds (AGS/PTS) , you don't need to re-scan the BTS chain, just import the private keys then your funds will be there.

Are you sure your addresses / private keys are correct? Check them at http://www1.agsexplorer.com/ .
This article may also be helpful for you:
http://www.bts.hk/about-bts-ags.html

You can also post questions in the Chinese sub-forum, a lot of people will help you.

4289
Technical Support / Re: Exception cancelling market orders
« on: January 07, 2015, 06:26:41 am »
here is the output from rpc call  wallet_market_order_list
you can find ID 48b08ef975ca3c5002e6de8ae3d034b90c427c44 belong to key BTSEzmSPTwQys6AgdJFjLoTioVdLXMWujPzY

run  this command to see if the key is in your wallet
Code: [Select]
wallet_dump_private_key BTSEzmSPTwQys6AgdJFjLoTioVdLXMWujPzY
if it's not, maybe you need to run this command to regenerate your key,
if it's not work change 200 to more, untill wallet_dump_private_key run success.
Code: [Select]
wallet_regenerate_keys youraccount  200
Yes I have the private key(s), just unable to cancel the order(s).

4290
wallet_set_transaction_scanning true
rescan

最新大招,以上两条命令解决丢资金的问题。
这个不是最新了,如果只需要恢复1个账号的话,最新小招是这个
Code: [Select]
wallet_repair_records 账号名

如果需要恢复所有账号,就不带账号名
Code: [Select]
wallet_repair_records

Pages: 1 ... 279 280 281 282 283 284 285 [286] 287 288 289 290 291 292 293 ... 299