Browsed by
Tag: gridcoin

How to enable RPC in your Gridcoin Wallet?

How to enable RPC in your Gridcoin Wallet?

Hi everyone,

Today, I want to tell you how to enable Gridcoin’s RPC protocol to use apps like Gridcoin Remote on Android phones. This allows you to check stuff like your Gridcoin balance, magnitude, CPID, and more!

Here’s how you can enable it. There are 2 options:

Option 1: Gridcoin Remote Configuration Tool for Windows

GRC Remote

Download the Gridcoin Remote Configuration Tool for Windows available in Github. This tool will let you specify the IP Addresses allowed to connect, the Port Number, Username and Password, and it also has a tick box in case you decide to disable RPC access.

You can download this tool on GitHub: https://github.com/moisesmcardona/GridcoinRemoteConfigurationTool/releases

Option 2: Edit gridcoinresearch.conf manually

To edit the gridcoinresearch.conf manually you’ll need to locate that file. It is usually stored in “C:\Users\Your Username\AppData\Roaming\GridcoinResearch”, where “Your Username” is your Windows account folder.
Once you find the gridcoinresearch.conf file, open it in your favorite text editor.

You’ll need to add or edit the following lines:

server=1
rpcallowip=
rpcport=
rpcuser=yourusername
rpcpassword=yourpassword

Change the values after the = to the values you’d like to use. An example of how the lines should look are below:

server=1
rpcallowip=192.168.1.*
rpcport=9332
rpcuser=myusername
rpcpassword=mypassword

Now, save your config file and restart the Gridcoin Wallet. Once it loads, you can connect to it by using the Gridcoin Remote app.

Please be careful with RPC. Not only will Gridcoin Remote work, but anyone with additional knowledge may control your wallet. This is why it’s recommended to only allow IP Addresses you trust, and be careful if you expose the port to the public in your router’s port forwarding page. It’s better if you use an internal VPN. DD-WRT provides such simple VPN that you can connect to and use Gridcoin’s RPC functionality while away. This way, you don’t need to expose the port to the public.

Hope these steps were useful!

Improvements to my Finished BOINC Tasks section in my website and today’s Cosmology@Home rank

Improvements to my Finished BOINC Tasks section in my website and today’s Cosmology@Home rank

Hi everyone,

Today afternoon, I worked on setting up a sorting option allowing you to sort my finished BOINC tasks by date and by host, or one of them in the Finished BOINC Tasks section of my website.

The result looks like this:

BOINC Finished Tasks 1

You can, for example, select the tasks that’s been processed today, for my AMD Ryzen machine, and you’ll get this:

BOINC Finished Tasks 2

Note that I’m not an expert at HTML or CSS, but I’ve managed to bring this functionality to my site for all of you to enjoy.

This new code is available at the BOINCToWeb Repo that you can see by clicking here.

Position #8 at the Cosmology@Home challenge!

That’s right! I’m already at position #8 in the Cosmology@Home challenge:

Cosmology@Home Rank

And that’s why I also made the Finished BOINC Tasks section at my website, so everyone can keep track of my completed BOINC Tasks 😁, as I sometimes get asked what hardware I use to crunch tasks that allow me to go up in the leaderboards 🙂.

That’s all!

New Gridcoin BOINC Challenge: Cosmology@Home – Installing VirtualBox and configuring the project

New Gridcoin BOINC Challenge: Cosmology@Home – Installing VirtualBox and configuring the project

Hi everyone,

Today, a new BOINC challenge for the project Cosmology@Home started. This challenge was issued by Team Gridcoin:

Cosmology@Home Challenge 1

I went ahead and added my machines to this project, only to realize I need VirtualBox installed:

BOINC Virtualbox not installed

So in order to crunch tasks for this project, I went to install VirtualBox as well as configure the project. Here I detail you the installation and optional configuration process, which is really simple:

Installing VirtualBox

1. First, we go to the VirtualBox Website, https://virtualbox.org and click the Download VirtualBox button:

Downloading Virtualbox 1

2. Because I’m using Windows, I’ll download the Windows version:

Downloading Virtualbox 2

3. We’ll click Save:

Downloading Virtualbox 3

4. And after the download finishes, we will click on Run:

Downloading Virtualbox 4

5. We press Next:

Installing Virtualbox 1

6. We’ll leave this as it is and press Next:

Installing Virtualbox 2

7. We’ll press Next again:

Installing Virtualbox 3

8. Now, we’ll click Yes:

Installing Virtualbox 4

9. Now on Install:

Installing Virtualbox 5

10. It will ask us to install some driver software. We’ll click Install:

Installing Virtualbox 6

11. When the installation finishes, uncheck the Start VirtualBox checkbox and press Finish:

Installing Virtualbox 7

Configuring the project

I recommend doing these steps if you have a really bad lag or unresponsiveness in your PC. I had to apply a customized version of the configuration posted in the Cosmology@Home FAQ section as the VM would get stuck in my AMD Ryzen machine, so I configured it to use half the PC cores.

