Skip to content

Instantly share code, notes, and snippets.

@yyforyongyu
Created December 5, 2022 17:40
Show Gist options
  • Save yyforyongyu/8292d739ee807bcc09abf226f4fad4e9 to your computer and use it in GitHub Desktop.
Save yyforyongyu/8292d739ee807bcc09abf226f4fad4e9 to your computer and use it in GitHub Desktop.
trimmed log
// Eve received messages from Carol.
2022-12-06 01:09:31.414 [DBG] PEER: Peer([carol]): Received ChannelAnnouncement(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob]) from [carol]@127.0.0.1:55297
2022-12-06 01:09:31.449 [DBG] PEER: Peer([carol]): Received ChannelUpdate(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob], mflags=00000001, cflags=00000000, update_time=2022-12-06 01:09:22 +0800 CST) from [carol]@127.0.0.1:55297
2022-12-06 01:09:31.543 [DBG] DISC: Processing ChannelAnnouncement: peer=[carol]@127.0.0.1:55297, short_chan_id=[SID: carol=>Bob]
2022-12-06 01:09:31.767 [DBG] PEER: Peer([carol]): Received ChannelUpdate(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob], mflags=00000001, cflags=00000001, update_time=2022-12-06 01:09:21 +0800 CST) from [carol]@127.0.0.1:55297
// Eve tries to add the edge info heard from Carol.
2022-12-06 01:09:31.827 [DBG] DISC: Adding edge for short_chan_id: [SID: carol=>Bob]
// Eve received messages from Bob.
2022-12-06 01:09:31.941 [DBG] PEER: Peer([Bob]): Received ChannelAnnouncement(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob]) from [Bob]@127.0.0.1:5565
// Carol's ChannelUpdate is waiting.
2022-12-06 01:09:31.981 [DBG] CRTR: Waiting for dependent on job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:31.982 [DBG] PEER: Peer([Bob]): Received ChannelUpdate(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob], mflags=00000001, cflags=00000001, update_time=2022-12-06 01:09:21 +0800 CST) from [Bob]@127.0.0.1:5565
2022-12-06 01:09:31.982 [DBG] CRTR: Received ChannelEdgeInfo for channel [SID: carol=>Bob]
// Carol's ChannelUpdate is waiting.
2022-12-06 01:09:31.982 [DBG] CRTR: Waiting for dependent on job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
// Working on Bob's ChannelAnnouncement.
2022-12-06 01:09:31.982 [DBG] DISC: Processing ChannelAnnouncement: peer=[Bob]@127.0.0.1:5565, short_chan_id=[SID: carol=>Bob]
2022-12-06 01:09:31.983 [DBG] PEER: Peer([Bob]): Received ChannelUpdate(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob], mflags=00000001, cflags=00000000, update_time=2022-12-06 01:09:22 +0800 CST) from [Bob]@127.0.0.1:5565
// Bob's ChannelUpdate is waiting.
2022-12-06 01:09:31.983 [DBG] CRTR: Waiting for dependent on job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:31.984 [DBG] CRTR: Waiting for dependent on job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
// Eve tries to add the edge info again, from Bob.
2022-12-06 01:09:31.984 [DBG] DISC: Adding edge for short_chan_id: [SID: carol=>Bob]
// Eve finished adding the edge info heard from Carol.
2022-12-06 01:09:32.162 [DBG] CRTR: New channel discovered! Link connects [Bob] and [carol] with ChannelPoint([ChanPoint: carol=>Bob]): chan_id=[SID: carol=>Bob], capacity=0.0015 BTC
// Eve rejected the edge info heard from Bob.
2022-12-06 01:09:32.240 [DBG] DISC: Router rejected edge for short_chan_id([SID: carol=>Bob]): ignoring msg for known chan_id=[SID: carol=>Bob]
2022-12-06 01:09:32.240 [DBG] CRTR: process network updates got: ignoring msg for known chan_id=[SID: carol=>Bob]
2022-12-06 01:09:32.240 [DBG] CRTR: Received ChannelEdgeInfo for channel [SID: carol=>Bob]
2022-12-06 01:09:32.240 [DBG] DISC: Processed ChannelAnnouncement: peer=[carol]@127.0.0.1:55297, short_chan_id=[SID: carol=>Bob]
2022-12-06 01:09:32.240 [DBG] DISC: Finish adding edge for short_chan_id: [SID: carol=>Bob]
2022-12-06 01:09:32.335 [DBG] CRTR: Signal deny for job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:32.335 [DBG] CRTR: Signal deny for job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:32.335 [DBG] CRTR: Signal deny for job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:32.335 [DBG] CRTR: Signal deny for job=lnwire.ChannelUpdate, scid=[SID: carol=>Bob]
2022-12-06 01:09:32.347 [DBG] PEER: Peer([Bob]): Sending ChannelAnnouncement(chain_hash=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, short_chan_id=[SID: carol=>Bob]) to [Bob]@127.0.0.1:5565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment