bigchaindb/bigchaindb
vrde 57d4a8e895
Merge pull request #1928 from bigchaindb/feat/integrate-event-stream
Integrate event stream api
2017-12-20 16:06:16 +01:00
..
backend Expand abbrevation "txn" to transaction 2017-12-13 11:05:28 +05:30
commands Merge branch 'master' into tendermint 2017-11-29 17:18:00 +01:00
common Fixes #1891 2017-12-05 19:38:52 +01:00
log Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
pipelines Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
tendermint Merge pull request #1928 from bigchaindb/feat/integrate-event-stream 2017-12-20 16:06:16 +01:00
web Merge branch 'master' into tendermint 2017-11-30 18:17:36 +01:00
README.md Server docs: Removed the old 'Topic Guides' section 2017-03-07 11:43:49 +01:00
__init__.py Flat UTXO collection and first integration with Tendermint™ (#1822) 2017-11-10 17:53:57 +01:00
config_utils.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
consensus.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
core.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
events.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
exceptions.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +01:00
fastquery.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
models.py Merge branch 'master' into tendermint 2017-12-06 16:59:26 +01:00
processes.py Provide log server port as config paramter 2017-10-23 09:17:58 +05:30
utils.py Pre commit styling (#1914) 2017-11-30 15:04:14 +01:00
version.py Updated version.py for 1.4.0.dev 2017-11-21 19:59:09 +01:00
voting.py Pre commit styling (#1914) 2017-11-30 15:04:14 +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.