Skip to content

Commit

Permalink
Merge pull request #4113 from eval-exec/exec/drop-deprecated-union-item
Browse files Browse the repository at this point in the history
molecule: Remove deprecated `SyncMessage` union items.
  • Loading branch information
doitian committed Sep 18, 2023
2 parents 08afa44 + 36844db commit 49b05e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 847 deletions.
1 change: 0 additions & 1 deletion sync/src/synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ impl Synchronizer {
}
}
packed::SyncMessageUnionReader::InIBD(_) => InIBDProcess::new(self, peer, nc).execute(),
_ => StatusCode::ProtocolMessageIsMalformed.with_context("unexpected sync message"),
}
}

Expand Down
27 changes: 5 additions & 22 deletions util/gen-types/schemas/extensions.mol
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,11 @@ table BlockFilterCheckPoints {
/* Types for Network/Sync */

union SyncMessage {
GetHeaders,
SendHeaders,
GetBlocks,
SendBlock,
SetFilter,
AddFilter,
ClearFilter,
FilteredBlock,
InIBD,
GetHeaders : 0,
SendHeaders : 1,
GetBlocks : 2,
SendBlock : 3,
InIBD : 8,
}

table GetHeaders {
Expand All @@ -269,19 +265,6 @@ table SendBlock {
block: Block,
}

table SetFilter {
hash_seed: Uint32,
filter: Bytes,
num_hashes: byte,
}

table AddFilter {
filter: Bytes,
}

table ClearFilter {
}

table FilteredBlock {
header: Header,
witnesses_root: Byte32,
Expand Down

0 comments on commit 49b05e1

Please sign in to comment.