Skip to content

Conversation

@masih
Copy link
Member

@masih masih commented May 3, 2024

Update the default delta value to 3 seconds and document the rationale behind it.

The defaults may change in the future once concrete measurements on a live network are performed.

@masih masih requested review from jsoares and ranchalp May 3, 2024 16:24
@masih masih enabled auto-merge May 3, 2024 16:25
Copy link
Contributor

@ranchalp ranchalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for the comment: my expectation is that 3s is the propagation time, and gpbft uses the RTT 2*delta.

Update the default delta value to 3 seconds and document the rationale
behind it.

The defaults may change in the future once concrete measurements on a
live network are performed.
@masih masih force-pushed the masih/defalut-delta-3s branch from 3601315 to 03f0a0b Compare May 3, 2024 16:49
@masih
Copy link
Member Author

masih commented May 3, 2024

except for the comment

Comment adjusted; thank you

@masih masih added this pull request to the merge queue May 3, 2024
Copy link
Member

@jsoares jsoares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on comment, looks good otherwise.

Comment on lines +40 to +42
// The default of 3 seconds for the value of Dela is based on the current EC
// propagation time (i.e. round-trip time of 6 seconds) as the initial
// propagation timeout. The actual propagation time may be significantly lower.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EC doesn't assume a 6s round-trip time, as that's not even well-defined for a pubsub network. What it assumes is an upper bound on the gossipsub network-wide propagation time, which is actually 10s now, following filecoin-project/lotus#9290.

The increase from 6s to 10s was due to having time to spare in the epoch envelope due to faster proof computation; it does not imply the need to go higher than 6s. The value remains user-configurable, 6s worked well, and we have reason to believe that we can go lower.

I think we can even skip talking about EC and just say that we have reason to believe, based on previous data, that 3s is enough.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted thank you; merge queue got the PR merged. I have take note to update the comments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, forgot we had it enabled in the repo 🤦

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my fault. I added this pr to queue before your excellent review.

Merged via the queue into main with commit 475921b May 3, 2024
@masih masih deleted the masih/defalut-delta-3s branch May 3, 2024 17:10
masih added a commit that referenced this pull request May 20, 2024
Fix the default delta value documentation to address previous review
comment; see:
 * #191 (comment)
github-merge-queue bot pushed a commit that referenced this pull request May 20, 2024
Fix the default delta value documentation to address previous review
comment; see:
 * #191 (comment)
hlm156 added a commit to hlm156/gof3 that referenced this pull request Sep 28, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
hrybinzo added a commit to hrybinzo/gof3 that referenced this pull request Sep 28, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
zhuzhuxia721 added a commit to zhuzhuxia721/gof3 that referenced this pull request Sep 29, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
duwnerx added a commit to duwnerx/gof3 that referenced this pull request Sep 29, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
muthqh77 added a commit to muthqh77/gof3 that referenced this pull request Sep 29, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
sctilla08 added a commit to sctilla08/gof3 that referenced this pull request Sep 29, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
TrimanRanvir added a commit to TrimanRanvir/gof3 that referenced this pull request Oct 18, 2025
Fix the default delta value documentation to address previous review
comment; see:
 * filecoin-project/go-f3#191 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants