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

Function bump_psbt

tests/test_opening.py:1802–1809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1800 return only_one(n.rpc.listpeerchannels()['channels'])
1801
1802 def bump_psbt():
1803 startweight = 42 + 173
1804 rate = int(find_next_feerate(l1, l2)[:-5])
1805 # We 2x the feerate to beat the min-relay fee
1806 next_feerate = '{}perkw'.format(rate * 2)
1807 return l1.rpc.utxopsbt(chan_amount, next_feerate, startweight,
1808 prev_utxos, reservedok=True,
1809 excess_as_change=True)['psbt']
1810
1811 # Build the replacement PSBT now: once the funding tx confirms, its
1812 # input is a spent UTXO and utxopsbt won't hand it to us at all.

Calls 2

find_next_feerateFunction · 0.85
utxopsbtMethod · 0.80

Tested by

no test coverage detected