Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

614 in memory increases #615

Merged
merged 20 commits into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
429 changes: 285 additions & 144 deletions dexbot/strategies/staggered_orders.py

Large diffs are not rendered by default.

Empty file added tests/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import random

from bitshares import BitShares
from bitshares.instance import set_shared_bitshares_instance
from bitshares.genesisbalance import GenesisBalance
from bitshares.account import Account
from bitshares.asset import Asset
Expand Down Expand Up @@ -87,6 +88,9 @@ def bitshares_instance(bitshares_testnet):
bitshares = BitShares(
node='ws://127.0.0.1:{}'.format(bitshares_testnet.service_port), keys=PRIVATE_KEYS, num_retries=-1
)
# Shared instance allows to avoid any bugs when bitshares_instance is not passed explicitly when instantiating
# objects
set_shared_bitshares_instance(bitshares)
# Todo: show chain params when connectiong to unknown network
# https://github.com/bitshares/python-bitshares/issues/221

Expand Down Expand Up @@ -123,6 +127,10 @@ def _create_asset(asset, precision):
@pytest.fixture(scope='session')
def issue_asset(bitshares):
""" Issue asset shares to specified account

:param str asset: asset symbol to issue
:param float amount: amount to issue
:param str to: account name to receive new shares
"""

def _issue_asset(asset, amount, to):
Expand Down
20 changes: 20 additions & 0 deletions tests/node_config/logging.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[log.console_appender.stderr]
stream=std_error

#[log.file_appender.p2p]
#filename=logs/p2p/p2p.log

[logger.default]
level=debug
appenders=stderr

#[logger.p2p]
#level=debug
#appenders=stderr
#


#[logger.rpc]
#level=debug
#appenders=stderr
#
Loading