bigchaindb/bigchaindb
Sylvain Bellemare 8d54d2ea4b Increase version for patch release v1.0.1 2017-07-13 12:13:55 +02:00
..
backend Add the missing table asset in backend.schema 2017-07-13 12:11:26 +02:00
commands Allow scheme configuration for ws-server 2017-06-16 09:55:46 +02:00
common MongoDB socket timeout to handle master re-election (#1638) 2017-07-13 12:11:26 +02:00
log Set error log file according to user given setting 2017-04-18 16:21:02 +02:00
pipelines Do not allow duplicate GENESIS block creation - #1556 (#1612) 2017-07-03 17:21:15 +02:00
web Add middleware to strip content-type headers from GETs 2017-07-04 14:01:56 +02:00
README.md Server docs: Removed the old 'Topic Guides' section 2017-03-07 11:43:49 +01:00
__init__.py Allow scheme configuration for ws-server 2017-06-16 09:55:46 +02:00
config_utils.py Fail if config file not found 2017-05-18 17:43:44 +02:00
consensus.py move voting logic out of block_election_status 2017-02-23 21:53:12 +01:00
core.py Rename unspent -> spent in outputs endpoint 2017-06-16 10:31:46 +02:00
events.py cleanup code 2017-04-07 08:42:22 +02:00
exceptions.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +01:00
fastquery.py Remove unnecessary output_has_owner method. 2017-07-03 14:30:19 +02:00
models.py Merge remote-tracking branch 'origin/master' into pipeline-fast-transaction 2017-05-30 11:18:46 +02:00
processes.py Add WebSocket server 2017-04-07 09:16:22 +02:00
utils.py Remove unnecessary output_has_owner method. 2017-07-03 14:30:19 +02:00
version.py Increase version for patch release v1.0.1 2017-07-13 12:13:55 +02:00
voting.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +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.

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.