259 Commits

Author SHA1 Message Date
Scott Sadler
dbb3414fd0 generalise get_txids_by_asset_id into get_txids_filtered and remove get_transactions_by_asset_id 2017-01-18 15:42:47 +01: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
Rodolphe Marques
71bb63376f fix mongodb write_block without thouching mongodb code 2016-12-20 18:04:38 +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
Brett Sun
345fc27a39 Remove durability from all database-related calls 2016-12-12 16:07:41 +01:00
vrde
26c844ec22 Add defaults, fix import 2016-12-12 15:47:43 +01:00
vrde
4549e2ee4a Update BigchainDB core class 2016-12-12 15:47:43 +01:00
Scott Sadler
c43bf10151 add call to vote schema validate in consensus.py 2016-12-12 15:15:38 +01:00
Sylvain Bellemare
3bdaf60acb Fix docs building warnings 2016-12-08 11:45:41 +01:00
Scott Sadler
8d4677f456 flatten transaction - code changes 2016-12-01 14:31:31 +01:00
Scott Sadler
71dcee019f Remove metadata uuid 2016-11-28 17:34:46 +01:00
Rodolphe Marques
a824e275e0 decode signature to a str 2016-11-25 16:00:20 +01:00
libscott
b59751bba6 Fix documentation error in core.py 2016-11-22 14:08:54 +01:00
Rodolphe Marques
3ec79a54e7 fixed typo 2016-11-21 14:10:20 +01:00
Rodolphe Marques
e03a547276 Merge remote-tracking branch 'origin/master' into feat/332/get-txs-by-asset-id-ignore-invalid-blocks 2016-11-18 14:50:36 +01:00
Rodolphe Marques
547ad32966 Merge remote-tracking branch 'origin/master' into feat/792/get-txs-by-metadata-id-ignore-invalid-blocks 2016-11-18 10:17:01 +01:00
Rodolphe Marques
bc7f27e39a Merge remote-tracking branch 'origin/master' into feat/792/get-txs-by-metadata-id-ignore-invalid-blocks 2016-11-17 12:45:20 +01:00
Rodolphe Marques
f2922222be Added some comments to make the code more readable 2016-11-17 12:45:04 +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
Rodolphe Marques
98084f6f4a get_transaction_by_metadata_id now ignores invalid transactions 2016-11-11 17:36:27 +01:00
Rodolphe Marques
b7b9338f21 get_transactions_by_asset_id now ignores invalid transactions 2016-11-11 15:25:59 +01:00
Ryan Henderson
d31a268a51 add id query (#799) 2016-11-11 15:08:37 +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
a2e28ae806 addressed comments 2016-11-09 17:48:39 +01:00
Rodolphe Marques
dccbc3c1fe pep8 fixes 2016-11-09 14:25:42 +01:00
Rodolphe Marques
7313cd9441 get_asset_by_id now uses the new db api 2016-11-09 14:03:34 +01:00
Rodolphe Marques
de23053ebc Merge remote-tracking branch 'origin/master' into divisible-assets 2016-11-09 13:36:56 +01:00
Rodolphe Marques
a212aba35b Added validation for amounts
Added a new db call to return an asset instance given the id

Created tests
2016-11-06 20:00:47 +01:00
Rodolphe Marques
ee3b967184 Added support for divisible assets in TRANSFER transactions
Created tests
2016-11-06 01:55:47 +01:00
troymc
191c60ce37 Minor change to get_transaction + revised its docstring 2016-11-05 17:29:58 +01:00
Rodolphe Marques
dd382ee4e6 Added ability to CREATE divisible assets 2016-11-03 15:57:05 +01:00
vrde
187087d1e8
Remove unused import 2016-11-02 17:02:07 +01:00
vrde
b85272d56e
Merge remote-tracking branch 'origin/remove-unused-db-reconnect' 2016-11-02 16:48:47 +01:00
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