dloa / oip-daemon

0 stars 0 forks source link

OIP Daemon

To use Open Index Protocol in a decentralized/trustless way, users must run three daemons:

RPC Access to Florincoind

Make sure you've allowed RPC access from localhost, and that you're running in server mode with txindex enabled:

rpcuser=flo rpc username
rpcpassword=flo rpc password
rpcallowip=127.0.0.1
rpcallowip=192.168.0.0/16
rpcport=7313
server=1
daemon=1
txindex=1

You'll probably also want to include the following network nodes:

addnode=176.9.59.110
addnode=188.166.6.99
addnode=54.209.141.153
addnode=192.241.171.45
addnode=146.185.148.114
addnode=54.164.167.95
addnode=198.27.69.59
addnode=37.187.27.4
addnode=192.34.62.214

Install OIP Daemon

OIP Daemon is currently in a private repo, awaiting a full security audit before opening it up publicly. You can download precompiled binaries for Mac, Windows and Linux below, and if you would like to compile it yourself, just get in touch with the Alexandria team via https://chat.alexandria.io/ and make a request.

Start Florincoin Client

You can use the Florincoin-QT or florincoind clients, but the daemon is suggested as it consumes much fewer resources.

Let the blockchain fully sync, and then start up OIP Daemon.

*Note: you can download a bootstrap of the FLO blockchain here: ## Start OIP Daemon In Terminal, enter the following commands: `export F_URI=127.0.0.1:7313` Note: if you don't do this, the default will be 127.0.0.1:18322, which is Bitcoin's default RPC communication URI. `export F_USER=flo rpc username` `export F_TOKEN=flo rpc password` `./oipdaemon` You should see something like this:

   ___                     ___           _           
  / _ \ _ __   ___ _ __   |_ _|_ __   __| | _____  __
 | | | | '_ \ / _ \ '_ \   | || '_ \ / _` |/ _ \ \/ /
 | |_| | |_) |  __/ | | |  | || | | | (_| |  __/>  < 
  \___/| .__/ \___|_| |_| |___|_| |_|\__,_|\___/_/\_\
       |_|                                                                                                                                                                                                     
                                        OIP Spec: v0.4.1

opening config/config.json... done!
opening database ./db/sync89.db?cache=shared&mode=wrc... done!
creating tables and triggers if they don't exist... 
Running table query:  create oip_artifact table

Running table query:  !addcol! ArtCost
Column already added?
duplicate column name: artCost
Running table query:  !addcol! o.pubFeeUSD
Column already added?
duplicate column name: pubFeeUSD
Running table query:  !addcol! m.pubFeeUSD

Running table query:  !addcol! mrrLast24hr
Column already added?
duplicate column name: mrrLast24hr
Running table query:  !addcol! ltcUSD
Column already added?
duplicate column name: ltcUSD
Running table query:  !addcol! publisher.extraInfo
Column already added?
duplicate column name: extraInfo
Running table query:  !addcol! nsfw
Column already added?
duplicate column name: nsfw done!

daemon init successful!

Listening on port 41289

LOADED PROTOCOL: alexandria-media 0.4.1

current block chain height (rpc): 2504120
current max(block) from database: 1202999

syncing 1301121 blocks between 1203000 and 2504120
first, checking past 256 blocks for reorg... 
> no reorg found!

sync at 0.00%
sync at 0.08%
2.078433533s last 1k blocks -- 2.078434157s total time
sync at 0.15%
1.953132595s last 1k blocks -- 4.031576173s total time
sync at 0.23%
1.941965402s last 1k blocks -- 5.973547691s total time
sync at 0.31%
1.917651268s last 1k blocks -- 7.891204902s total time
sync at 0.38%
You can test that OIP Daemon is running correctly by checking your Index Summary Info local endpoint: http://localhost:41289/alexandria/v2/info