153 Commits

Author SHA1 Message Date
Troy McConaghy
10953a64e7 Problem: "IPDB Transaction Spec" referenced in .../schema/README.md (#2376)
Solution: Update `bigchaindb/common/schema/README.md` to link to the BigchainDB Transactions Specs instead.
2018-07-10 14:19:45 +02:00
codegeschrei
7449b026fa Problem: voting code is not used anymore (#2357)
* Problem: voting code is not used anymore
Solution: remove all voting related code

* Problem: Some voting functionality is still present.

Solution: Remove it. Update some of the related tests.

* Problem: some skipped tests are now running
Solution: remove pytest mark to not run them

* Problem: fastquery is not related to votes
Solution: remove it in another PR
2018-06-28 11:30:13 +02:00
Muawia Khan
2b39566a4b Problem: Some configurations are defunct (#2338)
* Problem: BigchainDB config has stale/deprecated parameters

- Remove `keyring` and `keypair` from config
- Update tests
- Add `tendermint` config

* Fix flake8

* Update some naming conventions and redundant changes

* Remove redundant routine `fast_query`

* Remove deprecated parameters and descriptions

* remove some more unwanted code

* Problem: Two flake8 errors made Travis fail

Solution: Fix the two flake8 errors

* Address comments

- Remove reference of nodes_except_me and me_private and me
  as attributes of BigchainDB instances
- Update and re-add test(s)
- Do not introduce `tendermint` in configuration instead handle that
  in a separate PR along with docs

* Address comments

- Remove tests that are already covered with 2.0
- Remove tests that are no longer relevant
- Add TODO for more cleanup

* Remove tendermint config from configure command
2018-06-08 15:50:50 +02:00
Troy McConaghy
00cb5108ca Problem: vote.yaml & vote schema validation not used anymore (#2319).
Solution: remove vote.yaml & all vote schema validation code.
2018-06-04 10:53:01 +02:00
Lev Berman
2e9c20491c Problem: web transaction tests were broken or disabled. (#2278)
Solution: Fix or reenable the tests after the migration to BigchainDB 2.*.
2018-05-16 15:17:33 +02:00
Vanshdeep Singh
e4e528e5c4 Problem: Changing validators requires a network restart (#2070)
Solution: Allow nodes to add, update, or remove validators at runtime using a new command. Implements BEP3.
2018-03-29 18:25:26 +02:00
Shahbaz Nazir
e8e02cac50 Problem: Bigchaindb startup sometimes fails due genesis block creation during init (#2129)
* removing GENESIS transaction type
* remove GENESIS transaction schema
* all blocks are same in the eyes of GOD no checks needed for genesis blocks
2018-03-16 16:19:12 +01:00
Sylvain Bellemare
56dfd9bab0 Problem: represent utxoset state as a hash
Solution: create a merkle tree out of the utxoset and compute its merkle
root
2018-03-01 17:50:20 +01:00
Troy McConaghy
7a292ba6ec Edits to the common/schema/README.md file 2018-02-16 15:48:12 +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
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
Sylvain Bellemare
9bed8f363a Fixes #1930 2018-01-15 19:08:58 +01:00
Sylvain Bellemare
9dd2e026b0 Fixes #1891 2017-12-05 19:38:52 +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
Troy McConaghy
374b6301c6 In readme file about JSON Schema files, note provenance and update process 2017-11-23 16:21:19 +01:00
Troy McConaghy
dfe072e443 Fixed a Flake8 error 2017-11-21 14:52:15 +01:00
Troy McConaghy
94c77ba658 Removed the line from transaction_v1.0.yaml 2017-11-21 14:13:24 +01:00
Troy McConaghy
35fa8d7d19 Updated all code/docs referencing the transaction schema files by name 2017-11-21 14:12:13 +01:00
Troy McConaghy
8482521a8b Renamed all transaction schema files: added _v1.0 in them 2017-11-21 14:10:14 +01:00
Troy McConaghy
e86fa1f1bb Removed drop_schema_description() & its test 2017-11-14 14:05:53 +01:00
Troy McConaghy
6291afd0f7 rm all 'description' keys & values from YAML files 2017-11-14 14:05:02 +01:00
Troy McConaghy
f0d4417d02 Removed auto-generation of tx/vote schema documentation 2017-11-13 17:28:06 +01:00
kansi
7941922ac0 Added type validation for data 2017-11-06 10:43:54 +05:30
kansi
e2c2c4b097 Fix spell errors. 2017-11-03 19:15:32 +05:30
kansi
a29fd7e84f Fix variable type check and docstrings 2017-11-03 18:37:19 +05:30
kansi
99aa38b217 Added "none" to language whitelist 2017-11-03 11:38:38 +05:30
Isaac van Bakel
cb5125ecfa Fixed error line missing from transaction.py
The second instance of the recipients error message is missing a line,
making the message meaningless.
2017-07-28 20:35:06 +01:00
libscott
e8ee39463f MongoDB socket timeout to handle master re-election (#1638)
* add a socket timeout so that changefeeds can reconnect if theres a re-election

* fix threshold max depth at 100
2017-07-06 19:50:28 +02:00
Krish
e8411fc99e Do not allow duplicate GENESIS block creation - #1556 (#1612)
* Add a check for GENESIS transaction

* Add test and fixture

* Removed database query for GENESIS block

* Undo log level change
2017-07-03 17:21:15 +02:00
Sylvain Bellemare
4d61c5e8ca Refine the condition uri regex for validation
closes #1516
2017-07-03 15:08:47 +02:00
libscott
5e9b7f4ffe Remove condition details signature, rename subfulfillments to subconditions (#1589)
* implement output.condition.details marshalling and remove signature field

* rename outputs[].condition.details.subfulfillments to subconditions

* simpler threshold depth overlow handling

* pass public_key as kwarg

* change ccv1 condition uri in docs

* import base58 at top in test_transaction
2017-06-30 09:44:22 +02:00
libscott
b1ad6045b6 Rename "output" to "output_index" in /api/v1/outputs (#1596)
* rename output to output_index in /api/v1/outputs

* rename transaction.input.fulfills.output to output_index

* fix rethinkdb queries for output_index
2017-06-30 09:40:50 +02:00
libscott
074e783088 tx version break step with server version (#1574)
* tx version break step with server version
* fix regular expression for tx version
* restore docstring for Transaction version parameter
* add test for correct transaction version
2017-06-22 07:50:42 -07:00
Sylvain Bellemare
02fe712c34 Integrate cryptoconditions version 02 2017-06-22 14:56:22 +02:00
Rodolphe Marques
3ecb05a62d Renamed txid to transaction_id in data models
- Updated schema validation
- Updated database schema
- Updated database queries
- Fixed tests
2017-06-13 11:36:58 +02:00
Scott Sadler
622885aef8 require asset.data for CREATE and asset.id for TRANSFER in the schemas 2017-06-07 13:39:24 +02:00
libscott
bb02995ae6 Merge pull request #1494 from bigchaindb/rapidjson-schema
Use rapidjson-schema
2017-05-31 14:06:21 +02:00
Scott Sadler
211bdeffb1 dont raise Exception if there's an inconsistency in schema validation failures 2017-05-31 11:33:57 +02:00
libscott
488074fa09 Merge pull request #1411 from bigchaindb/fast-unspents
Fast unspents
2017-05-23 13:21:33 +02:00
Scott Sadler
e12e95d9d8 use rapidjson-schema 2017-05-23 13:19:10 +02:00
libscott
4b057ad948 Merge pull request #1286 from bigchaindb/tx-amount-string
transaction.outputs.amount as string
2017-04-24 14:28:06 +02:00
Scott Sadler
1e866a1207 signature payload is serialized transaction 2017-04-24 13:37:50 +02:00
Scott Sadler
2c6370f42e Merge branch 'master' into sign-tx-body 2017-04-24 13:28:02 +02:00
Scott Sadler
483425e803 Merge branch 'master' into tx-amount-string 2017-04-24 12:22:36 +02:00
Scott Sadler
4f99122758 fast unspents 2017-04-19 15:47:58 +02:00
Rodolphe Marques
e97cee8c84 Merge pull request #1294 from bigchaindb/bug/1291/threshold-conditions-duplicated-pks
_sign_threshold now signs all subconditions for a public key
2017-03-17 10:32:21 +01:00
Sylvain Bellemare
b849656d3b Use namedtuple for key pair 2017-03-16 14:58:32 +01:00
Rodolphe Marques
f00f68e03f _sign_threshold now signs all subconditions for a public key.
Created test.
2017-03-16 14:10:04 +01:00
Scott Sadler
d08d932627 make max output amount a constant 2017-03-15 13:37:56 +01:00
Scott Sadler
25650597b1 test invalid string amount case 2017-03-15 11:27:35 +01:00