Here’s how to configure it:

1. Go to the Cosmology@Home Limit CPU section in the FAQ and copy and paste the app_config.xml template:

Configuring Cosmology@Home 1

2. Open your favorite Text Editor and copy the contents you copied recently. I used Notepad++ here. Then, change the <avg_ncpus> section to specify the amount of threads you want the VM to use. I first limited it to 4 cores and kept going up until I could maximize my PC resources while keeping it stable. In my Intel machine, I tried this configuration to test it:

Configuring Cosmology@Home 2

3. Save the config in the Cosmology@Home folder. If you installed BOINC and left the directories at their default location, then this directory/folder is C:\ProgramData\BOINC\projects\www.cosmologyathome.org. Save the file as app_config.xml:

Configuring Cosmology@Home 3

4. You’ll see the syntax is highlighted. It should be like this meaning it saved as an XML file:

Configuring Cosmology@Home 4

And that’s it! We’ve finished the configuration.

Testing the installation and configuration.

Now, we need to launch BOINC and perform a project update. For this, exit BOINC if it is already running and launch it again. Then select the Cosmology@Home project and press Update:

Running Cosmology@Home 1

You should see in the log that it is downloading tasks:

Running Cosmology@Home 3

And that they are running:

Running Cosmology@Home 3

You can also check VirtualBox and see that the task VM is running:

Running Cosmology@Home 4

And here’s how the CPU of one of my Intel machines looks like:

CPU Threads used by Cosmology@Home

Eventually, I upped the CPU threads to 8 so that it can use every resource in it. The only exception is my AMD Ryzen 7 2700X machine which is limited to 8 threads out of its 16.

If you followed this guide and are running Cosmology@Home tasks, congrats! And I wish you luck in the competition!

I’m at position #27 right now 😁:

Cosmology@Home Challenge Position 27

As a bonus, I made a section on my personal website where you can see the tasks I’ve finished processing:

BOINC Finished Tasks 1

This required some coding in my BOINCToWeb software I wrote to accomplish this. I’ll talk about the code changes and additions in another post.

I also remember all of you that you can see the tasks I’m crunching by clicking here:

BOINC Running Tasks

That’s all!

Gridcoin New Users Report generator fixed for the LHC@Home project

Gridcoin New Users Report generator fixed for the LHC@Home project

Hi everyone,

In the past few days, I changed the URL of the stats for the LHC@Home project. They moved the links and the previous URL was no longer working. This has been fixed and LHC@Home stats are now being included in the New User Report Generator:

Gridcoin New Users Report generator fixed for the LHC@Home project

Additionally, There’s a problem that’s out of my control where the SETI@Home files seems to be corrupted or something. The software complains that the <users> tag in the XML file seems to be bad. I suspect the files are updated at irregular times and the software is fetching an incomplete file, or the files are incorrectly being generated. Either case, I just wanted to mention that this is the reason why SETI@Home is sometimes not included in the report.

Happy BOINC mining everyone!

Click here to go to the Report Generator repo, happily developed in the Visual Basic .NET language 🙂

Update to the Gridcoin New User Report Generator – February 14, 2018

Update to the Gridcoin New User Report Generator – February 14, 2018

Hi everyone,

Today, I made an update to the Gridcoin New User Report Generator, which allows the software to be scheduled in order to generate the reports.

Basically, what this means is that the GUI (Graphical User Interface) can be used to select the projects we want to include in the report and also generate the report, but also means that we can just use the terminal, pass the “-s” argument, and it will generate the report taking into account the projects we’ve selected in the GUI.

The commit made today simply adds an optional parameter called Silent:

Update to the Gridcoin New User Report Generator - February 14, 2018 - 1

Which will be True if we pass the -s argument in a terminal window:

Update to the Gridcoin New User Report Generator - February 14, 2018 - 2

That will call the software Main Routine and generate the report.

In the PublishReport function, if it has the Silent parameter as False, it will not show us any message when the report gets published unless an error occurs. This is why I call this parameter Silent, since everything happens in the background and without user interaction:

Update to the Gridcoin New User Report Generator - February 14, 2018 - 3

The idea for this is that it can be scheduled using the Windows Task Scheduler tool so that reports gets generated every day.

That’s all for this post!

Github Repository.

A very simple commit done today to the Gridcoin New User Report Generator software

A very simple commit done today to the Gridcoin New User Report Generator software

Hi everyone,

Today, I was looking at the Gridcoin New User Report Generator Software code and I did a simple mistake with one variable.

Turns out I had a StreamReader object with the name MySQLFile in the GenerateReport.vb module. That object should have been named AccountFile as that StreamReader reads the account information to which the report will get posted. So I went and fixed it.

The commit I made today is the following:

Gridcoin bug fix

