944 Commits

Author SHA1 Message Date
Ahmed Muawia Khan
d0089ca373 Fixing flake8 2018-02-23 14:43:14 +01:00
Ahmed Muawia Khan
5cea9c28bf Migrate CLI for tendermint integration
- Remove commands that were not required.
  - export-my-pubkey
  - set-shards
  - set-replicas
  - add-replicas
  - remove-replicas
- Update bigchaindb --help, usage description
- Re-enable tests
- Update docker-compose.travis.yml and Dockerfile for travis
  because some env variables are not needed
2018-02-22 21:48:42 +01:00
Troy McConaghy
303c951137 Fixed flake8 errors 2018-02-22 12:41:20 +01:00
Troy McConaghy
8e4a2398a7 Make votes endpoint return 404 & helpful msg 2018-02-22 12:02:00 +01:00
vrde
14d523efd5 Problem: processes don't have an intelligible name (#2078)
Solution: when a process starts, update the "process title" as well.
2018-02-21 17:54:50 +01:00
Vanshdeep Singh
5bfa8e29d8 Crash recovery mechanism (#2045)
* Crash recovery mechanism

* Propogate exception

* Added docs and crash receovery during block write

* Fix flake8 issue

* Remove approach 1 for crash recovery, recover db on 'bigchiandb start'

* Fix CI build issues

* Remove documentation
2018-02-21 10:50:12 +01:00
Troy McConaghy
1b6d0adc01 removed code for all /statuses endpoints 2018-02-19 12:04:10 +01:00
Sylvain Bellemare
1f537b1557 Problem: to get tx utxoset & inputs is cumbersome (#2055)
Solution: add properties to more easily get the utxoset and inputs of a
transaction
2018-02-15 18:23:29 +01:00
Sylvain Bellemare
3542d01893 Update tx version (#2054)
* Problem: common/test_transaction.py is excluded

Solution: add marker to file

* Problem: fixture tx version is outdated

Solution: update the version
2018-02-15 16:19:13 +01:00
Troy McConaghy
63bd698b21 changed constructed/allowed tx 'version' from '1.0' to '2.0' (#2048)
- Created three new JSON Schema files for the v2.0 transaction schema, based on the v1.0 files. The only change is the allowed value of version (from "^1\\.0$" to "^2\\.0$").
- I didn't delete the v1.0 JSON Schema files because we might want those some day (to validate old transactions).
- Updated the __init__.py in the directory with the JSON Schema files so that it now uses the version 2.0 JSON Schema files.
- Updated all relevant tests. I only found one, in tests/validation/test_transaction_structure.py
- Updated VERSION in common/transaction.py
- Checked to make sure the example HTTP API docs show "version" with value "2.0". They do.
- Updated the docs page about "The Transaction Model". It just points to the IPDB Transaction Spec.
- If someone submits a transaction with "version" having value "1.0" then the error message comes from the JSON Schema checker.
2018-02-15 11:07:16 +01:00
vrde
cd6095e854 Problem: test suite doesn't pick up env vars
Solution: call `env_config` from the configuration fixture
2018-02-14 16:43:09 +01:00
Sylvain Bellemare
161ccdda5d Implement UTXO set backend (#2033) 2018-02-14 15:37:19 +01:00
vrde
55073366ec Problem: new env vars are not managed by the conf
Solution: add `BIGCHAINDB_` to new tendermint vars. Reference:
https://github.com/bigchaindb/bigchaindb/pull/2039#discussion_r167880795
2018-02-14 12:18:59 +01:00
Sylvain Bellemare
6e3f9e8f54 Docker compose for travis (#2039)
* Replace double quotes with single quotes (flake8)

* Test event subscriber to tendermint via ws

* Problem: Tendermint is not part of stack for CI

Solution: Add Tendermint to stack for CI. For simplicity's sake
docker-compose is being used.
2018-02-14 10:19:04 +01:00
vrde
4157244df7 Problem: statsd config is no longer supported
Solution: remove monitoring code, completes #1138
2018-02-13 14:35:47 +01:00
Sylvain Bellemare
cc069fa640 Add db_context fixture 2018-02-08 15:26:50 +01:00
Sylvain Bellemare
b2584dd0fa Order imports as per pep 8 2018-02-08 15:19:47 +01:00
Vanshdeep Singh
fa33fc26af Integrate get block with transaction id api (#2021)
* Integrate api, get block with transaction id

* Fixed docs and docstrings

* Fix docs

* Remove status from tendermint, fix mongo query
2018-02-08 14:32:21 +01:00
Vanshdeep Singh
a7ed8cf4cb Write transactions on commit (#2017)
* Write transacitons on commit

* Fix docs strings, lazy check for duplicates
2018-02-02 14:40:24 +01:00
Vanshdeep Singh
e25d365828 Integrate blocks API (#1970)
* Integrate blocks api

* Update docs

* Fix docs

* Fixed mismatch between code and documentation

* Fixed docs
2018-01-31 14:42:41 +01:00
codegeschrei
ff50d243bc Merge branch 'tendermint' into 1995-mode-API 2018-01-24 11:58:13 +01:00
Sylvain Bellemare
d2f1282333
Merge branch 'master' of github.com:bigchaindb/bigchaindb into tendermint 2018-01-15 19:29:35 +01:00
Sylvain Bellemare
9bed8f363a Fixes #1930 2018-01-15 19:08:58 +01:00
codegeschrei
1d99d6e8a8 requested changes 2018-01-15 17:12:17 +01:00
codegeschrei
411d1963bb requested changes 2018-01-12 11:06:27 +01:00
codegeschrei
06a091e215 add mode parameter to transaction endpoint, fixes #1995 2018-01-11 13:26:06 +01:00
Sylvain Bellemare
52d0c7024a
Merge branch 'master' into tendermint 2017-12-23 04:58:18 +01:00
Sylvain Bellemare
8bd8dc02a4 Fixes #1969 2017-12-22 18:03:57 +01:00
vrde
57d4a8e895
Merge pull request #1928 from bigchaindb/feat/integrate-event-stream
Integrate event stream api
2017-12-20 16:06:16 +01:00
vrde
ab4328fa1f
Merge pull request #1939 from bigchaindb/feat/integrate-metadata-api
integrate metadata api
2017-12-20 16:01:19 +01:00
Troy McConaghy
7a491bb781 Removed pytest-catchlog from setup.py & fixed one failing test 2017-12-07 13:33:57 +01:00
Sylvain Bellemare
cb268a3832
Merge branch 'master' into tendermint 2017-12-06 16:59:26 +01:00
kansi
f5b887ac59 Integrate events api 2017-12-06 15:42:45 +05:30
kansi
b3f2eeb931 Integrate metadata api 2017-12-06 10:25:52 +05:30
Sylvain Bellemare
9dd2e026b0 Fixes #1891 2017-12-05 19:38:52 +01:00
kansi
2b3a9fa6f6 Integrate output search api 2017-11-30 23:59:42 +05:30
vrde
1e104ad2c4
Merge branch 'master' into tendermint 2017-11-30 18:17:36 +01:00
Katha
9d38d3d405
add tests to improve codecov (#1871)
* add tests to improve codecov
2017-11-30 15:07:45 +01: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
044a052644
Merge branch 'master' into tendermint 2017-11-29 17:18:00 +01:00
Sylvain Bellemare
35012a6452 Fix flake8 errors 2017-11-29 16:55:32 +01:00
kansi
fcfe577813 Added localmongodb marker 2017-11-24 12:30:57 +05:30
kansi
6c3f176122 Integrate asset search 2017-11-23 21:28:51 +05:30
kansi
00dd16840f Added backend tests, configure app fixture 2017-11-23 16:27:35 +01:00
kansi
95c0f267e0 Integrate api GET "/transactions?asset_id={asset_id}&operation=" 2017-11-23 16:27:35 +01:00
vrde
f4a6b863fe
Merge branch 'tendermint' into write-transfer-test 2017-11-23 15:55:32 +01:00
vrde
cf2f13aa3c
Remove app reinitialization from tests 2017-11-23 15:53:43 +01:00
muawiakh
82cd3a61ed Add metadata endpoint to info view
- Metadata search was recently added and works seamlessly
- The endpoint was not reflected in the info view i.e.
  when someone queries at root / or api/v1 endpoints.
- Handle unit tests for the change as well.
2017-11-22 18:31:35 +01:00
kansi
66601f7fa2 Moved class "Block" to namedtuple, updated tests 2017-11-22 21:38:26 +05:30
kansi
c78490f44d Merge branch 'master' into bug/1592/metadata-text-search 2017-11-20 19:12:12 +05:30