mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-20 21:33:08 +00:00
chore: remove k parameter for resubmitting blocks & adjust config
This commit is contained in:
parent
78eaac59f6
commit
0194376fe2
@ -5,8 +5,8 @@
|
||||
"is_genesis_random": true,
|
||||
"max_num_tx_in_block": 20,
|
||||
"mempool_max_size": 1000,
|
||||
"block_create_timeout_millis": 2000,
|
||||
"retry_pending_blocks_timeout_millis": 200000,
|
||||
"block_create_timeout_millis": 15000,
|
||||
"retry_pending_blocks_timeout_millis": 5000,
|
||||
"port": 3040,
|
||||
"bedrock_config": {
|
||||
"backoff": {
|
||||
|
||||
@ -183,11 +183,7 @@ async fn retry_pending_blocks(seq_core: &Arc<Mutex<SequencerCore>>) -> Result<()
|
||||
(pending_blocks, client)
|
||||
};
|
||||
|
||||
let k = 25;
|
||||
if pending_blocks.len() > k {
|
||||
pending_blocks.select_nth_unstable_by_key(k, |b| b.header.block_id);
|
||||
}
|
||||
for block in pending_blocks.iter().take(k) {
|
||||
for block in pending_blocks.iter() {
|
||||
info!(
|
||||
"Resubmitting pending block with id {}",
|
||||
block.header.block_id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user