add reverse mapping

This commit is contained in:
Tamas Blummer 2019-09-03 19:59:48 +02:00
parent 3266c192b6
commit c93b1ed8ce
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ impl Decodable for RawNetworkMessage {
"cfheaders" => NetworkMessage::CFHeaders(Decodable::consensus_decode(&mut mem_d)?),
"getcfckpt" => NetworkMessage::GetCFCheckpt(Decodable::consensus_decode(&mut mem_d)?),
"cfcheckpt" => NetworkMessage::CFCheckpt(Decodable::consensus_decode(&mut mem_d)?),
"reject" => NetworkMessage::Reject(Decodable::consensus_decode(&mut mem_d)?),
"alert" => NetworkMessage::Alert(Decodable::consensus_decode(&mut mem_d)?),
_ => return Err(encode::Error::UnrecognizedNetworkCommand(cmd)),
};