22 Commits

Author SHA1 Message Date
ryan
03454f7087 remove obsolete tests 2016-08-01 14:55:37 +02:00
vrde
873ea891d6
Refactor method signature 2016-07-21 13:50:19 +02:00
vrde
03eda5242d
Fix test 2016-07-20 11:05:45 +02:00
vrde
0b1ce4ff4c
Remove duplicated tests 2016-07-19 17:51:42 +02:00
vrde
73d6add36f
Remove block_number [pair prog w/ @rhsimplex] 2016-07-13 17:30:13 +02:00
Ryan Henderson
073dcdaa79 Votes table (#379)
* create votes table and indexes

* initial db call rewrite

* setup votes table in tests

* rewrite election status

* update api tests

* update tests

* bigchaindb set-shards should change 'votes' table too

* Forgot to add change to bigchain.py in last commit

* update test

* move exceptions

* collapse line

* revise test

* remove obsolete test

* remove votelist from blocks

* sharding and replication

* documentation changes

* language change

* more readable assertions

* fix exception

* test exceptions

* remove parameter

* remove loop
2016-07-13 09:40:07 +02:00
troymc
cd7070722f Renamed Bigchain.federation_nodes as Bigchain.nodes_except_me 2016-06-16 16:58:01 +02:00
Rodolphe Marques
c56f745ba6 fixed failing test 2016-06-15 12:22:19 +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
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