Giter Site home page Giter Site logo

block_browser's Introduction

This application lets you browse the bitcoin blockchain database generated by a bitcoin-ruby node.

A demo instance is running on webbtc.com.

Requirements

  • ruby 2.1.5

  • rubygems, bundler

  • database adapter (postgres recommended)

Blockchain Database

To run your own block_browser instance, you need a bitcoin-ruby-blockchain database. Use bitcoin-ruby-node to build it:

bitcoin_node -n testnet3 -s archive::postgres:/bitcoin

(Or grab a dump from dumps.webbtc.com to speed up the import)

Setup

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

Start the websocket server that connects to the bitcoin node and pushes new blocks to clients

rails runner lib/websocket.rb

Collect stats / generate graphs

To collect the statistics used on /stats page

rails runner lib/stats.rb

To generate the graphs for /stats page

rails runner lib/graph.rb

License

Copyright © 2011-2015 Marius Hanne <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, 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 www.gnu.org/licenses/ for more details.

block_browser's People

Contributors

deppbot avatar mhanne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

block_browser's Issues

PGP signed responses

Suggested by Jeremy_Rand as a nice-to-have especially for namecoin name lookups.

test.namecoin.webbtc.com displays incorrect addresses

jonasbits reported this error at a freenet #namecoin-meeting. The base58 prefix for NMC testnet addresses should be the same as in BTC testnet addresses.
test.namecoin.webbtc.com uses a different prefix. This results in incorrect NMC testnet addresses. Example:
http://testnet.explorer.namecoin.info/tx/b56857fded39d94d7147e9c8643101882f77af1acbf1f3fe077d2f305762bfc2 shows the target address correctly.
https://test.namecoin.webbtc.com/tx/b56857fded39d94d7147e9c8643101882f77af1acbf1f3fe077d2f305762bfc2 shows an incorrect address.

A few transactions missing

Websocket updates on all pages

Currently, the websocket is only used to push new blocks to the front page. It should also update other pages accordingly:

  • block view (add link to next block)
  • tx view (update spent outputs)
  • address view (add new transactions)

HTTPS

Enable SSL support, at least with a self-signed certificate and without mandatory redirects

webbtc.com

Sorry maybe this is not the right place to ask this but i think you're in charge of the site http://webbtc.com.

From yesterday the site is not working and i was using your api because is the most completed and easy i found, and i'm curious is the site is gonna be back any soon ?

Thanks and sorry again

Failing to import dumps

A user reported problems when importing a dump.

I ran into an error when trying to load it in both 9.3 and 9.4 postgres. The import runs fine for maybe 5 minutes, then fails on error
 ERROR: missing data for column “type”

Could it be an issue with postgres > 9.1?

Make namecoin rules part of the actual block validation.

Currently, namecoin rules are running "alongside" the regular validations and build the name database essentially separately. They don't trigger validation errors when name rules aren't matched, they just fail to register the name into the DB.

Error relaying txs

After the change in the CommandHandler API, the relay_tx has been broken.

handle_relay_tx expects the params to be a hash, but they are passed in as an array with the hash as the only item.

Complete address hidden behind search text form

Just a "cosmetical" thing: When searching for an addres, the result page "hide" the address behind the "search" text.
As you can see on screenshot, the address looks "cutted", but if you double click it, the address is shown complete on the webpage

webbtc_hidden_address

Move DB dumps

DB dumps are temporarily disabled because disk space is running low... Since there's no reason for the dumps to live on the expensive SSD, they should move to a different host with more space.

Time should be displayed as UTC

(Possibly related to commit dd0dced)
The "Time" column of the webbtc instance shows the timestamps as CET/CEST. This leads to the confusing situation that it looks as if Namecoin block 254714 was found 46 mins. after block 254715 (they were mined around the switch from CEST to CET).
UTC avoids these problems. Furthermore, UTC makes it easier to match the blockchain data with other events, e.g. a large mining pool going offline/online.

error not thrown for non-minimally encoded stack integers

hi, just running the following script in webbtc.com/scripts and its not throwing an error when it should be:

input: ff0080
output: OP_NEGATE OP_NEGATE

the middle 0x00 is redundant, and since OP_NEGATE calls CScriptNum with fRequireMinimal the core client would throw an error here. it would be good to at least put a warning so that others will be aware that this script will not evaluate correctly in production.

also, thanks for the webbtc script tool - i have found it very useful!

cheers,
peter

webbtc.com_database dump

Hi, I was trying to update the Bitcoin blockchain data in my PC with the latest database dump from the website. But the datebase dump hasn't seemed to work for more than a week now. Do you have any idea when it will back on again? Thanks a lot in advance!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.