Add batch add_many method to block processor (#5058) * Batch enqueue blocks in block processor Add `block_processor::add_many()` to validate work, queue blocks under one lock, and emit a single wakeup plus aggregated stats. Use the batch API in bootstrap processing, block-processing benchmarks, and node entry paths that previously enqueued blocks one by one. * Require explicit source for block_processor::add Remove the default `live` source from `block_processor::add` and update live and test call sites to pass the intended source explicitly. * Add block processor tests Cover add, add_blocking, and add_many behavior. * Count block processor stats on success Move `block_processor` stats increments after `add_impl()` so `process` and `process_blocking` are only counted when the block is actually added for processing.
__________
Type: commit
Hash: f511bf94458e7b76164192004fb8b1c48e498c12
Created: yesterday
__________
gr0v1ty/nano-node:f511bf94458e7b76164192004fb8b1c48e498c12
| Test Case | Status | Duration | Median Deviation | Log | Graph |
|---|---|---|---|---|---|
| 5n4pr_conf_10k_bintree | PASS | 107 s | -5.0 s | - | Show |
| 5n4pr_conf_10k_change | PASS | 200 s | 0.0 s | - | Show |
| 5n4pr_conf_change_dependant | PASS | 107 s | -8.0 s | - | - |
| 5n4pr_conf_change_independant | PASS | 114 s | -6.0 s | - | - |
| 5n4pr_conf_send_dependant | PASS | 119 s | 4.0 s | - | - |
| 5n4pr_conf_send_independant | PASS | 120 s | 3.0 s | - | - |
| 5n4pr_rocks_10k_bintree | PASS | 108 s | -6.0 s | - | - |
| 5n4pr_rocks_10k_change | FAIL | 142 s | -5.0 s | Show | - |