This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from CounterpartyXCP/develop
1.4.0
- Loading branch information
Showing
38 changed files
with
2,410 additions
and
2,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM counterparty/base | ||
|
||
MAINTAINER Counterparty Developers <[email protected]> | ||
|
||
# Install extra counterblock deps | ||
RUN apt-get update && apt-get -y install libjpeg8-dev libgmp-dev libzmq3-dev libxml2-dev libxslt-dev zlib1g-dev libimage-exiftool-perl libevent-dev cython | ||
|
||
# Install | ||
COPY . /counterblock | ||
WORKDIR /counterblock | ||
RUN pip3 install -r requirements.txt | ||
RUN python3 setup.py develop | ||
|
||
COPY docker/server.conf /root/.config/counterblock/server.conf | ||
COPY docker/modules.conf /root/.config/counterblock/modules.conf | ||
COPY docker/counterwallet.conf /root/.config/counterblock/counterwallet.conf | ||
COPY docker/start.sh /usr/local/bin/start.sh | ||
RUN chmod a+x /usr/local/bin/start.sh | ||
|
||
EXPOSE 4100 4101 4102 14100 14101 14102 | ||
|
||
ENTRYPOINT ["start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
[![Slack Status](http://slack.counterparty.io/badge.svg)](http://slack.counterparty.io) | ||
|
||
counterblockd | ||
counterblock | ||
============== | ||
|
||
Provides extended API functionality over `counterparty-server` (such as market information, asset history, etc). | ||
Works alongside `counterparty`. | ||
`counterblock` provides additional services to Counterwallet beyond those offered in the API provided by `counterparty-server`. It features a full-fledged JSON RPC-based API, which services Counterwallet as well as any 3rd party services which wish to use it. `counterblock` has an extensible architecture, and developers may write custom plugins for it, which are loaded dynamically and allow them to extend `counterblock` with new parsing functionality, write gateways to other currencies or services, and much more. | ||
|
||
Automatic Installation | ||
------------------------ | ||
With its set of core-plugins, `counterblock` provides a more high-level data processing, and an API that layers on top of `counterparty-server`’s API. `counterblock` generates and allows querying of data such as market and price information, trade operations, asset history, and more. It is used extensively by Counterwallet itself, and is appropriate for use by applications that require additional API-based functionality beyond the scope of what `counterparty-server` itself provides. | ||
|
||
Please see the [Setting up a Federated Node](http://counterparty.io/docs/federated_node/) guide | ||
(under the *"Node Setup"* section) for a script that will set counterblockd up for you, automatically. When prompted | ||
for the node type, choose "counterblock basic". | ||
# Installation | ||
|
||
Manual Installation (Linux Only) | ||
--------------------------------- | ||
For a simple Docker-based install of the Counterparty software stack, see [this guide](http://counterparty.io/docs/federated_node/). | ||
|
||
`sudo pip install counterblock` | ||
# Manual installation | ||
|
||
(Linux only.) First, install `mongodb` and `redis`, and have an instance of `bitcoind` (`addrindex` branch) and [`counterparty-server`](https://github.com/CounterpartyXCP/counterparty-lib) running. | ||
|
||
Then, download and install `counterblock`: | ||
|
||
``` | ||
$ git clone https://github.com/CounterpartyXCP/counterblock.git | ||
$ cd counterblock | ||
$ sudo pip3 install -r requirements.txt | ||
$ sudo python3 setup.py install | ||
``` | ||
|
||
Then, launch the daemon via the following command, with the passwords set as appropriate: | ||
|
||
``` | ||
$ counterblock --backend-password=rpc --counterparty-password=rpc server | ||
``` | ||
|
||
Further command line options are available via: | ||
|
||
* `$ counterblock --help` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import os, sys | ||
import os | ||
import sys | ||
|
||
|
||
def server_main(): | ||
from counterblock import server | ||
server.main() | ||
|
||
def armory_utxsvr_main(): | ||
from counterblock import armory_utxsvr | ||
armory_utxsvr.main() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.