Gridcoin Rain in Python

in #utopian-io6 years ago (edited)

Introduction

#Gridcoin is a crypto-currency that uses a mixture of Proof of Stake and Proof of Work to issue the currency to network participants, however the Work is actual scientific research performed and validated on the BOINC network.
Gridcoin team members vote certain BOINC projects into a Whitelist that allows them to be rewarded with GRC.
Gridcoin Core wallet includes a method to RAIN additional GRC onto whitelisted projects.

Python Rain Tool

The Python Rain tool mirrors the core client tool, but it has slightly different features. The major difference is that it is not bound to the Gridcoin Whitelist, any BOINC project that provides an XML API of Gridcoin Team CPIDs and RACs can be included in the Python Rain tool.
This requires that the Python Rain tool allows RAIN to be made by either BOINC RAC (Recent Average Credit) or Gridcoin Magnitude, which is not available in the Gridcoin Core client.
The Python Rain tool makes a 'sendmany' transaction, and proportionally divides the total GRC the RAINor wishes to send between Gridcoin Team members with more than 0 Magnitude or RAC.

Recent Developments

There has been an outstanding issue that on Windows clients the gridcoinresearchd daemon has not been accepting CLI commands, the Python RAIN script has been updated to use the Gridcoin internal JSON_RPC server which is more reliable. This also overcomes a Windows CLI byte limit, that meant the sendmany command had to be broken into smaller chunks, the JSON_RPC can accept a much longer string, this reduces the cost of RAINing and reduces the compexity of the Python code.

Commit: https://github.com/Scalextrix/GRCNN/commit/457e6292acb5a3a90e1f72250374b012411b4445

ToDos:

World Community Grid XML URL has become broken
DrugDiscovery@Home XML URL needs adding

Warning:

It is strongly advised to use a separate wallet.dat file to use for Python Rain, if you make a mistake or there is an error in any of the feeds, you could spend more than the intended amount of GRC!!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

This seems like a good solution for creating a greylist. What if we created a website that converted bitcoin/eth into GRC for raining upon a chosen boinc project. This would function as a way to encourage computation onto projects not formally on the whitelist.

Sure go for it, totally open source so be creative with it :)

Hey @scalextrix I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by scalextrix from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP. Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 68034.95
ETH 3846.82
USDT 1.00
SBD 3.66