mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: ReadTheDocs build fails. (#2419)
Solution: Move the schema spec for validator election to common directory so that the yaml schema files can be found
This commit is contained in:
parent
199adc81b6
commit
5adc1cac3e
@ -31,6 +31,9 @@ _, TX_SCHEMA_CREATE = _load_schema('transaction_create_' +
|
||||
_, TX_SCHEMA_TRANSFER = _load_schema('transaction_transfer_' +
|
||||
TX_SCHEMA_VERSION)
|
||||
|
||||
_, TX_SCHEMA_VALIDATOR_ELECTION = _load_schema('transaction_validator_election_' +
|
||||
TX_SCHEMA_VERSION)
|
||||
|
||||
|
||||
def _validate_schema(schema, body):
|
||||
"""Validate data against a schema"""
|
||||
|
@ -7,17 +7,12 @@ from bigchaindb.common.exceptions import (InvalidSignature,
|
||||
from bigchaindb.tendermint_utils import key_from_base64
|
||||
from bigchaindb.common.crypto import (public_key_from_ed25519_key)
|
||||
from bigchaindb.common.transaction import Transaction
|
||||
from bigchaindb.common.schema import (_load_schema,
|
||||
_validate_schema,
|
||||
TX_SCHEMA_VERSION,
|
||||
from bigchaindb.common.schema import (_validate_schema,
|
||||
TX_SCHEMA_VALIDATOR_ELECTION,
|
||||
TX_SCHEMA_COMMON,
|
||||
TX_SCHEMA_CREATE)
|
||||
|
||||
|
||||
_, TX_SCHEMA_VALIDATOR_ELECTION = _load_schema('transaction_validator_election_' +
|
||||
TX_SCHEMA_VERSION, __file__)
|
||||
|
||||
|
||||
class ValidatorElection(Transaction):
|
||||
|
||||
VALIDATOR_ELECTION = 'VALIDATOR_ELECTION'
|
||||
|
Loading…
x
Reference in New Issue
Block a user