BitShares Forum

Main => Stakeholder Proposals => Topic started by: Method-X on October 29, 2014, 07:26:27 pm

Title: Delegate questions
Post by: Method-X on October 29, 2014, 07:26:27 pm
I registered delegate.methodx and set the pay rate to 10% a few months back. Can I change the % or do I have to register an entirely new delegate to do that?
Title: Re: Delegate questions
Post by: xeroc on October 29, 2014, 07:30:40 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
Title: Re: Delegate questions
Post by: Method-X on October 29, 2014, 07:32:17 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation

Sounds good xeroc! So I just get delegate.methodx elected and once the new rules take effect it will be automatically be set to 1% inflation even though it's currently 10% pay?
Title: Re: Delegate questions
Post by: emski on October 29, 2014, 07:32:32 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
Title: Re: Delegate questions
Post by: xeroc on October 29, 2014, 07:34:23 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879
Title: Re: Delegate questions
Post by: emski on October 29, 2014, 07:43:12 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879

10x I'd wait for the final version though.
Does this mean that a delegate can have max 100x TRX fees per block?
Title: Re: Delegate questions
Post by: xeroc on October 29, 2014, 07:48:53 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879

10x I'd wait for the final version though.
Does this mean that a delegate can have max 100x TRX fees per block?

from what I know ... TX fees are BURNED .. you can get up to 100% of 50 BTS per block ..
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 02:58:01 am
Ok so I'm trying to install a delegate on a dedicated server I own. The server is located in California; I control it remotely through "WebHost Manager" (WHM). How do I install the cli (?) on the server?
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:06:18 am
Ok so I'm trying to install a delegate on a dedicated server I own. The server is located in California; I control it remotely through "WebHost Manager" (WHM). How do I install the cli (?) on the server?

I am no techy, by any stretch of the imagination, but you will not manage to install it using 'WebHost Manager'....

Yeah I def need to do this via the command line. I'll contact support and have them enable SSH if it isn't already.
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 03:09:33 am
What are your permissions on the server? What is the OS?
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:15:46 am
What are your permissions on the server? What is the OS?

It's a dedicated server, looks like I have "normal shell" access (as opposed to "jailed shell"). I'm in a section of WHM called "Manage root’s SSH Keys"... it lets me generate a key for shell access. Do I need to do this?
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 03:17:04 am
It works well for accessing the server without a password.

This may help with that: http://www.linuxproblem.org/art_9.html

Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:21:23 am
It works well for accessing the server without a password.

This may help with that: http://www.linuxproblem.org/art_9.html

DSA or RSA, what should I choose?

Also, it's Linux, forgot to mention that.
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 03:23:01 am
rsa

Though if you can ssh in normally it's not really needed.
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 03:24:32 am
Also, once you're in to a proper ssh shell it shouldn't be too bad to walk you through the install. You don't need a full GUI compile so that makes life easier.
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:27:48 am
Also, once you're in to a proper ssh shell it should be too bad to walk you through the install. You don't need a full GUI compile so that makes life easier.

Thanks for the help btw!

I've successfully generated a new SSH public and private key with NO PASSWORD, RSA and the key size is 1024.

I'm now looking for SSH file managers that work with OS X. I've found http://www.rbrowser.com/... any recommendations?
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 03:34:50 am
Is there Putty for osx?  Also, OSX has a shell built in (OSX started out as FreeBSD). You can just use that without issue.

http://superuser.com/questions/178735/how-do-you-get-a-shell-on-a-mac (http://superuser.com/questions/178735/how-do-you-get-a-shell-on-a-mac)
Title: Re: Delegate questions
Post by: Troglodactyl on October 30, 2014, 03:37:07 am
You want a plain terminal, not a file manager, just to clarify.
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:48:09 am
K... how do I connect from terminal now. It should look something like
Code: [Select]
ssh example.com@s00000.gridserver.com but I'm not sure what it will be for my specific server...
Title: Re: Delegate questions
Post by: Troglodactyl on October 30, 2014, 03:56:31 am
K... how do I connect from terminal now. It should look something like
Code: [Select]
ssh example.com@s00000.gridserver.com but I'm not sure what it will be for my specific server...

It's [username]@[URL or ip address] if that helps...

EDIT: root@[URL or ip address], given that the keys you generated were for root.
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 04:07:21 am
OMG I'm in!

So... now that I have shell access via terminal.app how do I install the bitsharesx cli?
Title: Re: Delegate questions
Post by: roadscape on October 30, 2014, 04:25:35 am
So... now that I have shell access via terminal.app how do I install the bitsharesx cli?

http://wiki.bitshares.org/index.php/BitShares_X_Delegate_How-To
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 04:36:46 am
So... now that I have shell access via terminal.app how do I install the bitsharesx cli?

http://wiki.bitshares.org/index.php/BitShares_X_Delegate_How-To

Didn't know this existed... should def be stickied in this sub!

When I input sudo apt-get update I get: sudo: apt-get: command not found

What do?
Title: Re: Delegate questions
Post by: Troglodactyl on October 30, 2014, 04:58:36 am
You could try using "yum" instead of "apt-get".
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 06:11:43 am
You could try using "yum" instead of "apt-get".

Yes that works! Next roadblock:

Code: [Select]
root@server13 [~/bitsharesx]# make
make: *** No targets specified and no makefile found.  Stop.
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 06:30:25 am
Did you do the cmake step?

Sent from my SM-G900T using Tapatalk

Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 06:44:51 am
Did you do the cmake step?

Sent from my SM-G900T using Tapatalk

Code: [Select]
root@server13 [~/bitsharesx]# cmake .
CMake Error at CMakeLists.txt:8 (message):
  GCC version must be at least 4.8!
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 06:49:40 am
BTW these are the specs on the dedicated server:

Xeon E3-1240 v3
4 Cores x 3.4 GHz
120 GB SSD

That any good?
Title: Re: Delegate questions
Post by: zerosum on October 30, 2014, 06:56:38 am
BTW these are the specs on the dedicated server:

Xeon E3-1240 v3
4 Cores x 3.4 GHz
120 GB SSD

That any good?

I will (once again) post in a topic that is non of my business/expertise.!!!!
Those are more than you need as of today. So damn good, in other words.
You are missing the software (which someone here will help you install).

Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 12:32:03 pm
tonyk2 has it correct.

The following command (except for the Ubuntu stuff of course :) )

gcc --version

Should return:

Code: [Select]
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 02:30:43 pm
Thank you tonyk and riverhead again for all the help.

Quote
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 02:39:52 pm
Looks like I probably need to install developer toolset BUT I don't know what version to install.

Here is the linux version of RedHat I'm running:

Code: [Select]
root@server13 [~]# uname -mrs
Linux 2.6.32-358.18.1.el6.x86_64 x86_64
Title: Re: Delegate questions
Post by: Riverhead on October 30, 2014, 02:48:56 pm
Doesn't yum just offer the latest?

Sent from my SM-G900T using Tapatalk

Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 02:54:57 pm
Doesn't yum just offer the latest?

Sent from my SM-G900T using Tapatalk

What if I gave you SSH access so you can mess around with it a bit? If it's not too much trouble I mean.
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:08:53 pm
Ok so I'm trying to install devtools-2 but NOW I'm getting this error:

Code: [Select]
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern


GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern

Oh commandline... how I hate thee.
Title: Re: Delegate questions
Post by: xeroc on October 30, 2014, 03:19:55 pm
Are you required to used RedHat? Because you are certainly the first person to ever try to compile it on RedHat ..
Can't you choose Ubuntu, or Archlinux?
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 03:21:48 pm
Are you required to used RedHat? Because you are certainly the first person to ever try to compile it on RedHat ..
Can't you choose Ubuntu, or Archlinux?

The server already has a few websites on it... so I would have to basically hire someone to switch everything over to Ubuntu with minimal downtime (some of the sites are for-profit).
Title: Re: Delegate questions
Post by: xeroc on October 30, 2014, 03:28:28 pm
ok .. then .. good luck compiling .. can't help you unfortunately .. never used RedHat :-\
Title: Re: Delegate questions
Post by: roadscape on October 30, 2014, 04:07:55 pm
First, a warning: servers are fragile. If you have important apps/sites on this server, don't risk it unless you have the means to fix it.

It's faster, safer, and more secure to launch a new VPS with Ubuntu and install only the delegate there.
I'm in this process myself atm and can confirm that the wiki guide (while a little messy) is error-free.

But if you want to live on the wild side :D, I'd run yum update. That should fix the GCC error.
Title: Re: Delegate questions
Post by: cube on October 30, 2014, 05:21:48 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879

10x I'd wait for the final version though.
Does this mean that a delegate can have max 100x TRX fees per block?

from what I know ... TX fees are BURNED .. you can get up to 100% of 50 BTS per block ..

Thanks for the insight.  Is this new '1%' pay-rate similar to that of KeyID?
Title: Re: Delegate questions
Post by: xeroc on October 30, 2014, 05:23:23 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879

10x I'd wait for the final version though.
Does this mean that a delegate can have max 100x TRX fees per block?

from what I know ... TX fees are BURNED .. you can get up to 100% of 50 BTS per block ..

Thanks for the insight.  Is this new '1%' pay-rate similar to that of KeyID?
I think so ... current plans are .. 50 BTS can be generated each block .. with a 1% pay rate leads to 5BTS per solved block .. which is 5x of the current payrate ..
Title: Re: Delegate questions
Post by: cube on October 30, 2014, 05:28:50 pm
Are you required to used RedHat? Because you are certainly the first person to ever try to compile it on RedHat ..
Can't you choose Ubuntu, or Archlinux?

The server already has a few websites on it... so I would have to basically hire someone to switch everything over to Ubuntu with minimal downtime (some of the sites are for-profit).

It depends if the websites use third-party software.   In most cases, it should be ok.
Title: Re: Delegate questions
Post by: cube on October 30, 2014, 05:37:52 pm
You can only reduce it .. however with the new update to the inflationary model .. all delegates will be force-set to 1% inflation
where was this explained?
https://github.com/BitShares/bitshares_toolkit/issues/879

