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

Function run_check

tests/plugins/reject_odd_funding_amounts.py:12–16  ·  view source on GitHub ↗
(funding_amt_str)

Source from the content-addressed store, hash-verified

10
11
12def run_check(funding_amt_str):
13 if Millisatoshi(funding_amt_str).to_satoshi() % 2 == 1:
14 return {'result': 'reject', 'error_message': "I don't like odd amounts"}
15
16 return {'result': 'continue'}
17
18
19@plugin.hook('openchannel')

Callers 2

on_openchannelFunction · 0.85
on_openchannel2Function · 0.85

Calls 2

MillisatoshiClass · 0.90
to_satoshiMethod · 0.80

Tested by

no test coverage detected