channeld: use explicit --experimental-upgrade flag, not #ifdef EXPERIMENTAL_FEATURES

And no longer insist on opt_quiesce.

Changelog-EXPERIMENTAL: Config: `--experimental-upgrade-protocol` enables simple channel upgrades.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-05-22 10:21:44 +09:30
parent 6c23349c72
commit ccf084156d
13 changed files with 115 additions and 177 deletions

View File

@@ -266,6 +266,15 @@ msgdata,channel_reestablish,next_commitment_number,u64,
msgdata,channel_reestablish,next_revocation_number,u64,
msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32
msgdata,channel_reestablish,my_current_per_commitment_point,point,
msgdata,channel_reestablish,tlvs,channel_reestablish_tlvs,
tlvtype,channel_reestablish_tlvs,next_to_send,1
tlvdata,channel_reestablish_tlvs,next_to_send,commitment_number,tu64,
tlvtype,channel_reestablish_tlvs,desired_channel_type,3
tlvdata,channel_reestablish_tlvs,desired_channel_type,type,byte,...
tlvtype,channel_reestablish_tlvs,current_channel_type,5
tlvdata,channel_reestablish_tlvs,current_channel_type,type,byte,...
tlvtype,channel_reestablish_tlvs,upgradable_channel_type,7
tlvdata,channel_reestablish_tlvs,upgradable_channel_type,type,byte,...
msgtype,peer_storage,7
msgdata,peer_storage,len,u16,
msgdata,peer_storage,blob,byte,len
1 msgtype,init,16
266 msgdata,channel_reestablish,next_revocation_number,u64,
267 msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32
268 msgdata,channel_reestablish,my_current_per_commitment_point,point,
269 msgdata,channel_reestablish,tlvs,channel_reestablish_tlvs,
270 tlvtype,channel_reestablish_tlvs,next_to_send,1
271 tlvdata,channel_reestablish_tlvs,next_to_send,commitment_number,tu64,
272 tlvtype,channel_reestablish_tlvs,desired_channel_type,3
273 tlvdata,channel_reestablish_tlvs,desired_channel_type,type,byte,...
274 tlvtype,channel_reestablish_tlvs,current_channel_type,5
275 tlvdata,channel_reestablish_tlvs,current_channel_type,type,byte,...
276 tlvtype,channel_reestablish_tlvs,upgradable_channel_type,7
277 tlvdata,channel_reestablish_tlvs,upgradable_channel_type,type,byte,...
278 msgtype,peer_storage,7
279 msgdata,peer_storage,len,u16,
280 msgdata,peer_storage,blob,byte,len