- Title: genesis_fix.rb - Golos Genesis Fix
- Tags: en radiator ruby golos
- Notes:
Golos Genesis Fix (genesis_fix.rb
) is a script that will fix your account's json_metadata
field, if it looks like this:
{created_at: 'GENESIS'}
To use this Radiator script:
$ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev
$ gem install bundler
$ gem install bundler
I've tested it on various versions of ruby. The oldest one I got it to work was:
ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-darwin14.4.0]
First, clone this gist and install the dependencies:
$ git clone https://gist.github.com/814532e66cc4cd537f418ac7f1f420d5.git genesis_fix
$ cd genesis_fix
$ bundle install
Edit genesis_fix.yml
, then run it:
$ ruby genesis_fix.rb
Check here to see an updated version of this script:
https://gist.github.com/inertia186/814532e66cc4cd537f418ac7f1f420d5
Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:
$ git pull
Usually, this works fine as long as you haven't modified anything. If you get an error, try this:
$ git stash --all
$ git pull --rebase
$ git stash pop
If you're still having problems, I suggest starting a new clone.
genesis_fix.yml:1: syntax error, unexpected ':', expecting end-of-input
`from_base58': Invalid version (RuntimeError)
Make sure the .yml
file account
item has the correct account name and WIF active key.
See my previous Ruby How To posts in: #radiator #ruby
If you're using genesis_fix, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM and SteemSpeak.
I don't believe in intellectual "property". If you do, consider genesis_fix as licensed under a Creative Commons License.