pub struct ChannelAcceptResponse {
pub accept: bool,
pub pending_chan_id: Vec<u8>,
pub error: String,
pub upfront_shutdown: String,
pub csv_delay: u32,
pub reserve_sat: u64,
pub in_flight_max_msat: u64,
pub max_htlc_count: u32,
pub min_htlc_in: u64,
pub min_accept_depth: u32,
pub zero_conf: bool,
}
Fields§
§accept: bool
Whether or not the client accepts the channel.
pending_chan_id: Vec<u8>
The pending channel id to which this response applies.
error: String
An optional error to send the initiating party to indicate why the channel was rejected. This field should not contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
upfront_shutdown: String
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
csv_delay: u32
The csv delay (in blocks) that we require for the remote party.
reserve_sat: u64
The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).
in_flight_max_msat: u64
The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.
max_htlc_count: u32
The maximum number of htlcs that the remote peer can offer us.
min_htlc_in: u64
The minimum value in millisatoshis for incoming htlcs on the channel.
min_accept_depth: u32
The number of confirmations we require before we consider the channel open.
zero_conf: bool
Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.
Trait Implementations§
Source§impl Clone for ChannelAcceptResponse
impl Clone for ChannelAcceptResponse
Source§fn clone(&self) -> ChannelAcceptResponse
fn clone(&self) -> ChannelAcceptResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChannelAcceptResponse
impl Debug for ChannelAcceptResponse
Source§impl Default for ChannelAcceptResponse
impl Default for ChannelAcceptResponse
Source§impl<'de> Deserialize<'de> for ChannelAcceptResponse
impl<'de> Deserialize<'de> for ChannelAcceptResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ChannelAcceptResponse
impl Message for ChannelAcceptResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for ChannelAcceptResponse
impl PartialEq for ChannelAcceptResponse
Source§impl Serialize for ChannelAcceptResponse
impl Serialize for ChannelAcceptResponse
impl StructuralPartialEq for ChannelAcceptResponse
Auto Trait Implementations§
impl Freeze for ChannelAcceptResponse
impl RefUnwindSafe for ChannelAcceptResponse
impl Send for ChannelAcceptResponse
impl Sync for ChannelAcceptResponse
impl Unpin for ChannelAcceptResponse
impl UnwindSafe for ChannelAcceptResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request