refactor: make chainsync machine agnostic of content

This commit is contained in:
Santiago Carmuega 2021-12-14 21:43:29 -03:00
parent e10575f2da
commit 20d9019375
18 changed files with 148 additions and 94 deletions

View file

@ -1,6 +1,6 @@
use std::sync::mpsc::Receiver;
use log::{debug, info};
use log::debug;
use pallas_machines::{
primitives::Point, Agent, CodecError, DecodePayload, EncodePayload, MachineOutput,
PayloadDecoder, PayloadEncoder, Transition,
@ -47,7 +47,7 @@ impl EncodePayload for Message {
}
Message::Block { body } => {
e.array(2)?.u16(4)?;
e.bytes(&body)?;
e.bytes(body)?;
Ok(())
}
Message::BatchDone => {