27 Commits

Author SHA1 Message Date
David Gasparian
3f53e67c65 Add some exception handling to file_config() config loader 2016-08-07 23:23:40 +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