- fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
- self.common_fields.temporary_channel_id.write(w)?;
- self.funding_satoshis.write(w)?;
- self.common_fields.dust_limit_satoshis.write(w)?;
- self.common_fields.max_htlc_value_in_flight_msat.write(w)?;
- self.common_fields.htlc_minimum_msat.write(w)?;
- self.common_fields.minimum_depth.write(w)?;
- self.common_fields.to_self_delay.write(w)?;
- self.common_fields.max_accepted_htlcs.write(w)?;
- self.common_fields.funding_pubkey.write(w)?;
- self.common_fields.revocation_basepoint.write(w)?;
- self.common_fields.payment_basepoint.write(w)?;
- self.common_fields.delayed_payment_basepoint.write(w)?;
- self.common_fields.htlc_basepoint.write(w)?;
- self.common_fields.first_per_commitment_point.write(w)?;
- self.second_per_commitment_point.write(w)?;
-
- encode_tlv_stream!(w, {
+ fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
+ self.common_fields.temporary_channel_id.write(w)?;
+ self.funding_satoshis.write(w)?;
+ self.common_fields.dust_limit_satoshis.write(w)?;
+ self.common_fields.max_htlc_value_in_flight_msat.write(w)?;
+ self.common_fields.htlc_minimum_msat.write(w)?;
+ self.common_fields.minimum_depth.write(w)?;
+ self.common_fields.to_self_delay.write(w)?;
+ self.common_fields.max_accepted_htlcs.write(w)?;
+ self.common_fields.funding_pubkey.write(w)?;
+ self.common_fields.revocation_basepoint.write(w)?;
+ self.common_fields.payment_basepoint.write(w)?;
+ self.common_fields.delayed_payment_basepoint.write(w)?;
+ self.common_fields.htlc_basepoint.write(w)?;
+ self.common_fields.first_per_commitment_point.write(w)?;
+ self.second_per_commitment_point.write(w)?;
+
+ encode_tlv_stream!(w, {