Skip to content

Commit

Permalink
fix: set tipset sample size to 1 (#4328)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmih authored May 15, 2024
1 parent ae1f1f4 commit 5443b2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
- [#4297](https://github.com/ChainSafe/forest/pull/4297) Fixed double decoding
of message in the `Filecoin.WalletSign` RPC method.

- [#4328](https://github.com/ChainSafe/forest/pull/4328) Fix issues when
connecting to a network with fewer than 5 peers.

## Forest 0.17.2 "Dovakhin"

This is a **mandatory** release for all mainnet node operators. It changes the
Expand Down
2 changes: 1 addition & 1 deletion src/chain_sync/chain_muxer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use crate::chain_sync::{
// Sync the messages for one or many tipsets @ a time
// Lotus uses a window size of 8: https://github.com/filecoin-project/lotus/blob/c1d22d8b3298fdce573107413729be608e72187d/chain/sync.go#L56
const DEFAULT_REQUEST_WINDOW: usize = 8;
const DEFAULT_TIPSET_SAMPLE_SIZE: usize = 5;
const DEFAULT_TIPSET_SAMPLE_SIZE: usize = 1;
const DEFAULT_RECENT_STATE_ROOTS: i64 = 2000;

pub(in crate::chain_sync) type WorkerState = Arc<RwLock<SyncState>>;
Expand Down

0 comments on commit 5443b2e

Please sign in to comment.