mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
added types_pb2 proxy to abci module, thereby avoiding the ugly github.com imports
Signed-off-by: Juergen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
afc9fc7fea
commit
e1b6c4b7b7
@ -9,7 +9,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from abci.application import BaseApplication
|
from abci.application import BaseApplication
|
||||||
from github.com.tendermint.tendermint.abci.types.types_pb2 import (
|
from abci import (
|
||||||
ResponseInitChain,
|
ResponseInitChain,
|
||||||
ResponseInfo,
|
ResponseInfo,
|
||||||
ResponseCheckTx,
|
ResponseCheckTx,
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from github.com.tendermint.tendermint.abci.types.types_pb2 import ResponseCheckTx, ResponseDeliverTx
|
from abci import ResponseCheckTx, ResponseDeliverTx
|
||||||
|
|
||||||
from bigchaindb import BigchainDB, App
|
from bigchaindb import BigchainDB, App
|
||||||
from bigchaindb.tendermint_utils import decode_transaction
|
from bigchaindb.tendermint_utils import decode_transaction
|
||||||
|
|||||||
@ -2,8 +2,7 @@ import codecs
|
|||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
|
|
||||||
from github.com.tendermint.tendermint.abci.types.types_pb2 import (ValidatorUpdate,
|
from abci import (ValidatorUpdate, PubKey)
|
||||||
PubKey)
|
|
||||||
from bigchaindb.common.exceptions import InvalidPublicKey
|
from bigchaindb.common.exceptions import InvalidPublicKey
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -85,7 +85,7 @@ install_requires = [
|
|||||||
'jsonschema~=2.5.1',
|
'jsonschema~=2.5.1',
|
||||||
'pyyaml>=4.2b1',
|
'pyyaml>=4.2b1',
|
||||||
'aiohttp~=3.0',
|
'aiohttp~=3.0',
|
||||||
'bigchaindb-abci==0.7.0',
|
'bigchaindb-abci==0.7.1',
|
||||||
'setproctitle~=1.1.0',
|
'setproctitle~=1.1.0',
|
||||||
'packaging~=18.0',
|
'packaging~=18.0',
|
||||||
]
|
]
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
import github.com.tendermint.tendermint.abci.types.types_pb2 as types
|
import abci as types
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import json
|
|||||||
import pytest
|
import pytest
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from github.com.tendermint.tendermint.abci.types.types_pb2 import (
|
from abci import (
|
||||||
PubKey,
|
PubKey,
|
||||||
ResponseInitChain,
|
ResponseInitChain,
|
||||||
RequestInitChain,
|
RequestInitChain,
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
import github.com.tendermint.tendermint.abci.types.types_pb2 as types
|
import abci as types
|
||||||
import json
|
import json
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user