revert data-models/vote-model documentation

This commit is contained in:
Scott Sadler 2016-12-09 09:49:27 +01:00
parent d9bc90e5aa
commit ea6ae4db20
2 changed files with 21 additions and 1 deletions

View File

@ -16,4 +16,4 @@ This section unpacks each one in turn.
asset-model
crypto-conditions
block-model
../schema/vote
vote-model

View 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.