Vote Schema¶
Vote¶
A Vote is an endorsement of a Block (identified by a hash) by a node (identified by a public key).
The outer Vote object contains the details of the vote being made as well as the signature and identifying information of the node passing the vote.
Vote Details¶
Vote Details to be signed.
Vote.previous_block¶
type: string
ID (SHA3 hash) of the block that precedes the block being voted on. The notion of a “previous” block is subject to vote.
Vote.invalid_reason¶
type: string or null
Reason the block is voted invalid, or null
.
Note: The invalid_reason was not being used and may be dropped in a future version of BigchainDB. See Issue #217 on GitHub.
Vote.timestamp¶
type: string
Unix timestamp that the vote was created by the node, according to the system time of the node.