Skip to content

Commit

Permalink
Remove cautious/trusting metadata from WGPS
Browse files Browse the repository at this point in the history
  • Loading branch information
AljoschaMeyer committed Apr 25, 2024
1 parent d209518 commit 24aa8a1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions willowtest/specs/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,21 +664,13 @@ export const sync: Expression = site_template(
comment: ["Whether the other peer should eagerly forward ", rs("Payload"), " in this intersection."],
rhs: r("Bool"),
},
{
id: "DataSetMetadataTrusting",
name: "is_trusting",
comment: ["Whether the other peer should optimistically transmit payloads ", rs("Payload"), " in this intersection before verifying their hash, or whether they should only transmit payload data for which they know that it is indeed the correct data."],
rhs: r("Bool"),
},
],
}),
),

pinformative("The ", r("DataSetMetadata"), " messages let peers express whether the other peer should eagerly push ", rs("Payload"), " from the intersection of two ", rs("AreaOfInterest"), ", or whether they should send only ", r("DataSendEntry"), " messages for that intersection."),

pinformative(R("DataSetMetadata"), " messages are not binding, they merely present an optimisation opportunity. In particular, they allow expressing the ", code("Prune"), " and ", code("Graft"), " messages of the ", link("epidemic broadcast tree protocol", "https://repositorium.sdum.uminho.pt/bitstream/1822/38894/1/647.pdf"), "."),

pinformative("The ", r("DataSetMetadata"), " messages further let peers express a preference whether they'd like the other peer to verify all ", rs("Payload"), " before forwarding them (this should be the default behavior), or whether the peer is allowed to optimistically send ", rs("Payload"), " before completely verifying them."),

pseudocode(
new Struct({
Expand Down Expand Up @@ -1581,12 +1573,7 @@ export const sync: Expression = site_template(
code("1"), " ", r("iff"), " ", code(field_access(r("enc_data_eager"), "DataSetMetadataEagerness"), " == true"),
],
),
new BitfieldRow(
1,
[
code("1"), " ", r("iff"), " ", code(field_access(r("enc_data_eager"), "DataSetMetadataTrusting"), " == true"),
],
),
bitfieldrow_unused(1),
two_bit_int(8, field_access(r("enc_data_eager"), "DataSetMetadataSenderHandle")),
two_bit_int(10, field_access(r("enc_data_eager"), "DataSetMetadataReceiverHandle")),
bitfieldrow_unused(4),
Expand Down

0 comments on commit 24aa8a1

Please sign in to comment.