10x I'd wait for the final version though.
Does this mean that a delegate can have max 100x TRX fees per block?

from what I know ... TX fees are BURNED .. you can get up to 100% of 50 BTS per block ..

Thanks for the insight.  Is this new '1%' pay-rate similar to that of KeyID?
I think so ... current plans are .. 50 BTS can be generated each block .. with a 1% pay rate leads to 5BTS per solved block .. which is 5x of the current payrate ..

Hmm.. 1% of 50BTS gives 0.5BTS. Right?
Title: Re: Delegate questions
Post by: xeroc on October 30, 2014, 05:46:42 pm
Hmm.. 1% of 50BTS gives 0.5BTS. Right?
Oh shit .. that hurts ..
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 08:56:13 pm
How do I import the private key for an account I created months ago? I know it's wallet_import_private_key but where do I find the private key?
Title: Re: Delegate questions
Post by: xeroc on October 30, 2014, 08:58:07 pm
How do I import the private key for an account I created months ago? I know it's wallet_import_private_key but where do I find the private key?
You have a wallet backup that contains that account name?

if you open a wallet that contains the account you want to the private key for you can use

wallet_dump_private_key accountname
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 10:04:02 pm
How do I import the private key for an account I created months ago? I know it's wallet_import_private_key but where do I find the private key?
You have a wallet backup that contains that account name?

if you open a wallet that contains the account you want to the private key for you can use

wallet_dump_private_key accountname

Thanks! So close to finishing.

Code: [Select]
Error: your chain database is in an inconsistent state.  Please shut down and relaunch using --rebuild-index or --resync-blockchain to repair the database
Any ideas what's going on with the wallet? Why isn't is scanning the blockchain correctly?
Title: Re: Delegate questions
Post by: roadscape on October 30, 2014, 10:26:02 pm
Thanks! So close to finishing.

Code: [Select]
Error: your chain database is in an inconsistent state.  Please shut down and relaunch using --rebuild-index or --resync-blockchain to repair the database
Any ideas what's going on with the wallet? Why isn't is scanning the blockchain correctly?

This might help (https://bitsharestalk.org/index.php?topic=9750.0)... emski had a similar problem in KeyID.

Did the yum update help? Did you have to do anything different for the RedHat install?
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 10:30:42 pm
Thanks! So close to finishing.

Code: [Select]
Error: your chain database is in an inconsistent state.  Please shut down and relaunch using --rebuild-index or --resync-blockchain to repair the database
Any ideas what's going on with the wallet? Why isn't is scanning the blockchain correctly?

This might help (https://bitsharestalk.org/index.php?topic=9750.0)... emski had a similar problem in KeyID.

Did the yum update help? Did you have to do anything different for the RedHat install?

I bought access to a VPS in Singapore (safer than America) through Digital Ocean. It's running Ubuntu and I have successfully compiled the cli. Now I just need to deal with a few more barriers and hopefully I'll be finished by tonight. :-\
Title: Re: Delegate questions
Post by: roadscape on October 30, 2014, 10:45:02 pm
Thanks! So close to finishing.

Code: [Select]
Error: your chain database is in an inconsistent state.  Please shut down and relaunch using --rebuild-index or --resync-blockchain to repair the database
Any ideas what's going on with the wallet? Why isn't is scanning the blockchain correctly?

This might help (https://bitsharestalk.org/index.php?topic=9750.0)... emski had a similar problem in KeyID.

Did the yum update help? Did you have to do anything different for the RedHat install?

Do you know what I type to rebuild the index? I input ./bitshares_client --data-dir dd --rebuild-index while in the /bitsharesx/ dir and I just get an error.

cd programs/client and try again. Should work!
Title: Re: Delegate questions
Post by: Method-X on October 30, 2014, 10:46:10 pm
Thanks! So close to finishing.

Code: [Select]
Error: your chain database is in an inconsistent state.  Please shut down and relaunch using --rebuild-index or --resync-blockchain to repair the database
Any ideas what's going on with the wallet? Why isn't is scanning the blockchain correctly?

This might help (https://bitsharestalk.org/index.php?topic=9750.0)... emski had a similar problem in KeyID.

Did the yum update help? Did you have to do anything different for the RedHat install?

Do you know what I type to rebuild the index? I input ./bitshares_client --data-dir dd --rebuild-index while in the /bitsharesx/ dir and I just get an error.

cd programs/client and try again. Should work!

Yeah I realized the mistake I made when posting. Wasn't deep enough into the dir tree. My bad.
Title: Re: Delegate questions
Post by: roadscape on October 30, 2014, 10:48:10 pm
It's tripped me up several times :)
Title: Re: Delegate questions
Post by: Sonia Bzrgn on November 30, 2014, 03:55:23 am
Dear MeTHoDx
I have this problem now, for several time I try to install devtoolset but I face this error:

warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern

did you solve this problem? how did you do that?
it's so important to me to solve this problem, please do me a  favour and share your experiment with me
Thanks in advance