MCPcopy Create free account
hub / github.com/ElementsProject/lightning / check_feerate

Function check_feerate

tests/utils.py:678–685  ·  view source on GitHub ↗
(nodes, actual_feerate, expected_feerate)

Source from the content-addressed store, hash-verified

676
677
678def check_feerate(nodes, actual_feerate, expected_feerate):
679 # Feerate can't be lower.
680 assert actual_feerate > expected_feerate - 2
681 if actual_feerate >= expected_feerate + 2:
682 if any([did_short_sig(n) for n in nodes]):
683 return
684 # Use assert as it shows the actual values on failure
685 assert actual_feerate < expected_feerate + 2

Callers 4

test_txprepareFunction · 0.90
test_fundpsbt_feeratesFunction · 0.90
test_peer_anchor_pushFunction · 0.90

Calls 2

did_short_sigFunction · 0.85
anyClass · 0.50

Tested by 4

test_txprepareFunction · 0.72
test_fundpsbt_feeratesFunction · 0.72
test_peer_anchor_pushFunction · 0.72