Module unknown_proposal

Module unknown_proposal 

Source

Functionsยง

handle_reorg ๐Ÿ”’
Auxiliary function to handle a potential reorg. We first find our last common block with the peer, then grab the header sequence from that block until the proposal and check if it ranks higher than our current best ranking fork, to perform a reorg.
handle_unknown_proposal ๐Ÿ”’
Background task to handle an unknown proposal. Returns a boolean flag indicate if we should ban the channel.
handle_unknown_proposals
Background task to handle unknown proposals.
retrieve_peer_fork ๐Ÿ”’
Auxiliary function to generate provided peer headers hashes fork and its ranking, based on provided last common information.
retrieve_peer_header_hashes ๐Ÿ”’
Auxiliary function to retrieve the last common header and height, along with the headers sequence up to provided peer proposal.
retrieve_peer_headers_sequence_ranking ๐Ÿ”’
Auxiliary function to retrieve provided peer headers hashes sequence and its ranking, based on provided last common information.