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

Function send_funding_created

tests/test_connection.py:5291–5302  ·  view source on GitHub ↗

Drive the open to the point where we build the commitment transaction. openingd builds (and asserts on) the commitment transaction before it validates our signature, so a dummy signature is enough to get there.

(lconn, temp_chan_id)

Source from the content-addressed store, hash-verified

5289
5290
5291def send_funding_created(lconn, temp_chan_id):
5292 """Drive the open to the point where we build the commitment transaction.
5293
5294 openingd builds (and asserts on) the commitment transaction before it
5295 validates our signature, so a dummy signature is enough to get there.
5296 """
5297 msg = struct.pack('>H', WIRE_FUNDING_CREATED)
5298 msg += temp_chan_id
5299 msg += bytes(32) # funding_txid
5300 msg += struct.pack('>H', 0) # funding_output_index
5301 msg += bytes(64) # signature
5302 lconn.send_message(msg)
5303
5304
5305@pytest.mark.openchannel('v1')

Calls 1

send_messageMethod · 0.80

Tested by

no test coverage detected