About wallet_publish_version command

Started by king, September 12, 2014, 02:52:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeroc

I figured that out yesterday too .. took me to figure out why my delegates didn't broadcast feeds ... could have posted the solution already .. i appologize

Fox

@xeroc:
It took me some trial and error before I could work out the proper syntax.  Here is my latest update:
wallet_publish_feeds fox [["USD",0.0341],["CNY",0.2040]]
Witness: fox

xeroc


delegate (locked) >>> help wallet_publish_price_feed
Usage:
wallet_publish_price_feed <delegate_account> <price> <asset_symbol>                                   publishes a price feed for BitAssets, only active delegates may do this
publishes a price feed for BitAssets, only active delegates may do this

Parameters:
  delegate_account (account_name, required): the delegate to publish the price under
  price (real_amount, required): the number of this asset per XTS
  asset_symbol (asset_symbol, required): the type of asset being priced

Returns:
  transaction_record
delegate (locked) >>> help wallet_publish_price_feeds
0 exception: unspecified
No help available for command "wallet_publish_price_feeds"
    {"command":"wallet_publish_price_feeds"}
    th_a  rpc_server.cpp:623 help

    {}
    th_a  common_api_client.cpp:2163 help

    {"command":"help"}
    th_a  cli.cpp:555 execute_command
delegate (locked) >>> wallet_publish_price_feeds
Error: invalid command "wallet_publish_price_feeds"


I am on 0.4.15rc1

boombastic

wallet_publish_feeds delegate_account [["USD",0.xxxx],["BTC",0.xxxx],["GLD",0.xxx]]


Sent from my iPhone using Tapatalk
[url="http://bitshares.dacplay.org/r/boombastic"]http://bitshares.dacplay.org/r/boombastic[/url]
Support My Witness: mr.agsexplorer
BTC: 1Bb6V1UStz45QMAamjaX8rDjsnQnBpHvE8

svk

#15
Quote from: bytemaster on September 12, 2014, 04:24:27 PM
Quote from: amencon on September 12, 2014, 03:46:24 PM
That's nothing, the real cost is paying to update price feeds every 1% change over multiple currencies.  That's why the delegates get paid though right?  Even with an 80% burn rate I'm able to pay these transaction fees and still come out in the black long term so far.  Seems fair to me.

You can publish multiple feeds in a single transaction.
Xeroc asked already but think you missed it: is there an API call for this?

The current wallet_publish_price_feed command appears to only take a single price and feed as input, would be awesome to be able to publish multiple feeds by passing an array or object though.


I should've looked harder, for reference the command is:

wallet_publish_feeds <delegate_account> <symbol_to_price_map>
Worker: dev.bitsharesblocks

bytemaster

Quote from: Xeldal on September 12, 2014, 08:47:07 PM
If every delegate updates version and updates 3 feeds once.  that's 2 BTSX per delegate X 101 = 202 BTSX
These transactions fees are then paid to the delegates. Assuming 20% burn (~40BTSX) leaves 162 BTSX paid to delegates.

So you spend 2BTSX to update and get 1.62BTSX back as delegate pay.  Not so bad.

Obviously there are differences in feed update frequency and combined feed update efficiencies that may skew individual results. 

I don't think these update fees are an issue.  Even if they were much higher, your just paying yourself to do it. It only costs a delegate the collective burn rate.

It subsidizes the lazy delegates at the expense of pro-active delegates.     
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.

Xeldal

If every delegate updates version and updates 3 feeds once.  that's 2 BTSX per delegate X 101 = 202 BTSX
These transactions fees are then paid to the delegates. Assuming 20% burn (~40BTSX) leaves 162 BTSX paid to delegates.

So you spend 2BTSX to update and get 1.62BTSX back as delegate pay.  Not so bad.

Obviously there are differences in feed update frequency and combined feed update efficiencies that may skew individual results. 

I don't think these update fees are an issue.  Even if they were much higher, your just paying yourself to do it. It only costs a delegate the collective burn rate.

king

Quote from: xeroc on September 12, 2014, 08:49:27 AM
Quote from: liondani on September 12, 2014, 08:45:02 AM
Is it not an option to lower a little bit the "Transaction Fee (BTSX)" manualy at "Preferences"(gui) ? Am I missing something?
Sure .. you are free to do so .. unless you figure out that everything <0.1 BTSX will not work properly :-)

Quote
I made it myself. Do you think it's not ethical? I think it's ok. Let me known....
not really en ethical issue .. there are different things to consider:
- every btsx fee you pay will help delegates to be profitable
- a part of that fee is burned and comes as a profit for shareholders ...

I have not decided my own if its greedy or unethical to reduce the fee .. I will stick with .5 btsx just because .. it's still just a handful of $cents .. (although I send out feeds for 3 delegates and 4 currencies every 4 hours :-) ) .. income is still > costs :-)  -- even if I had only one active delegate .. (btw:  https://bitsharestalk.org/index.php?topic=7673.msg101741#msg101741 )

