-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup README, comments in application.yml.sample
- Loading branch information
Showing
6 changed files
with
60 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,30 +4,34 @@ This application lets you browse the bitcoin blockchain database generated by a | |
|
||
A demo instance is running on http://webbtc.com. | ||
|
||
|
||
== Requirements | ||
|
||
* ruby 1.9.3 | ||
* ruby 2.1.5 | ||
* rubygems, bundler | ||
* database adapter | ||
* database adapter (postgres recommended) | ||
|
||
== Setup | ||
|
||
You need a postgres blockchain database built by bitcoin-ruby, for example | ||
== Blockchain Database | ||
|
||
bitcoin_node -n testnet3 -s archive::sqlite://test.db | ||
To run your own block_browser instance, you need a bitcoin-ruby-blockchain[http://github.com/mhanne/bitcoin-ruby-blockchain] database. Use bitcoin-ruby-node[http://github.com/mhanne/bitcoin-ruby-node] to build it: | ||
|
||
Copy +config/application.yml.sample+ to +config/application.yml+ and adjust it to your needs. | ||
bitcoin_node -n testnet3 -s archive::postgres:/bitcoin | ||
|
||
Also, enable the corresponding db library in the +Gemfile+: | ||
(Or grab a dump from http://dumps.webbtc.com to speed up the import) | ||
|
||
|
||
== Setup | ||
|
||
# gem 'sequel' | ||
gem 'sqlite3' | ||
# gem 'pg' | ||
Copy +config/application.yml.sample+ to +config/application.yml+ and adjust it to your needs. | ||
|
||
Then install the required gems | ||
|
||
bundle install | ||
|
||
|
||
== Starting the server | ||
|
||
And start the server | ||
|
||
rails s | ||
|
@@ -36,6 +40,9 @@ Start the websocket server that connects to the bitcoin node and pushes new bloc | |
|
||
rails runner lib/websocket.rb | ||
|
||
|
||
== Collect stats / generate graphs | ||
|
||
To collect the statistics used on /stats page | ||
|
||
rails runner lib/stats.rb | ||
|
@@ -44,6 +51,7 @@ To generate the graphs for /stats page | |
|
||
rails runner lib/graph.rb | ||
|
||
|
||
== License | ||
|
||
Copyright (c) 2011-2015 Marius Hanne <[email protected]> | ||
|
@@ -57,4 +65,4 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
A copy of the license is included in {file:COPYING}, see | ||
http://www.gnu.org/licenses/ for more details. | ||
http://www.gnu.org/licenses/ for more details. |
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
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 |
---|---|---|
@@ -1,19 +1,49 @@ | ||
# the network to use ("bitcoin", "namecoin", "testnet3", etc.) | ||
network: bitcoin | ||
|
||
# blockchain database (has to match the "network" setting) | ||
database: "archive::postgres:/bitcoin" | ||
|
||
# how to connect to the "command socket" of the bitcoin-ruby-node | ||
command: "127.0.0.1:9999" | ||
domain: "localhost" | ||
|
||
# where the websocket server will be started / reachable by the clients | ||
websocket: "127.0.0.1:8000" | ||
database: "archive::postgres:/bitcoin" | ||
donate: 1NqPo22Jhthd5Suget1rgs9EEoFGuDTZ9S | ||
|
||
|
||
# page processing timeout | ||
timeout: 30 | ||
|
||
# don't even try to display addresses with more outputs than this | ||
max_addr_txouts: 100 | ||
|
||
|
||
# whether to display indexed p2sh script types | ||
# (this also needs to be enabled in the bitcoin node / blockchain database!) | ||
index_p2sh_scripts: true | ||
|
||
# number of entries displayed in /scripts or /p2sh_scripts | ||
script_list_limit: 20 | ||
|
||
|
||
# relay transactions to this many nodes | ||
relay_send: 3 | ||
|
||
# default time to wait for relay propagation estimate | ||
relay_wait_default: 3 | ||
|
||
# max time to wait for relay propagation estimate | ||
relay_wait_max: 10 | ||
relay_send: 3 | ||
|
||
script_list_limit: 20 | ||
index_p2sh_scripts: true # disable for networks without p2sh support | ||
|
||
# the domain of this instance (only used in /api documentation for now, | ||
# but might become important in relation to the "networks" setting) | ||
domain: "localhost" | ||
|
||
# links to other instances for different networks | ||
networks: | ||
bitcoin: "http://webbtc.com" | ||
namecoin: "http://namecoin.webbtc.com" | ||
namecoin: "http://namecoin.webbtc.com" | ||
|
||
# donation address displayed in the footer | ||
donate: 1NqPo22Jhthd5Suget1rgs9EEoFGuDTZ9S |