bigchaindb/bigchaindb
Rodolphe Marques c91eff70e5 Feat/960/test mongodb queries (#1030)
* Created tests to mongodb queries

Small fix to queries

* cleanup pytest markers
2017-01-10 16:49:30 +01:00
..
backend Feat/960/test mongodb queries (#1030) 2017-01-10 16:49:30 +01:00
commands Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
common Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
pipelines Simplify code. 2017-01-04 13:27:08 +01:00
web Remove blank line at end of file 2017-01-06 13:43:12 +01:00
README.md Use relative links instead of github links in src README 2016-10-27 10:02:22 +02:00
__init__.py Take env var value if set for db port 2016-12-20 20:37:28 +01:00
config_utils.py Fixed pep8 violations in bigchaindb source code 2016-11-02 09:26:05 +01:00
consensus.py Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
core.py Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
models.py Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
monitor.py Rebase/feat/586/integrate tx model (#641) 2016-09-29 10:29:41 +02:00
processes.py Changed HTTP API docs link in BANNER to https://bigchaindb.com/http-api 2016-10-14 09:49:35 +02:00
utils.py Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
version.py Bump version to 0.9.0.dev 2016-11-29 16:44:11 +01:00

README.md

Overview

A high-level description of the files and subdirectories of BigchainDB.

There are three database tables which underpin BigchainDB: backlog, where incoming transactions are held temporarily until they can be consumed; bigchain, where blocks of transactions are written permanently; and votes, where votes are written permanently. It is the votes in the votes table which must be queried to determine block validity and order. For more in-depth explanation, see the whitepaper.

Files

core.py

The Bigchain class is defined here. Most operations outlined in the whitepaper as well as database interactions are found in this file. This is the place to start if you are interested in implementing a server API, since many of these class methods concern BigchainDB interacting with the outside world.

models.py

Block, Transaction, and Asset classes are defined here. The classes mirror the block and transaction structure from the documentation, but also include methods for validation and signing.

consensus.py

Base class for consensus methods (verification of votes, blocks, and transactions). The actual logic is mostly found in transaction and block models, defined in models.py.

processes.py

Entry point for the BigchainDB process, after initialization. All subprocesses are started here: processes to handle new blocks, votes, etc.

config_utils.py

Methods for managing the configuration, including loading configuration files, automatically generating the configuration, and keeping the configuration consistent across BigchainDB instances.

monitor.py

Code for monitoring speed of various processes in BigchainDB via statsd and Grafana. See documentation.

Folders

pipelines

Structure and implementation of various subprocesses started in processes.py.

commands

Contains code for the CLI for BigchainDB.

db

Code for building the database connection, creating indexes, and other database setup tasks.