Added contrib dir.

This commit is contained in:
tecnovert 2020-09-11 18:42:53 +02:00
parent 615b06cfa7
commit c48f35a12e
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
8 changed files with 9 additions and 8 deletions

View file

@ -6,8 +6,8 @@ lint_task:
- pip install flake8 - pip install flake8
- pip install codespell - pip install codespell
script: script:
- PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=segwit_addr.py,key.py,messages_pb2.py,.eggs - PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=basicswap/contrib,messages_pb2.py,.eggs
- codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,gitianpubkeys,*.pyc,*mnemonics.py - codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,gitianpubkeys,*.pyc,*mnemonics.py,basicswap/contrib
test_task: test_task:
environment: environment:

View file

@ -47,8 +47,8 @@ jobs:
- travis_retry pip install codespell==1.15.0 - travis_retry pip install codespell==1.15.0
before_script: before_script:
script: script:
- PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=segwit_addr.py,key.py,messages_pb2.py,.eggs - PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=basicswap/contrib,messages_pb2.py,.eggs
- codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,gitianpubkeys,*.pyc - codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,gitianpubkeys,*.pyc,basicswap/contrib
after_success: after_success:
- echo "End lint" - echo "End lint"
- stage: test - stage: test

View file

@ -10,7 +10,7 @@ import logging
import subprocess import subprocess
import basicswap.config as cfg import basicswap.config as cfg
import basicswap.segwit_addr as segwit_addr import basicswap.contrib.segwit_addr as segwit_addr
from .chainparams import ( from .chainparams import (
chainparams, chainparams,

View file

@ -7,7 +7,7 @@
import decimal import decimal
import json import json
import hashlib import hashlib
from .segwit_addr import bech32_decode, convertbits, bech32_encode from .contrib.segwit_addr import bech32_decode, convertbits, bech32_encode
COIN = 100000000 COIN = 100000000
DCOIN = decimal.Decimal(COIN) DCOIN = decimal.Decimal(COIN)

View file

@ -38,7 +38,7 @@ from basicswap.rpc import (
callrpc_cli, callrpc_cli,
waitForRPC, waitForRPC,
) )
from basicswap.key import ( from basicswap.contrib.key import (
ECKey, ECKey,
) )
from basicswap.http_server import ( from basicswap.http_server import (

View file

@ -42,7 +42,7 @@ from basicswap.rpc import (
callrpc_cli, callrpc_cli,
waitForRPC, waitForRPC,
) )
from basicswap.key import ( from basicswap.contrib.key import (
ECKey, ECKey,
) )
from basicswap.http_server import ( from basicswap.http_server import (
@ -87,6 +87,7 @@ def prepareOtherDir(datadir, nodeId, conf_file='litecoin.conf'):
fp.write('findpeers=0\n') fp.write('findpeers=0\n')
fp.write('debug=1\n') fp.write('debug=1\n')
fp.write('debugexclude=libevent\n') fp.write('debugexclude=libevent\n')
fp.write('fallbackfee=0.0002\n')
fp.write('acceptnonstdtxn=0\n') fp.write('acceptnonstdtxn=0\n')