David Dashyan
9e99c024d3
Replace headers ( #2683 )
...
Signed-off-by: David Dashyan <mail@davie.li>
2020-04-06 11:52:18 +02:00
Nikita Chernyi
2975c372c8
Remove pysha3 for python >= 3.6 ( #2652 )
...
* Init pypy support
* Fixed setup
2019-09-25 22:22:51 +02:00
Lev Berman
f55f22144f
Problem: the skip_id param is redundant. ( #2531 )
...
Solution: remove the param; only call validate_id where it is needed.
2018-09-13 15:35:24 +02:00
Vanshdeep Singh
cb22557771
Problem: Validation code not optimized ( #2490 )
...
Solution: memoize data
2018-09-04 15:30:52 +02:00
Muawia Khan
8e55b11da2
Problem: cyrptoconditions dependency updated because of vulnerability ( #2494 )
...
* Problem: cyrptoconditions dependency updated because of vulnerability CVE-2018-10903
* update cc to ~=0.7.2
* Fix test using b58encode
* Fixing some more tests failing because of base58 update
2018-09-03 13:25:58 +02:00
Troy McConaghy
abdd23f5a6
Problem: Source files contain no license info ( #2455 )
...
* Problem: Source files contain no license info
Solution: Add comments with SPDX license info to source files
* Python 3 files don't need # -*- coding: utf-8 -*-
2018-08-16 12:31:32 +02:00
Vanshdeep Singh
1a74afa9cd
Problem: Node operator cannot vote on a ValidatorElection ( #2428 )
...
* Problem: Node operator cannot vote on a ValidatorElection
Solution: Implement validator election voting spec
* Problem: Incorrent code comments
Solution: Update comments with correct context
* Problem: Delegated vote not casted back to election
Solution: Update test to cast votes back to election id and assert their validity
2018-08-02 11:49:59 +02:00
Vanshdeep Singh
7dcdefc58b
Problem: There is no way to add new validators (BEP-21) ( #2392 ).
...
Solution: Start by integrating the new election spec specifed in BEP-21.
2018-07-27 17:38:24 +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
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
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
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
libscott
488074fa09
Merge pull request #1411 from bigchaindb/fast-unspents
...
Fast unspents
2017-05-23 13:21:33 +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
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
Scott Sadler
69bafc80c0
put limits on amount size
2017-03-15 10:17:41 +01:00
Scott Sadler
f23bfa52d1
Output.from_dict accepts string
2017-03-15 10:00:00 +01:00
Scott Sadler
cb6bd34744
test create tx does not have an asset id
2017-03-13 13:47:37 +01:00
Scott Sadler
294afa123f
rename validate_structure to validate_id
2017-03-13 13:46:45 +01:00
Scott Sadler
bae05e80a0
sign whole transaction body instead of partial transaction
2017-02-28 11:27:55 +01:00
tim
a049081b07
Fix tx model versioning
2017-02-06 20:21:17 +01:00
Brett Sun
d49b06933a
Fix docstring of `recipient` argument to be a list of tuples ( #1091 )
2017-02-01 16:24:34 +01:00
Scott Sadler
adb579ac0a
Revert "duplicate asset ID" and apply "get_txids_filtered" interface.
2017-01-26 13:52:09 +01:00
libscott
cd7d65b63e
Merge pull request #1066 from bigchaindb/1021/http_outputs_endpoint
...
1021/http outputs endpoint
2017-01-25 13:24:10 +01:00
libscott
4802f0fabe
Merge pull request #1080 from bigchaindb/no-dev-in-tx-version
...
short form 0.9, 0.10 etc tx version with no '.dev' suffix
2017-01-24 14:34:37 +01:00
Sylvain Bellemare
7207f57879
Change to single quotes
2017-01-24 10:24:16 +01:00
Sylvain Bellemare
fe5d966dca
Put back some strings with wrapped single quotes
...
just to double check that flake8-quotes does indeed tolerate it
2017-01-24 10:22:32 +01:00
Scott Sadler
bd048a3115
add flake8-quotes checker and cleanup double quotes
2017-01-23 17:30:37 +01:00
Scott Sadler
4bb64fa0b8
generalise get_owned_ids to get_outputs and get_owned_ids
2017-01-23 16:10:21 +01:00
Scott Sadler
ccdbb91c1c
short form 0.9, 0.10 etc tx version with no '.dev' suffix
2017-01-23 15:16:15 +01:00
Scott Sadler
003519b0a8
duplicate tx.id into tx.asset.id in CREATE transactions
2017-01-16 15:03:54 +01:00
Scott Sadler
48b90407bd
change version in tx model to 0.9. The idea is that we will go with the server version until we hit 1.0 where we should be stable, then re-evaluate.
2017-01-04 15:10:15 +01:00
Brett Sun
8fa3245309
Rename any *util.py to *utils.py ( #991 )
2016-12-22 17:39:39 +01:00