Rodolphe Marques
a66a18b0d4
Pass a custom bigchain instance to util.sign_tx
2016-06-29 16:47:58 +02:00
Sylvain Bellemare
7bd6d485bc
Test Bigchain.get_blocks_status_containing_tx() ( #399 )
...
* Test Bigchain.get_blocks_status_containing_tx()
exception case
* Test Bigchaindb.has_previous_vote()
* Add missing blank lines (pep 8)
* Group imports
* Move ImproperVoteError into .exceptions.py
* Simplify logic
* Simplify formatting
* Imrpove the docstrings a bit
* Move GenesisBlockAlreadyExistsError
into .exceptions.py
* Remove unused import
* Add missing blank line
* Remove extra blank line
* Group imports from same module together
* Add test for Bigchain.transaction_exists()
2016-06-28 14:19:22 +02:00
Troy McConaghy
fab9b3ec36
Merge pull request #390 from bigchaindb/rename_federation_nodes
...
Renamed Bigchain.federation_nodes as Bigchain.nodes_except_me
2016-06-23 15:50:57 +02:00
Rodolphe Marques
3322a09215
updated Bigchain.__init__ docstring
2016-06-21 13:39:05 +02:00
troymc
cd7070722f
Renamed Bigchain.federation_nodes as Bigchain.nodes_except_me
2016-06-16 16:58:01 +02:00
Rodolphe Marques
6d41f6971d
UUID is added even if payload is None
...
Prevent the creation of empty blocks
Created and updated tests
2016-06-15 12:07:53 +02:00
Ryan Henderson
0f13da59bf
Core/197/revert bigchain deletes ( #330 )
...
* naive revert
* skip voting if already voted
* typo
* poison pill
* tests
* reversions
* block reverter is separate process
* factor out previous vote checking
* add tests
2016-06-02 14:46:32 +02:00
diminator
c3c71c6d9e
Merge remote-tracking branch 'origin/master' into feat/201/escrow
2016-05-26 10:54:31 +02:00
diminator
37c698529f
WIP: docs and tutorial
2016-05-25 16:40:47 +02:00
vrde
ab43b30353
Use constants instead of strings
2016-05-25 15:50:10 +02:00
ryan
0de838c40f
simplify query
2016-05-25 14:41:01 +02:00
diminator
9875cab3b3
cc-based escrow
2016-05-24 17:55:43 +02:00
ryan
003d4b8310
imperative phrasing
2016-05-23 10:27:22 +02:00
ryan
1b10d11a2c
Revert "get_tx_by_payload_hash checks block status (no tests)"
...
This reverts commit bb0bb9a1b4f686e2cb042427de1aeb06a002fc14.
2016-05-23 10:20:33 +02:00
ryan
5bc66a28c1
Revert "revert get_tx_by_payload_hash"
...
This reverts commit fb2cd532a9462ae4fc3c50056f01b37467816848.
2016-05-23 10:17:12 +02:00
ryan
fb2cd532a9
revert get_tx_by_payload_hash
2016-05-19 16:43:04 +02:00
ryan
8d3faec6a7
fix unspent query
2016-05-19 15:42:05 +02:00
Ryan Henderson
9f03b2b771
add election class, process starts ( #221 )
...
* add election class, process starts
* remove else clause
* resolve splitvote
* move quorum check to core
* remove comments
* fixed vote counting
* add test
* poison pill
* queue test
* generalize election status
* get correct part of block
* clean shut down
* test block liquidation
* add vote signature checking
* add tests
* user_public_key to user_vk
* python3 style floordivs
* correct verdict for odd number of voters, and tests
* remove whitespace
* simplify verify_vote_signature
* election checks pubkey is in block voters
* tests for elector pubkey
* count invalid votes as votes for invalid block
* test update
* test mismatched vote, block sigs
* variable name change
* comments on voting logic
* comments on voting logic
* remove unused queue
* correct block model
* imperative docstring
* election status class constants
* election tests use constants
2016-05-19 14:03:52 +02:00
ryan
5e3358f278
Merge branch 'core/193/invalid-block-backlog' into core/192/ignore-invalid-blocks
2016-05-18 16:27:15 +02:00
ryan
661a4fe93f
check for bad blocks on get_spent
2016-05-12 18:02:50 +02:00
ryan
5e4e2eefb3
election status class constants
2016-05-12 12:39:53 +02:00
ryan
b772c1f2f4
resolve merge conflicts
2016-05-12 11:36:31 +02:00
ryan
42d94258c3
imperative docstring
2016-05-12 11:14:33 +02:00
Dimitri De Jonghe
3989346044
Merge pull request #264 from bigchaindb/fix/rename-validate_fulfillments
...
rename verify_signature to validate_fulfillments
2016-05-11 11:27:33 +02:00
diminator
a75eec9ad1
abstractmethod cleanup
...
docs update
2016-05-10 17:18:49 +02:00
diminator
ca34b58629
rename verify_signature to validate_fulfillments
2016-05-10 17:12:38 +02:00
vrde
644b15a831
Fix typo
2016-05-09 10:07:59 +02:00
troymc
8f2541cc6a
Fixed docstring about where Bigchain instance param vals come from
2016-05-06 10:40:29 +02:00
ryan
197eeb178b
get_owned_id checks block status
2016-05-05 15:17:49 +02:00
ryan
bb0bb9a1b4
get_tx_by_payload_hash checks block status (no tests)
2016-05-05 14:05:30 +02:00
ryan
475b9d97ce
factor out secondary index search
2016-05-05 11:49:55 +02:00
ryan
c36a95cfa6
factor out block status code
2016-05-05 10:48:35 +02:00
ryan
3121c9498a
get_transaction to ignore invalid blocks
2016-05-05 10:31:40 +02:00
ryan
b69a897b26
correct block model
2016-05-04 18:22:38 +02:00
ryan
9006e77296
remove unused queue
2016-05-03 16:10:42 +02:00
ryan
4f56ed43e1
comments on voting logic
2016-05-03 16:08:10 +02:00
ryan
a3d8c68298
count invalid votes as votes for invalid block
2016-05-03 15:28:46 +02:00
ryan
48641ea6ae
election checks pubkey is in block voters
2016-05-03 14:51:16 +02:00
ryan
efc713d709
correct verdict for odd number of voters, and tests
2016-05-02 16:01:18 +02:00
ryan
e0bfa94619
python3 style floordivs
2016-05-02 15:24:48 +02:00
ryan
8d2541a4d5
Merge branch 'master' into core/193/invalid-block-backlog
2016-05-02 14:07:23 +02:00
ryan
4f39bf911a
add vote signature checking
2016-05-02 12:07:30 +02:00
ryan
eb444c0771
generalize election status
2016-04-29 10:50:27 +02:00
ryan
1f7e1893f9
fixed vote counting
2016-04-28 15:33:08 +02:00
diminator
e3774bae82
Merge remote-tracking branch 'remotes/origin/master' into feat/128/multiple-input-output
...
Conflicts:
bigchaindb/crypto.py
bigchaindb/util.py
docs/source/python-server-api-examples.md
setup.py
2016-04-26 17:45:26 +02:00
Rodolphe Marques
131acb8cb7
better coments for the get_owned_ids method
2016-04-26 14:58:36 +02:00
Rodolphe Marques
665fea7107
replaced generic exception
2016-04-26 14:50:04 +02:00
ryan
3cd256a797
move quorum check to core
2016-04-26 13:33:10 +02:00
Rodolphe Marques
dcce6d9504
returns empty list. not None
2016-04-25 13:39:28 +02:00
diminator
a6dd9dc1fd
update to cryptoconditions 0.1.6: removes the need of the cryptography dependency
2016-04-22 12:23:51 +02:00