60 Commits

Author SHA1 Message Date
Scott Sadler
bc687ca229 Merge remote-tracking branch 'origin/master' into pipeline-fast-transaction 2017-05-30 11:18:46 +02:00
Rodolphe Marques
e9979dda85 fixed typos 2017-05-24 17:05:43 +02:00
Rodolphe Marques
cda8259e57 Fixed typos 2017-05-24 12:38:34 +02:00
Scott Sadler
b6ae91c541 documentation fix 2017-05-22 12:47:07 +02:00
Scott Sadler
2589e16fd6 pipeline fixes; dont validate tx schema during block creation, parallelise tx schema validation in vote pipeline 2017-05-22 12:41:15 +02:00
Rodolphe Marques
ce414e46f3 Added missing docstrings. Fixed typos. 2017-05-11 12:29:08 +02:00
Rodolphe Marques
aacba571f8 Added docstrings and tests to new methods 2017-05-11 11:38:07 +02:00
Rodolphe Marques
8c0dbeb281 Added asset decoupling support for rethinkdb
Updated schema.
Created queries for assets table.
Fixed tests.
2017-05-10 17:55:43 +02:00
Rodolphe Marques
92392b51a7 Initial implementation to decouple assets from transactions.
Most changes done to how we write and read blocks to the database.
Created schema, indexes and queries for mongodb.
Fixed tests.
2017-05-10 16:43:52 +02:00
Rodolphe Marques
cb87221bdf Voting pipeline now checks for duplicated transactions in blocks during
validation.
2017-04-04 17:57:44 +02:00
Scott Sadler
1f5a8582b6 Merge branch 'master' into tx-structure 2017-03-14 16:22:14 +01:00
Scott Sadler
7c461e47d7 remove structural and schematic validations from Transaction.validate which is validating the spend 2017-03-14 12:39:57 +01:00
Scott Sadler
0fb4ea424b remove stray validation 2017-03-13 14:55:03 +01:00
Scott Sadler
b997057962 fix tests 2017-03-13 14:25:36 +01:00
Scott Sadler
cb6bd34744 test create tx does not have an asset id 2017-03-13 13:47:37 +01:00
Scott Sadler
dc58466de3 Merge branch 'master' into voting-class-integration 2017-03-13 13:35:03 +01:00
Scott Sadler
53dff83ed4 Merge remote-tracking branch 'origin/master' into validationerror-refactor 2017-03-08 13:07:51 +01:00
Scott Sadler
d10772e4bf Merge remote-tracking branch 'origin/master' into voting-class-integration 2017-03-08 12:56:58 +01:00
Scott Sadler
e5dd5c665b address vrde's comments, reshuffle some exceptions around 2017-03-07 13:15:31 +01:00
Scott Sadler
5584de59b0 Make ValidationError a superclass of all validation errors and use it 2017-03-03 11:36:50 +01:00
Scott Sadler
a71dc66e97 extra test for tx_collector and docs fix 2017-03-02 18:48:03 +01:00
Scott Sadler
1d935b9ae6 dedupe tx in block, reject duplicate tx in block 2017-03-02 14:35:20 +01:00
Scott Sadler
c993f954e0 wip 2017-02-27 20:56:01 +01:00
Rodolphe Marques
e7d729a40d Improved docstrings 2017-02-03 10:56:51 +01:00
Rodolphe Marques
153b3dd8d4 Merge remote-tracking branch 'origin' into bug/1132/vote-pipeline-validates-transactions-twice 2017-02-02 13:38:34 +01:00
Rodolphe Marques
6b073f0898 Removed duplicated transaction validation in votes pipeline.
Separated block validation from transaction validation.
Refactored block signature validation.
2017-02-02 13:35:20 +01:00
Rodolphe Marques
b7f70befe6 fix wrong logic in validate_block 2017-02-01 15:10:17 +01:00
Scott Sadler
9762b4b968 fix spend input twice bug (https://github.com/bigchaindb/bigchaindb/issues/1099) 2017-01-26 13:39:06 +01:00
Sylvain Bellemare
c1b6f60f70 Add an exception message 2017-01-17 07:50:00 -05:00
Brett Sun
8fa3245309 Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
Scott Sadler
04a78aacec Merge remote-tracking branch 'origin/master' into inputs-outputs 2016-12-22 13:45:02 +01:00
Brett Sun
9319583ab4 Remove Asset and AssetLink (#982)
* Remove asset.validate_asset and move its validation checks to other areas

* Move Asset.get_asset_id to Transaction

* Remove Asset and AssetLink models

* Add test against creating TRANSFER transactions with bad asset
2016-12-22 10:19:21 +01:00
libscott
7e33f2bd52 Tx ID as Asset ID (#926)
* Allow AssetLinks to be used in place of Assets in the Transaction Model and enforce `Transaction.transfer()` to only take an AssetLink

* Remove AssetLink's inheritance from Asset

* Remove id from the Asset model

* Fix get_txids_by_asset_id query for rethinkdb after removing asset's uuid

Because `CREATE` transactions don't have an asset that contains an id
anymore, one way to find all the transactions related to an asset is to
query the database twice: once for the `CREATE` transaction and another
for the `TRANSFER` transactions.

* Add TODO notice for vote test utils to be fixtures

* Update asset model documentation to reflect usage of transaction id

* Fix outdated asset description in transaction schema
2016-12-20 17:28:15 +01:00
Scott Sadler
f4257030fc dont override input builtin in models.py 2016-12-19 12:29:29 +01:00
Scott Sadler
4e17fe5c3d change fulfills.idx to fulfills.output 2016-12-19 12:29:29 +01:00
Brett Sun
2f4da6a32f Extra renames and small fixes for inputs-outputs (#952)
* Fix typos pointed out in review by @ttmc

* Reword description of an input in the transaction schema

* Re-add removed comment in transaction model

* Fix small typos in some comments in the transaction model

* Add trailling commas to a multiline dict in the transaction model tests

* Fix small things with server docs changes

* Add description of public keys' association with conditions in transaction concept docs

* Reword description of Transaction.create's  and  args

* Rename output_uri to output_condition_uri

* Fix hardcoded class name vs. self.__class__

* Rename instances of 'out' with 'output'

* Rename instances of  and  with  to avoid name clash with built-in

* Remove unnecessary renaming of cryptoconditions.Fulfillment import in transaction model

* Remove instances of  in transaction model

* Remove usages of fulfillment in cases where input makes more sense

* Reword docstrings for init methods in transaction models

* Rename usages of condition where output is now a better fit

* Add descriptions to TransactionLink's txid and idx in schema

* Minor correction to output idx description in transaction yaml
2016-12-19 12:29:29 +01:00
Scott Sadler
ed55b3984e s/fulfillments/inputs/g && s/conditions/outputs/g (code changes) 2016-12-19 12:29:29 +01:00
Scott Sadler
d2827dfae8 remove asset keywords 2016-12-16 13:50:23 +01:00
Sylvain Bellemare
602dfbea06 Add transaction schema validation to the server
by overriding Transaction.from_dict() in models.py
2016-12-02 14:32:18 +01:00
Rodolphe Marques
eead7dbdda Merge remote-tracking branch 'origin/master' into feat/746/new-naming-convention-for-keys 2016-11-17 11:41:23 +01:00
troymc
54f0d85cda Merged master branch and fixed some merge conflicts 2016-11-14 18:35:46 +01:00
Sylvain Bellemare
9f471ef4b3 Merge branch 'master' into divisible-assets 2016-11-14 16:39:02 +01:00
tim
74e1f9c303 Fix tense in docs 2016-11-14 14:59:09 +01:00
tim
37cf057b99 PR Feedback for docs 2016-11-14 13:56:05 +01:00
tim
b42eec93c7 Fix indentation for model docs 2016-11-14 13:53:49 +01:00
tim
f69ccc93df Add doc strings for Block cls 2016-11-14 13:51:02 +01:00
Rodolphe Marques
6d7392d98d Handle the case where there are negative amounts.
Created tests
2016-11-11 11:34:20 +01:00
Rodolphe Marques
c068f04a82 Replaced VerifyingKey with PublicKey
Replaced SigningKey with PrivateKey
Replaced all occurences of signing key with private key
Replaced all occurences of verifying key with public key
2016-11-10 17:01:06 +01:00
Rodolphe Marques
d8be9ac3ec Fixed typo
Renamed some variables to make the code more readable
2016-11-10 11:59:22 +01:00
Rodolphe Marques
a2e28ae806 addressed comments 2016-11-09 17:48:39 +01:00