Function cfxcore::sync::message::handle_rlp_message
source · pub fn handle_rlp_message(
id: MsgId,
ctx: &Context<'_>,
rlp: &Rlp<'_>
) -> Result<bool, Error>
Expand description
handle the RLP encoded message with given context ctx
.
If the message not handled, return Ok(false)
.
Otherwise, return Ok(true)
if handled successfully
or Err(e) on any error.