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)
| 5289 | |
| 5290 | |
| 5291 | def 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') |
no test coverage detected