mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pyln-testing: Just warn if we get an unexpected fee request
This was breaking a couple of tests if the pyln version was not synced up with `lightningd`, so now we just warn (these are then collected when running in pytest and highlighted).
This commit is contained in:
committed by
neil saitug
parent
e7b555dd90
commit
64b0487228
@@ -21,6 +21,7 @@ import struct
|
|||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
import warnings
|
||||||
|
|
||||||
BITCOIND_CONFIG = {
|
BITCOIND_CONFIG = {
|
||||||
"regtest": 1,
|
"regtest": 1,
|
||||||
@@ -871,9 +872,10 @@ class LightningNode(object):
|
|||||||
elif params == [100, 'ECONOMICAL']:
|
elif params == [100, 'ECONOMICAL']:
|
||||||
feerate = feerates[3] * 4
|
feerate = feerates[3] * 4
|
||||||
else:
|
else:
|
||||||
raise ValueError("Don't have a feerate set for {}/{}.".format(
|
warnings.warn("Don't have a feerate set for {}/{}.".format(
|
||||||
params[0], params[1],
|
params[0], params[1],
|
||||||
))
|
))
|
||||||
|
feerate = 42
|
||||||
return {
|
return {
|
||||||
'id': r['id'],
|
'id': r['id'],
|
||||||
'error': None,
|
'error': None,
|
||||||
|
|||||||
Reference in New Issue
Block a user