Skip to content

Commit

Permalink
move docker imports to bitcoind function (#316)
Browse files Browse the repository at this point in the history
* move docker imports to bitcoind function

* update release notes
  • Loading branch information
stepansnigirev authored Aug 27, 2020
1 parent af073de commit c8150bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.7.1 August 26, 2020
- Bugfix: Move docker dependency away from main code (#316) (@stepansnigirev)

## v0.7.0 August 26, 2020
- Build: Create Specter Desktop app (#273, #308) (@stepansnigirev, @ben-kaufman)
- Bugfix: Fix importing PSBT functionality (#291) (@ben-kaufman)
Expand Down
9 changes: 5 additions & 4 deletions src/cryptoadvance/specter/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
from . import tor_util
import click

import docker

from .bitcoind import (BitcoindDockerController,
fetch_wallet_addresses_for_mining)
from .server import create_app, init_app
from .config import DATA_FOLDER

Expand Down Expand Up @@ -186,6 +182,11 @@ def run(debug=debug):
@click.option('--mining/--no-mining', default=True)
@click.option('--docker-tag', "docker_tag", default="latest")
def bitcoind(debug, mining, docker_tag):
import docker

from .bitcoind import (BitcoindDockerController,
fetch_wallet_addresses_for_mining)

mining_every_x_seconds = 15
if debug:
logging.getLogger().setLevel(logging.DEBUG)
Expand Down

0 comments on commit c8150bd

Please sign in to comment.