mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-26 17:24:20 +01:00
Make it possible to run the test suite in Python 3.4 (bytes.hex was introduced in 3.5)
This commit is contained in:
committed by
Christian Decker
parent
0b0708d86a
commit
896f7ef37d
@@ -8,6 +8,7 @@ import sqlite3
|
||||
import subprocess
|
||||
import threading
|
||||
import time
|
||||
import binascii
|
||||
|
||||
|
||||
BITCOIND_CONFIG = {
|
||||
@@ -259,7 +260,7 @@ class LightningD(TailableProc):
|
||||
if DEVELOPER:
|
||||
self.cmd_line += ['--dev-broadcast-interval=1000']
|
||||
if not random_hsm:
|
||||
self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())]
|
||||
self.cmd_line += ['--dev-hsm-seed={}'.format(binascii.hexlify(seed).decode('ascii'))]
|
||||
self.cmd_line += ["--{}={}".format(k, v) for k, v in sorted(LIGHTNINGD_CONFIG.items())]
|
||||
self.prefix = 'lightningd(%d)' % (port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user