Commit Graph

50 Commits

Author SHA1 Message Date
David Dashyan 9e99c024d3
Replace headers (#2683)
Signed-off-by: David Dashyan <mail@davie.li>
2020-04-06 11:52:18 +02:00
Troy McConaghy 39be7a2fdf
Renamed "consensus" to "validation" where relevant (#2561) 2018-09-20 17:17:33 +02:00
Troy McConaghy abdd23f5a6 Problem: Source files contain no license info (#2455)
* Problem: Source files contain no license info

Solution: Add comments with SPDX license info to source files

* Python 3 files don't need # -*- coding: utf-8 -*-
2018-08-16 12:31:32 +02:00
Muawia Khan c3f5e2a654 Problem: It is cumbersome to manage BigchainDB and Tendermint processes (#2410).
* Introduce a Monit-based setup for managing processes. Add the corresponding section to the network setup guide.
2018-07-27 17:33:55 +02:00
Muawia Khan 1bad851e07
Problem: Tendermint configuration not present in BigchainDB config (#2342)
* Problem: Tendermint configuration not present in BigchainDB config

* Handle tendermint configurations properly

- Update docs

* Nitpick

* Missed some conflicts

* Make changes in tendermint/lib.py instead of deprecated core.py

- Also remove redundant info from docs about default values

* Fix docsserver automethod
2018-06-29 18:45:22 +05:00
vrde 8d589d0181
Problem: we don't have acceptance tests (#2216)
Solution: have a simple way to start a node and run scripts against it.
2018-04-30 14:43:39 +02:00
Katha e377fb57af
Pre commit styling (#1914)
* run pre-commit and fix errors

* mention pre-commit in our guides
2017-11-30 15:04:14 +01:00
vrde 21a7da1c9d
Plugins can subscribe to specific events 2017-08-08 11:28:35 +02:00
vrde 8d72421d7c
Add PubSub 2017-08-08 11:28:35 +02:00
vrde 3995e22d4a Fail if config file not found 2017-05-18 17:43:44 +02:00
Brett Sun f549b00813 Add tests for setting log-level from CLI 2017-03-21 11:12:46 +01:00
Scott Sadler 0d9881fc23 style fix 2017-02-22 14:09:12 +01:00
tymlez 750304b575 resolve travis errors 2017-01-26 18:36:38 +00:00
tymlez 78bd1ecd96 consensus plugin 2017-01-24 09:12:16 +00:00
Christian Gärtner 078d018395 Fixed pep8 violations in bigchaindb source code 2016-11-02 09:26:05 +01:00
Sylvain Bellemare ea9dfaf1e5 Replace bigchaindb_common pkg by bigchaindb.common 2016-10-24 17:01:43 +02:00
troymc 6ef3f9943c Changed it’s to it's in 2 places 2016-10-17 14:49:21 +02:00
troymc 4c6d97ec4a Fixed the docstring in config_utils.py 2016-10-14 14:53:44 +02:00
Sylvain Bellemare 50b0b3cef2 Rebase/feat/586/integrate tx model (#641)
* Adjust imports to bigchaindb_common

* Adjust get_spent function signature

* Adjust block serialization

* Fix BigchainApi Test

* Fix TestTransactionValidation tests

* Fix TestBlockValidation tests

* WIP: TestMultipleInputs

* Adjust tests to tx-model interface changes

- Fix old tests
- Fix tests in TestMultipleInputs class

* Remove fulfillment message tests

* Fix TransactionMalleability tests

* Remove Cryptoconditions tests

* Remove create_transaction

* Remove signing logic

* Remove consensus plugin

* Fix block_creation pipeline

* Fix election pipeline

* Replace some util functions with bdb_common ones

- timestamp ==> gen_timestamp
- serialize.

* Implement Block model

* Simplify function signatures for vote functions

Change parameter interface for the following functions:

- has_previous_vote
- verify_vote_signature
- block_election_status

so that they take a block's id and voters instead of a fake block.

* Integrate Block and Transaction model

* Fix leftover tests and cleanup conftest

* Add bigchaindb-common to install_requires

* Delete transactions after block is written (#609)

* delete transactions after block is written

* cleanup transaction_exists

* check for duplicate transactions

* delete invalid tx from backlog

* test duplicate transaction

* Remove dead code

* Test processes.py

* Test invalid tx in on server

* Fix tests for core.py

* Fix models tests

* Test commands main fn

* Add final coverage to vote pipeline

* Add more tests to voting pipeline

* Remove consensus plugin docs and misc

* Post rebase fixes

* Fix rebase mess

* Remove extra blank line

* Improve docstring

* Remove comment

handled in bigchaindb/cryptoconditions#27;
see https://github.com/bigchaindb/cryptoconditions/issues/27

* Fix block serialization in block creation

* Add signed_ prefix to transfer_tx

* Improve docs

* Add library documentation page on pipelines

* PR feedback for models.py

* Impr. readability of get_last_voted_block

* Use dict comprehension

* Add docker-compose file to build and serve docs

locally for development purposes

* Change private_key for signing_key

* Improve docstrings

* Remove consensus docs

* Document new consensus module

* Create different transactions for the block

* Cleanup variable names in block.py

* Create different transactions for the block

* Cleanup variable names in block.py
2016-09-29 10:29:41 +02:00
David Gasparian 6baa9b479a Changed config parse exception text 2016-08-18 22:19:22 +04:00
David Gasparian 1b33a43b77 Make file config to handle only JSON errors 2016-08-15 19:52:30 +04:00
David Gasparian 2b97a93667 Merge remote-tracking branch 'upstream/master' into bug/419/config-syntax-error-pretty-message 2016-08-07 23:28:22 +04:00
David Gasparian 3f53e67c65 Add some exception handling to file_config() config loader 2016-08-07 23:23:40 +04:00
David Gasparian 711940af67 Make write_config() to output indented JSON into file 2016-08-05 12:41:03 +04:00
Sylvain Bellemare 42133a8022 Fix inconsistent documented parameter name 2016-07-19 12:09:22 +02:00
Rodolphe Marques 30d7185c38 Change config precedence so that env variables can override config.
Added a method to programmatically update the config
Created tests
2016-06-21 13:19:02 +02:00
vrde ee2fa053d9
Add lru_cache to load_consensus_plugin 2016-05-11 16:25:59 +02:00
vrde f5da2af872
Remove smelly code 2016-04-28 15:46:33 +02:00
vrde f9c609ff0d
Add env variables to default config 2016-04-26 03:24:56 +02:00
vrde d9da8dc17c
Set logging level for requests to WARNING 2016-04-21 16:16:55 +02:00
troymc 4bfad0bbbc Minor formatting changes suggested by @r-marques 2016-04-18 16:08:25 +02:00
troymc 21d234a1eb Improved docstrings + minor changes in config_utils.py 2016-04-18 11:07:53 +02:00
troymc 53196c5b8c Renamed dict_config() to set_config() 2016-04-14 10:55:07 +02:00
troymc d0770da51d Edited the dict_config() docstring 2016-04-14 09:56:59 +02:00
troymc 29f3327271 Add docstring to update() in config_utils.py 2016-04-14 09:25:23 +02:00
troymc c168c5a5a1 default config file is now .bigchaindb 2016-04-13 11:13:10 +02:00
vrde 22923ee9d3
Force a config reset before every test 2016-04-12 16:23:09 +02:00
vrde 32e08b7c63
Remove useless func 2016-04-08 10:14:14 +02:00
vrde 1ddfa2becb
Add explicit tests for update_types 2016-04-07 18:06:04 +02:00
vrde 4b32e8e01a
Use autoconfigure on every command 2016-04-06 16:15:17 +02:00
vrde 5864c34115 Remove redundant documentation 2016-03-31 11:50:48 +02:00
vrde 75a4bf65dd Remove reference to command line params 2016-03-31 11:44:33 +02:00
vrde 804365db24 Improve config, tests and docs
Add better support to env variables.
2016-03-31 11:37:09 +02:00
vrde e4d3915533 Add type conversion and docs 2016-03-24 01:41:00 +01:00
Matt Smith 3d50459b84 Corrected plugin group name in comments 2016-03-14 20:02:18 -07:00
Matt Smith a5243e43f6 This large (sorry) commit
1. switches from a composable plugin model to a single-plugin model
2. switches class methods to static methods in the BaseConsensusRules class
3. adds create_transaction, sign_transaction, and verify_transaction to
the plugin API

TODO: If we adopt this model, all references in e.g. client.py to util
methods like `sign_tx` need to be routed through the plugin methods, and
possibly need to be added to the plugin interface.
2016-03-08 18:33:31 -08:00
Matt Smith 14b71537d6 Made AbstractConsensusRules use python's abc and enforcing that ConsensusRules plugins subclass it 2016-03-08 18:32:25 -08:00
Matt Smith 8a9030e5c0 Added a simple plugin system for consensus rules using setuputils entry_points 2016-02-29 18:38:33 -08:00
Sylvain Bellemare e15d4ce39c Fix some config issues for docker-compose 2016-02-15 14:42:15 +01:00
Wrigley the Buffalo 841cabe8c6 Add code, have fun! 2016-02-10 19:55:33 +01:00