mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 03:21:06 +00:00
Fix some problems with prove_warp_sync (#8037)
* Fix some problems with prove_warp_sync * Update client/finality-grandpa/src/finality_proof.rs Co-authored-by: cheme <emericchevalier.pro@gmail.com> Co-authored-by: cheme <emericchevalier.pro@gmail.com>
This commit is contained in:
@@ -86,9 +86,9 @@ struct Request<B: BlockT> {
|
||||
const WARP_SYNC_FRAGMENTS_LIMIT: usize = 100;
|
||||
|
||||
/// Number of item with justification in warp sync cache.
|
||||
/// This should be customizable, setting a low number
|
||||
/// until then.
|
||||
const WARP_SYNC_CACHE_SIZE: usize = 20;
|
||||
/// This should be customizable, but setting it to the max number of fragments
|
||||
/// we return seems like a good idea until then.
|
||||
const WARP_SYNC_CACHE_SIZE: usize = WARP_SYNC_FRAGMENTS_LIMIT;
|
||||
|
||||
/// Handler for incoming grandpa warp sync requests from a remote peer.
|
||||
pub struct GrandpaWarpSyncRequestHandler<TBackend, TBlock: BlockT> {
|
||||
|
||||
Reference in New Issue
Block a user