refactor: make chainsync machine agnostic of content
This commit is contained in:
parent
e10575f2da
commit
20d9019375
18 changed files with 148 additions and 94 deletions
|
|
@ -15,7 +15,7 @@ authors = [
|
|||
[dependencies]
|
||||
pallas-multiplexer = { version = "0.3.0", path = "../pallas-multiplexer/" }
|
||||
pallas-machines = { version = "0.3.0", path = "../pallas-machines/" }
|
||||
minicbor = { version="0.11.4", features=["half", "std"] }
|
||||
minicbor = { version="0.12", features=["half", "std"] }
|
||||
log = "0.4.14"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue