Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 0da246c6 authored by Éloïs's avatar Éloïs
Browse files

feat(bda-types):add requests CurrentBlockstamp,Sync,CompressedBlockChunk

parent cccec7a8
Pipeline #12662 canceled with stages
in 8 minutes and 9 seconds
......@@ -92,6 +92,14 @@ pub enum BcaReqTypeV0 {
PeersV10 {
n: usize,
},
CurrentBlockstamp,
Sync {
from: u32,
to: Option<u32>,
},
CompressedBlockChunk {
chunk_id: usize,
},
}
// Request types helpers
......@@ -131,6 +139,16 @@ pub enum BcaRespTypeV0 {
Identities(ArrayVec<Option<Identity>, 16>),
CurrentUd(SourceAmount),
PeersV10(Vec<Peer>),
CurrentBlockstamp(Blockstamp),
Sync {
blocks_chunks_hashs: Vec<Hash>,
peers: Vec<Peer>,
target_blockstamp: Blockstamp,
},
CompressedBlockChunk {
chunk_id: usize,
compressed_data: Vec<u8>,
},
}
// Result and error
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment