Skip to content

Commit

Permalink
cleanup scripts
Browse files Browse the repository at this point in the history
Fixes to make some scripts work again, and a comment about a confusing dependency to tslite.
Note the the functions in util.py no longer work and need fixing.

I'm keeping these scripts for their documentation value (minimalistic examples of how to connect to electrum servers).
  • Loading branch information
PiRK committed Jun 19, 2023
1 parent 07e13a4 commit e99345d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 6 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The scripts in this folder are meant as basic examples of how to use the electrum API.

To test them, install Electrum ABC first as a python package on your system.
From the root of the repository, run:

pip install .
3 changes: 3 additions & 0 deletions scripts/bip70
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
# create a BIP70 payment request signed with a certificate

# Note that the tlslite package has not been updated since 2015, and no longer works
# with recent python versions.
# tlslite-ng is a drop-in replacement (`pip install tlslite-ng`)
import tlslite

from electrumabc import paymentrequest
Expand Down
8 changes: 0 additions & 8 deletions scripts/estimate_fee

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import time
from collections import defaultdict

from electrumabc import Connection # fixme
from electrumabc.interface import Interface
from electrumabc.interface import Connection, Interface
from electrumabc.network import parse_servers
from electrumabc.simple_config import SimpleConfig

Expand Down

0 comments on commit e99345d

Please sign in to comment.