12 Commits

Author SHA1 Message Date
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
diminator
8dc0c48681
fixed tests 2016-04-08 15:56:51 +02:00
diminator
ec08bca3d0
fulfillment preparations 2016-04-06 16:21:35 +02:00
diminator
4138842eed import keys from cryptoconditions
set ed25519 as default
2016-03-23 19:14:59 +01:00
vrde
1fa47d4b5f Move last methods to util 2016-03-03 03:09:54 +01:00
vrde
3bfb6bc4c4 Merge remote-tracking branch 'origin/develop' into feat/17/provide-a-restful-api 2016-02-24 12:02:54 +01:00
Rodolphe Marques
4326c863ac Fixed how validate_transaction handles double spends.
Create tests.
Fixed some flake8 warnings
2016-02-23 13:48:31 +01:00
vrde
b3b54e7529 Move common code to util module 2016-02-22 23:46:32 +01:00
Rodolphe Marques
024817a4ac Initial implementation of the fix 2016-02-22 19:45:55 +01:00
vrde
4c177a9946 Replace == with is for some tests
Replace all occurrences of:
 - `== True` with `is True`
 - `== False` with `is False`
 - `== None` with `is None`
2016-02-18 11:42:34 +01:00
Sylvain Bellemare
df242a35c6 Use pytest fixtures instead of imports 2016-02-15 16:30:37 +01:00
Wrigley the Buffalo
841cabe8c6 Add code, have fun! 2016-02-10 19:55:33 +01:00