Commit Graph

46 Commits

Author SHA1 Message Date
Ahmed Muawia Khan 1bbbb903b4 Sync kyber-master with 1.3
- Create new branch 1.3-kyber
- Working travis tests
- Fix and inconsistencies
2018-02-20 17:19:07 +01:00
kansi 0c0d3049f2 Provide log server port as config paramter 2017-10-23 09:17:58 +05:30
Krish 3ec4153375 Support for advertised host, port, scheme for Websockets (#1703)
* Support for advertised host, port, scheme for Websockets

* Update docs

* Add a docstring

* Set env vars in Dockerfile-dev too
2017-08-08 12:04:58 +02:00
tim bd0d79d399 Allow scheme configuration for ws-server 2017-06-16 09:55:46 +02:00
Krish f35f01f1cb Add SSL support for MongoDB connections (#1510)
* Add SSL support for MongoDB connections

* Tests for TLS connectivity and other fixes

* Add test for ssl parameters

* Add test for AuthenticationError

* Cleanup branch

* Split env vars as per @r-marques suggestion

* Remove SSL_ENABLED and use BIGCHAINDB_DATABASE_SSL instead

* Changes as per comments from @r-marques

* Remove redundant tests

* Test for ConfigurationError
2017-06-13 12:04:34 +02:00
libscott 32fc9244e6 Benchmark for CREATE transactions (#1511)
* benchmark code, throughput stats collection with graphite

* benchmarks readme

* benchmark readme update with results

* Update README.md

* add comment on why 10000 backlog size in benchmark
2017-06-10 10:01:28 +02:00
Scott Sadler 5de15c33ec disable threads in web workers 2017-05-19 14:05:28 +02:00
Sylvain Bellemare 965334e9b6 Use lower case for default log level 2017-04-18 16:21:02 +02:00
Sylvain Bellemare 4d8f9dd777 Explicitly set default log config
Closes #1318
2017-04-18 16:21:02 +02:00
Sylvain Bellemare b3290f12d2 Apply log level cmd line option to log file 2017-04-18 16:21:02 +02:00
vrde d260e16f11
Add configuration for websocket server 2017-04-07 10:51:00 +02:00
vrde 5d2f66524c
Cleanup configuration keys for db 2017-04-04 18:58:34 +02:00
vrde 1e07a5b111
Add ssl, login, and passwd to configure command 2017-04-04 17:43:37 +02:00
Sylvain Bellemare 0edb1c18f2 Keep gunicorn logger_class internal
closes #1334
2017-03-24 14:22:48 +01:00
Sylvain Bellemare cea78b3ae2 Integrate gunicorn logs with bigchaindb logs
Closes #1329
2017-03-23 17:22:43 +01:00
Sylvain Bellemare 43f779a18b Add logging infrastructure 2017-03-20 13:54:14 +01:00
vrde c11808ecc5
Move common stuff to generic Connection class 2017-02-23 17:20:21 +01:00
Rodolphe Marques 2fe9c47b63 Feat/990/cleanup monitoring code (#1138)
* remove statsd dependencie

* remove monitoring related code

* removed statsd configuration

* fixed tests

* Removed monitoring docker compose file.

Remove statsd settings from test fixture.
Removed statsd related code from benchmarking tests

* removed monitoring related documentation

* remove unused import
2017-02-03 10:28:28 +01:00
Rodolphe Marques fafdac2523 Retrieve default backend from env if set.
Fixed tests.
2017-01-31 10:34:45 +01:00
Rodolphe Marques f12264773c bigchaindb configure now requires a positional backend argument.
Created and fixed tests.
Updated `b` fixture
2017-01-23 16:49:59 +01:00
Rodolphe Marques e7ffcf5705 Added replicaset name to bigchaindb config (#1063)
* Added replicaset name to bigchaindb config

* changed travis replSet to match bigchaindb default

* Updated initialize_replica_set

It now initializes the replica set with the name provided by the
bigchaindb config file.


* initialize_replica_set is now called when creating a mongodb connection.

This way we are sure that a replica set exists when we return a
connection.

* Moved the initialize replica set logic to the connection.

* update the config documentation
2017-01-20 14:05:28 +01:00
Sylvain Bellemare 18d5a49097 Take env var value if set for db port 2016-12-20 20:37:28 +01:00
Sylvain Bellemare b2c6474d35 Parametrize backend config 2016-12-13 10:22:39 +01:00
vrde 53fb9f3d5f Add connection Class 2016-12-12 15:47:43 +01:00
troymc adde84970f Fixed merge conflict in bigchaindb/__init__.py 2016-12-01 16:09:34 +01:00
Rodolphe Marques e2ea100eb9 Removed hardcoded backlog_reassign_delay.
It now uses the one provided by the settings.
2016-11-22 23:00:16 +01:00
troymc 29d783425d Remove or comment-out the api_endpoint setting everywhere 2016-11-15 17:05:09 +01:00
Christian Gärtner 078d018395 Fixed pep8 violations in bigchaindb source code 2016-11-02 09:26:05 +01:00
Sylvain Bellemare 1ae08990c8 Docker dev setup docs (#653)
* Include configuration step in Dockerfile

* Document dev setup with docker-compose

* Add server API env vars and port

* Parameterize SERVER_BIND and API_ENDPOINT env vars

* Give a bit more detailed information on GET /
2016-10-05 11:25:45 +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
Ryan Henderson 92981e003d Core/198/handle stale transactions (#359)
* add timestamp to transaction assignment

* add reassignment delay to configuration

* refactor to multipipes

* # This is a combination of 7 commits.
# The first commit's message is:
stale transaction monitor and tests

# The 2nd commit message will be skipped:

#	simplify logic

# The 3rd commit message will be skipped:

#	node will assign to self

# The 4th commit message will be skipped:

#	block listens for insert and update

# The 5th commit message will be skipped:

#	more test coverage

# The 6th commit message will be skipped:

#	test coverage

# The 7th commit message will be skipped:

#	test coverage

* stale transaction monitor and tests

* update operation only returns new value
2016-09-07 16:26:41 +02:00
Sylvain Bellemare a05c688682 Parameterize db host config via env var 2016-05-13 16:21:33 +02:00
Rodolphe Marques 8ed76ca234 Import version in bigchaindb.__init__
Print current version with
import bigchaindb
bigchaindb.__version__
2016-04-21 14:40:51 +02:00
vrde 6844a1a212
Bind to localhost, safer 2016-04-15 16:24:38 +02:00
vrde 06f45f1dc7
Change server port to 9984 2016-04-07 14:15:29 +02:00
vrde ac3ce3b6fa
Merge branch 'develop' into improve-config 2016-04-07 11:25:12 +02:00
vrde e4d3915533 Add type conversion and docs 2016-03-24 01:41:00 +01:00
vrde fcb87b3c9b Fix banner 2016-03-23 16:32:05 +01:00
vrde 0f212ea113 Simplify env var name 2016-03-22 21:49:19 +01:00
vrde 20d3dd4ff3 Wrap the wsgi app in a standalone Gunicorn app 2016-03-22 18:49:14 +01: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 9644df07f7 Merge remote-tracking branch 'upstream/develop' into
modular-consensus-rules
Resolves conflicts from module reorg in PR #102

Conflicts:
	bigchaindb/__init__.py
	bigchaindb/core.py
2016-03-04 18:07:23 -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
vrde 70692a851c Add client code to create/transfer txs 2016-02-26 16:23:50 +01:00
ryan 131d7fad14 setup changes 2016-02-22 10:17:16 +01:00
Wrigley the Buffalo 841cabe8c6 Add code, have fun! 2016-02-10 19:55:33 +01:00