People will not only feel less fees to pay, but because of reasonable pay.
delegate revenues> costs, but these revenues should be used to promote the product in place of progress,
Thanks discussion, I now think is really necessary to pay, because it avoids publish spam
BTSX Account: mister
BTSX Delegate :sun.delegate.service,moon.delegate.service

king

Thanks, I'm just discussing reasonable, including:
Question 1, when the delegate publish version info and update feed price, whether you need to pay?
Question 2, the delegate update, the need to manually execute the command wallet_publish_version, ability to automatically publish version?which will avoid some malicious behavior;

For Question 1, the above discussion has been very good;
I hope to discuss Question 2.
BTSX Account: mister
BTSX Delegate :sun.delegate.service,moon.delegate.service

amencon

Quote from: bytemaster on September 12, 2014, 04:24:27 PM
Quote from: amencon on September 12, 2014, 03:46:24 PM
That's nothing, the real cost is paying to update price feeds every 1% change over multiple currencies.  That's why the delegates get paid though right?  Even with an 80% burn rate I'm able to pay these transaction fees and still come out in the black long term so far.  Seems fair to me.

You can publish multiple feeds in a single transaction.
Oh excellent.  Not only will this reduce the cost to publish feeds but will also remove any potential incentive for delegates NOT to publish feeds on additional assets.  Thanks.

xeroc

Quote from: bytemaster on September 12, 2014, 04:24:27 PM
Quote from: amencon on September 12, 2014, 03:46:24 PM
That's nothing, the real cost is paying to update price feeds every 1% change over multiple currencies.  That's why the delegates get paid though right?  Even with an 80% burn rate I'm able to pay these transaction fees and still come out in the black long term so far.  Seems fair to me.

You can publish multiple feeds in a single transaction.
there's a call for this already?

bytemaster

Quote from: amencon on September 12, 2014, 03:46:24 PM
That's nothing, the real cost is paying to update price feeds every 1% change over multiple currencies.  That's why the delegates get paid though right?  Even with an 80% burn rate I'm able to pay these transaction fees and still come out in the black long term so far.  Seems fair to me.

You can publish multiple feeds in a single transaction.
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.

amencon

That's nothing, the real cost is paying to update price feeds every 1% change over multiple currencies.  That's why the delegates get paid though right?  Even with an 80% burn rate I'm able to pay these transaction fees and still come out in the black long term so far.  Seems fair to me.

xeroc

Quote from: liondani on September 12, 2014, 08:45:02 AM
Is it not an option to lower a little bit the "Transaction Fee (BTSX)" manualy at "Preferences"(gui) ? Am I missing something?
Sure .. you are free to do so .. unless you figure out that everything <0.1 BTSX will not work properly :-)

Quote
I made it myself. Do you think it's not ethical? I think it's ok. Let me known....
not really en ethical issue .. there are different things to consider:
- every btsx fee you pay will help delegates to be profitable
- a part of that fee is burned and comes as a profit for shareholders ...

I have not decided my own if its greedy or unethical to reduce the fee .. I will stick with .5 btsx just because .. it's still just a handful of $cents .. (although I send out feeds for 3 delegates and 4 currencies every 4 hours :-) ) .. income is still > costs :-)  -- even if I had only one active delegate .. (btw:  https://bitsharestalk.org/index.php?topic=7673.msg101741#msg101741 )

liondani

Is it not an option to lower a little bit the "Transaction Fee (BTSX)" manualy at "Preferences"(gui) ? Am I missing something?
I made it myself. Do you think it's not ethical? I think it's ok. Let me known....
[url="https://www.steempeak.com/@liondani"]https://www.steempeak.com/@liondani[/url]

xeroc

Quote from: cryptillionaire on September 12, 2014, 08:32:15 AM
Yeah.. it's only 1.5 cents at the moment, I see no problem with this.. I'm assuming it's in place to prevent malicious delegates from spamming the network with thousands of version number updates or something..
not only that .. EVERY account name can update its 'data' field .. its not delegate-related .. to update theses fields you need a transaction .. to make the transaction free for delegates the software and the network would have to 'parse' those transactions and interpret (is it a version update, is it for a delegate) .. this is simply not worth the cents .. further delegates get a pay .. so they should have enough btsx to pay those .. in the short and the long term

R2

Yeah.. it's only 1.5 cents at the moment, I see no problem with this.. I'm assuming it's in place to prevent malicious delegates from spamming the network with thousands of version number updates or something..

xeroc

that version update will almost certainly always cost the transaction fee ... $1.5c currently .. delegates only NEED to update for hardforks .. if price goes to mars or even pluto transaction fees can be lowerd ..

king

About wallet_publish_version command, when used, will cost 0.5BTSX, I think it is not very reasonable!
version of the delegate node, can automatically publish the wallet? And without cost?
BTSX Account: mister
BTSX Delegate :sun.delegate.service,moon.delegate.service