mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
revert data-models/vote-model documentation
This commit is contained in:
parent
d9bc90e5aa
commit
ea6ae4db20
@ -16,4 +16,4 @@ This section unpacks each one in turn.
|
|||||||
asset-model
|
asset-model
|
||||||
crypto-conditions
|
crypto-conditions
|
||||||
block-model
|
block-model
|
||||||
../schema/vote
|
vote-model
|
||||||
|
20
docs/server/source/data-models/vote-model.md
Normal file
20
docs/server/source/data-models/vote-model.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# The Vote Model
|
||||||
|
|
||||||
|
A vote has the following structure:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"id": "<RethinkDB-generated ID for the vote>",
|
||||||
|
"node_pubkey": "<the public key of the voting node>",
|
||||||
|
"vote": {
|
||||||
|
"voting_for_block": "<id of the block the node is voting for>",
|
||||||
|
"previous_block": "<id of the block previous to this one>",
|
||||||
|
"is_block_valid": "<true|false>",
|
||||||
|
"invalid_reason": "<None|DOUBLE_SPEND|TRANSACTIONS_HASH_MISMATCH|NODES_PUBKEYS_MISMATCH",
|
||||||
|
"timestamp": "<Unix time when the vote was generated, provided by the voting node>"
|
||||||
|
},
|
||||||
|
"signature": "<signature of vote>"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: The `invalid_reason` was not being used and may be dropped in a future version of BigchainDB. See [Issue #217](https://github.com/bigchaindb/bigchaindb/issues/217) on GitHub.
|
Loading…
x
Reference in New Issue
Block a user