270 Commits

Author SHA1 Message Date
Christian Gärtner
078d018395 Fixed pep8 violations in bigchaindb source code 2016-11-02 09:26:05 +01:00
vrde
ac6249b42f
Merge branch 'isolate-database-calls' 2016-10-31 16:33:19 +01:00
vrde
51db5ab190
Pass db params to get_backend 2016-10-31 15:08:53 +01:00
troymc
2d6dfaa6f4 Rename FulfillmentNotInValidBlock to TransactionNotInValidBlock 2016-10-29 16:35:15 +02:00
vrde
c674029863
Remove useless param 2016-10-28 11:27:06 +02:00
vrde
f4454b3133
Fix docstring 2016-10-28 10:49:39 +02:00
vrde
f67a8d94ed
Add docstrings and fix pipelines 2016-10-27 15:01:09 +02:00
vrde
13b5d8eab9
Fix tests, alles is green now yay 2016-10-27 11:25:33 +02:00
vrde
815b4318ba
Move calls to DB to specific backend module 2016-10-26 17:48:53 +02:00
Brett Sun
d93f6f873b Update outdated or incorrect docstrings (#748) 2016-10-26 17:35:48 +02:00
Brett Sun
bc6084e068 Remove unused reconnect method 2016-10-26 14:10:25 +02:00
Sylvain Bellemare
ea9dfaf1e5 Replace bigchaindb_common pkg by bigchaindb.common 2016-10-24 17:01:43 +02:00
vrde
15fb27f327
Remove conn property from core API 2016-10-18 17:32:32 +02:00
vrde
425d6714ac
Merge branch 'wrap-queries-in-connection-class' 2016-10-17 14:15:27 +02:00
Rodolphe Marques
7275e6f44b Added support for cryptoconditions 0.5.0
Fixed tests.
2016-10-14 17:48:45 +02:00
Rodolphe Marques
7d3c6ee5ce Addressed comments to import tests.
Fixed some pep8 violations
2016-10-13 13:53:08 +02:00
Rodolphe Marques
abf1c98d7c Merge remote-tracking branch 'origin/master' into rebase/feat/564/implement-digital-asset-template 2016-10-12 16:56:49 +02:00
Rodolphe Marques
3a3aea9207 remove assets import 2016-10-12 16:28:43 +02:00
Rodolphe Marques
80c9cdcb09 Finished integration of digital asset.
Fixed tests
2016-10-12 10:29:25 +02:00
vrde
3081f6b537
Wrap queries with connection object 2016-10-11 17:24:50 +02:00
Ryan Henderson
81e70951d4 check if fulfillments are in a valid block (#629)
* check if fulfillments are in a valid block

* documentation

* fix almost all tests where tx validity is checked before writing to block

* move import
2016-10-10 09:41:49 +02:00
Rodolphe Marques
0652348bf0 initial integration of asset 2016-10-07 15:46:21 +02:00
Rodolphe Marques
b447a75a8d Added get_txs_by_asset_id
Created secondary index for assets.
Created tests
2016-10-04 16:22:33 +02:00
Rodolphe Marques
fd585188e2 renamed payload to metadata 2016-10-04 16:03:39 +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
vrde
c59bda653c
Remove extra fields from get_transaction 2016-09-28 15:10:21 +02:00
vrde
121c729504
Merge remote-tracking branch 'origin/master' into make-db-connection-more-robust 2016-09-19 17:14:02 +02:00
Ryan Henderson
404f3a1c45 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
2016-09-08 11:45:48 +02:00
vrde
b9fba73c14
Remove unused code 2016-09-07 17:32:34 +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
vrde
1d073ee706
Use new Connection class to run queries 2016-09-07 00:40:17 +02:00
vrde
d06e8b91d8
Add Connection class to manage connections 2016-09-06 23:51:12 +02:00
tim
2269e1380b Remove reference from signed tx 2016-08-29 17:21:07 +02:00
Ryan Henderson
efaf383732 check votes agree on previous block (#565)
* check votes agree on previous block

* documentation
2016-08-29 14:24:09 +02:00
diminator
d2399b5367
update docstring 2016-08-23 14:05:42 +02:00
diminator
d0c38d54d8
separate call for get_status 2016-08-23 14:00:28 +02:00
diminator
5eb69a9c01
Merge branch 'core/557/improve-get-transaction' into api/555/transactions-status-endpoint 2016-08-22 18:21:50 +02:00
diminator
827e58bc75
PR review @r-marques 2016-08-22 18:18:10 +02:00
diminator
1fbb0ed4ba Merge remote-tracking branch 'remotes/origin/master' into core/557/improve-get-transaction 2016-08-22 15:52:01 +02:00
diminator
150aa1e58f
status endpoint
test/docs
2016-08-22 15:05:06 +02:00
diminator
6bf9e08095
updated inline docs 2016-08-22 12:22:22 +02:00
diminator
d8df478925
optional tuple response instead of altering DB object 2016-08-22 12:19:06 +02:00
Sylvain Bellemare
6f159d3930 Closes #348 (#578) 2016-08-19 16:00:18 +02:00
ryan
bd9979618d return block status 2016-08-18 16:04:35 +02:00
Troy McConaghy
ddb80462b6 Fixed docstring in is_valid_transaction()
Fixes #438
2016-08-18 10:42:16 +02:00
vrde
74a5412cd9
WIP 2016-07-29 14:49:26 +02:00
ryan
d480eb15af update read_mode in core 2016-07-29 11:34:03 +02:00
vrde
9766482daa
Fix comments to PR 2016-07-28 16:06:52 +02:00
vrde
873ea891d6
Refactor method signature 2016-07-21 13:50:19 +02:00
vrde
fe2245daab
Add better detection of loops, more comments 2016-07-18 16:40:11 +02:00