Of course, this doesn’t affect the software functionality, but it does make the code make more sense.

Also, I removed an unused Imports.

That’s all!

Gridcoin Snapshot Generator r5 released!

Gridcoin Snapshot Generator r5 released!

Hi everyone,

Today, I released Gridcoin Snapshot Generator r5.

For those who are new to this tool, this is a tool that creates a snapshot of the Gridcoin Blockchain. The software works as follows:

  1. It will first close the wallet properly to prevent corruption.
  2. It will launch 7zip and compress the txleveldb and the blk0001.dat file to either ZIP or 7z format.
  3. Optionally, create MD5, SHA256 and/or SHA512 checksums.
  4. Optionally, upload the snapshot and its checksums (if created) to Google Drive.
  5. Once the compression is finished, it will launch the wallet again.

With this release, it is now possible to select the date and time format, as seen in the picture below:

Gridcoin Snapshot Generator r5

I hope you like this new version!!

Happily written in VB.NET.

Gridcoin Snapshot Generator r4

Gridcoin Snapshot Generator r4

Hi everyone,

Today I released a small update to the Gridcoin Snapshot Generator.

This update only affects the filename and the archive format. What I did is that when you save a file as 7z, the 7z RadioButton will automatically be selected:

Gridcoin Snapshot Generator r4 - 7zip

If you save the snapshot as ZIP, the ZIP RadioButton will be selected:

Gridcoin Snapshot Generator r4 - Zip

The same applies if you change the snapshot format using the RadioButtons instead of the filename. If you choose the ZIP RadioButton, the filename will change to .zip. If you choose the 7z RadioButton, the filename will change to .7z.

That’s the only change with this release. Updating is optional, as the Snapshot creation process is not affected by this change.

Gridcoin Snapshot Generator Release 3 and Gridcoin Snapshot Restore Release 1 tools

Gridcoin Snapshot Generator Release 3 and Gridcoin Snapshot Restore Release 1 tools

Hi everyone,

Today morning, I made a post announcing the release 1 of my Gridcoin Snapshot Generator Tool. Now, after still working with the tool, I made significant additions and changes. This is how Release 3 of this tool looks:

Gridcoin Snapshot Generator r3

Let’s talk about the improvements and new features:

  • Choose between ZIP and 7zip formats to create the snapshot
  • Now, you can create MD5, SHA256 and/or SHA512 hashes to check the snapshot integrity
  • Upload the snapshot and the checksums to Google Drive!

How does the tool works?

  1. The software will safely close the wallet if it is already running.
  2. The snapshot will be created in the specified format (ZIP or 7z)
  3. If desired, checksums will be created
  4. If desired, the snapshot and the checksums will be uploaded to Google Drive
  5. The wallet will be launched automatically

When the snapshot is created, and optionally the checksums are generated, if you chose to upload the snapshot to Google Drive, you can see the upload progress. You can also choose to which Google Drive folder the snapshot and the checksums will be uploaded.

As you may know, World Backup Day was yesterday, and backing up your Gridcoin Blockchain is a good way to prevent downloading the entire chain again in the future in case you fork or in case the chain becomes corrupted. A simple restore can save a lot of time and you can start staking blocks faster.

In order to restore the Snapshot, you can use the Gridcoin Snapshot Restore tool:

Gridcoin Snapshot Restore r1

Simply, browse for the ZIP or 7z Snapshot file and press the Restore Snapshot button.

In the restore of the Snapshot, if the Gridcoin Wallet is running, the softwares will safely close the wallet before continuing. Once the restore finishes, the Gridcoin Wallet will launch again.

Both tools are written in Visual Basic .NET using Visual Studio 2017, and both tools are Open Source. Check out the Source Code at the following links:
Gridcoin Snapshot Generator
Gridcoin Snapshot Restore

Download the tools at the following links:
Gridcoin Snapshot Generator
Gridcoin Snapshot Restore

I really hope all of you find these tools incredibly useful and remember to backup often!!!

Gridcoin Snapshot Generator – Release 1

Gridcoin Snapshot Generator – Release 1

Hi everyone,

Today, I wrote a new tool that aims to create Gridcoin Snapshots automatically.

Gridcoin Snapshot Generator r1

The tool is very easy to use. Just specify the filename for the snapshot and press the “Create Snapshot” button. You can also specify the amount of hours to automate this process for you.

The software works as follows:

  1. It will first close the wallet properly to prevent corruption.
  2. It will launch 7zip and compress the txleveldb and the blk0001.dat file
  3. Once the compression is finished, it will launch the wallet again.

And that’s how easy it is to use this tool 🙂

The snapshot format is as follows:
Snapshot Name Year-Month-Day Hour-Minutes-Seconds AM/PM.7z

The requisites to use this tool is to have 7zip installed in the default location at C:\Program Files\7-zip.

The tool is Open Source and you can check out the code here.

To download the tool, go here.

Hope you enjoy it!