nervosnetwork / fiber

21 stars 11 forks source link

How to query the configuration items of the channel. #280

Open gpBlockchain opened 1 month ago

gpBlockchain commented 1 month ago

Through the logs, we can see that the configuration items of a channel, in addition to fee_rate, include other parameters. Is it necessary to display these parameters through RPC?

[src/fiber/graph.rs:90:9] self.node1_to_node2.as_ref() = Some(
    ChannelUpdateInfo {
        version: 1729667651,
        timestamp: 1729667651163,
        enabled: true,
        cltv_expiry_delta: 86400,
        htlc_minimum_value: 0,
        htlc_maximum_value: 0,
        fee_rate: 1000,
        last_update_message: ChannelUpdate {
            signature: Some(
                EcdsaSignature(
                    3045022100ed15dd877ffaca0cc732a0e3c8f1388b00bca383c6991d2ed003291cfac64e5202203deb04cffc20c75d04e587778062acea470f4967dac914ea01a7a0c6999b3adb,
                ),
            ),
            chain_hash: Hash256(0x0000000000000000000000000000000000000000000000000000000000000000),
            channel_outpoint: OutPoint(0x3ea084b6cd6ca7c90d1222eb1533496adc5ebfe0c3322de30009eda4eb6e470c00000000),
            version: 1729667651,
            message_flags: 1,
            channel_flags: 0,
            tlc_locktime_expiry_delta: 86400,
            tlc_minimum_value: 0,
            tlc_maximum_value: 0,
            tlc_fee_proportional_millionths: 1000,
        },
    },
)
[src/fiber/graph.rs:90:9] self.node2_to_node1.as_ref() = Some(
    ChannelUpdateInfo {
        version: 1729667651,
        timestamp: 1729667651160,
        enabled: true,
        cltv_expiry_delta: 86400,
        htlc_minimum_value: 200000000,
        htlc_maximum_value: 0,
        fee_rate: 1000,
        last_update_message: ChannelUpdate {
            signature: Some(
                EcdsaSignature(
                    3045022100a2ca564a08c83a4f9ddc5589ea9c92ffc750b3df4afa83a0f4e56329a838baa802207686933c68dc7fd6af4098cb72b01988e7a2b237cd4974170b66e9252f3c1327,
                ),
            ),
            chain_hash: Hash256(0x0000000000000000000000000000000000000000000000000000000000000000),
            channel_outpoint: OutPoint(0x3ea084b6cd6ca7c90d1222eb1533496adc5ebfe0c3322de30009eda4eb6e470c00000000),
            version: 1729667651,
            message_flags: 0,
            channel_flags: 0,
            tlc_locktime_expiry_delta: 86400,
            tlc_minimum_value: 200000000,
            tlc_maximum_value: 0,
            tlc_fee_proportional_millionths: 1000,
        },
    },
)
chenyukang commented 1 month ago

graph_channel will display information of channels.