ryan
9c4314ffe7
uniform notation
2016-07-18 15:11:28 +02:00
ryan
1f7cf3df2e
optimize query
2016-07-18 15:09:33 +02:00
ryan
429d299b23
simplify query
2016-07-18 15:07:10 +02:00
vrde
553148c5e4
Add CyclicBlockchainError exception, fix tests
2016-07-18 13:49:42 +02:00
ryan
3c545f8bda
sort unvoted ascending order
2016-07-18 10:39:58 +02:00
ryan
87d332479b
filter query
2016-07-18 10:35:54 +02:00
ryan
5c11fc57fa
don't return all votes
2016-07-15 15:29:30 +02:00
vrde
8ac50bf0cc
Make sure we retrieve the last block in case timestamps collide
2016-07-14 17:10:55 +02:00
vrde
559b6a4fe6
Remove stale code
2016-07-14 16:21:03 +02:00
vrde
e0d0ab21d3
Add more blocks in inputs fixture
2016-07-14 15:03:16 +02:00
vrde
e9b4b99946
[wip] Attempt to remove genesis block
2016-07-13 17:54:16 +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
Rodolphe Marques
f2812c6c46
Merge pull request #411 from shauns/patch-1
...
Complete move from payload hashes to payload UUIDs
2016-07-04 16:05:29 +02:00
Shaun Stanworth
7812ebd38e
Bug-fix: Conn available on self
2016-07-01 15:08:24 +01:00
Shaun Stanworth
ede2f31095
Syntax-fix: trailing whitespace after continuation
2016-07-01 15:04:39 +01:00
Shaun Stanworth
e8bcac2ea3
Syntax-fix: Stray comment
2016-07-01 14:59:48 +01:00
Shaun Stanworth
fb5264ecff
Extract transaction list from matching blocks
2016-07-01 14:54:38 +01:00
Shaun Stanworth
b0350c521b
Switch to get_tx_by_payload_uuid
2016-07-01 11:16:57 +01:00
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