Skip to content

nameone/downstream-farmer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

downstream-farmer

Master: Build Status Coverage Status Devel: Build Status Coverage Status

What is this I don't even?

downstream-farmer talks to downstream-node. In order to use it, you'll need a node up and running. downstream-node requires MySQL and a working config, but this app, downstream-farmer, will require python-dev and libcrypto++-dev to install from source.

$ sudo apt-get install python-dev libcrypto++-dev
$ git clone -b devel https://github.com/Storj/downstream-farmer.git
$ cd downstream-farmer
$ pip install -r requirements.txt .

And connect to our test node by running:

$ downstream 'http://verify.driveshare.org'

This prototype performs three simple functions. It connects to the specified downstream-node, it requests a chunk (which also gives it the first chunk challenge), and then it answers the chunk challenge.

If this is at all confusing, we're doing it as a functional test in the travis.yml file, so watch it in action on Travis-CI.

Client Functions

Connects to a downstream compatible node. Should also generate a new account token and retrieves the heartbeat for the proof of storage.

connect(url)

Queries the server for a file chunk, which in this prototype is simply a file seed for RandomIO to generate.

get_chunk()

Answers the chunk contract that was retrieved with get_chunk().

answer_challenge()

About

Client software for a Storj farmer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published