239 Commits

Author SHA1 Message Date
ryan
53b1c2aab5 block num 2016-05-25 16:18:07 +02:00
ryan
56da36e271 block num 2016-05-25 16:15:47 +02:00
diminator
9875cab3b3
cc-based escrow 2016-05-24 17:55:43 +02:00
ryan
61bae88cdb Merge branch 'master' into core/192/ignore-invalid-blocks 2016-05-19 16:32:46 +02:00
ryan
1eaa0ff913 test get_owned on invalid block 2016-05-19 16:27:04 +02:00
ryan
9fdc4fc9c2 test for query on spent in invalid block 2016-05-19 15:42:27 +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
635a416305 test get_transaction on invalid block 2016-05-19 13:54:47 +02:00
ryan
814d8a1663 wait for indexes 2016-05-18 17:09:26 +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
4dd6c78441 election tests use constants 2016-05-17 13:31:13 +02:00
diminator
76eb18329e Merge remote-tracking branch 'remotes/origin/master' into fix/260/add-output-condition-to-fulfillment-message 2016-05-12 16:03:19 +02:00
diminator
7630ec7fc6
refactor input_condition and get_fulfillment_message
test malleability
2016-05-12 15:30:58 +02:00
ryan
b772c1f2f4 resolve merge conflicts 2016-05-12 11:36:31 +02:00
diminator
0c9777686d
output_condition from fid instead of cid 2016-05-11 19:18:56 +02:00
diminator
c623ca56d0
fulfillment_message with output_condition
added tests
2016-05-11 19:02:37 +02:00
Rodolphe Marques
4c64b6642b Change the block process to use all the cpus instead of only one cpu per
task
2016-05-11 14:45:10 +02:00
diminator
ca34b58629
rename verify_signature to validate_fulfillments 2016-05-10 17:12:38 +02:00
ryan
929b1ab4dc force wait for index construction 2016-05-05 15:10:02 +02:00
ryan
9d7178e620 set up transactions index in test config 2016-05-05 11:15:49 +02:00
ryan
b69a897b26 correct block model 2016-05-04 18:22:38 +02:00
ryan
41328b3255 Merge branch 'master' into core/193/invalid-block-backlog 2016-05-03 15:37:56 +02:00
ryan
6de1d18efc test mismatched vote, block sigs 2016-05-03 15:36:41 +02:00
ryan
fd44ca7bf0 test update 2016-05-03 15:29:24 +02:00
ryan
dbfd35a39d tests for elector pubkey 2016-05-03 14:51:43 +02:00
Dimitri De Jonghe
4f28e873dc Merge pull request #233 from bigchaindb/bug/229/check-block-signature-and-pub-key
validate_block now checks if a federation node created the block.
2016-05-03 11:24:39 +02:00
ryan
a705dadb0a remove whitespace 2016-05-03 11:22:26 +02:00
ryan
efc713d709 correct verdict for odd number of voters, and tests 2016-05-02 16:01:18 +02:00
ryan
83f9e42207 user_public_key to user_vk 2016-05-02 14:39:27 +02:00
ryan
8d2541a4d5 Merge branch 'master' into core/193/invalid-block-backlog 2016-05-02 14:07:23 +02:00
ryan
02f65f7688 add tests 2016-05-02 14:04:15 +02:00
ryan
71bbc4fe4f test block liquidation 2016-04-29 16:15:41 +02:00
ryan
eb444c0771 generalize election status 2016-04-29 10:50:27 +02:00
ryan
cea2f6f554 queue test 2016-04-28 17:53:56 +02:00
ryan
8ab1cfdfa1 add test 2016-04-28 15:35:33 +02:00
Rodolphe Marques
1813c26879 validate_block now checks if a federation node created the block.
It checks to see if node_pubkey is a federation node and if the
signature is correct.

Created tests
2016-04-28 13:54:50 +02:00
diminator
6d99427bc7
hashlocked conditions + tests + docs 2016-04-21 18:59:48 +02:00
diminator
51addb9cc9
Merge remote-tracking branch 'remotes/origin/master' into feat/128/multiple-input-output
Conflicts:
	tests/test_util.py
2016-04-21 15:19:23 +02:00
diminator
6630533441
Merge remote-tracking branch 'remotes/origin/feat/128/multiple-input-output' into feat/201/escrow
Conflicts:
	tests/test_util.py
2016-04-21 14:59:22 +02:00
diminator
37ef8deb5b
docs: MIMO code and explanation 2016-04-19 11:25:29 +02:00
diminator
d5923d5c67 Merge remote-tracking branch 'remotes/origin/feat/128/multiple-input-output' into feat/127/crypto-conditions-ilp-bigchain-integration 2016-04-18 17:19:02 +02:00
diminator
2fdbb5bef8
updated multiple owner docs and cryptoconditions example 2016-04-18 17:18:10 +02:00
Rodolphe Marques
35fc0b5dad remove unnecessary sorts 2016-04-18 14:50:49 +02:00
diminator
85353f7002
updated cryptoconditions
replaced get_subcondition_from_vk
2016-04-15 16:32:27 +02:00
Rodolphe Marques
7576dc3937 Merge remote-tracking branch 'remotes/origin/feat/127/crypto-conditions-ilp-bigchain-integration' into feat/128/multiple-input-output 2016-04-15 11:43:25 +02:00
Rodolphe Marques
8bc8229c0d Added more tests 2016-04-15 11:33:43 +02:00
Rodolphe Marques
4af6a2037d Added tests for the default threshold signatures. 2016-04-14 17:35:09 +02:00
Rodolphe Marques
a4bbffa544 Refactor sign_tx. Fix tests
The implicit condition of create transactions is now handled by
`get_fulfillment_message` instead of `sign_tx`
2016-04-14 16:13:57 +02:00
Rodolphe Marques
cbb9a55de8 Added tests for get_spent with multi outputs txs 2016-04-14 14:21:07 +02:00
Rodolphe Marques
1c1fd47c80 Fix get_owned_ids to work with multiple outputs
Created more tests
2016-04-14 12:22:26 +02:00