Anwer tx-submission reqs in chain-sync examples
This commit is contained in:
parent
4d6c036e01
commit
cca715cfc4
3 changed files with 13 additions and 12 deletions
|
|
@ -154,13 +154,7 @@ impl DecodePayload for Message {
|
|||
Ok(Message::RollBackward(point, tip))
|
||||
}
|
||||
4 => {
|
||||
let points_len = d
|
||||
.array()?
|
||||
.ok_or(MachineError::UnexpectedCbor("unbounded points array"))?;
|
||||
let mut points = Vec::with_capacity(points_len as usize);
|
||||
for i in 0..(points_len - 1) {
|
||||
points[i as usize] = Point::decode_payload(d)?;
|
||||
}
|
||||
let points = Vec::<Point>::decode_payload(d)?;
|
||||
Ok(Message::FindIntersect(points))
|
||||
}
|
||||
5 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue