sync: fix KZG batch verifier deadlock on timeout (#16141)

`validateWithKzgBatchVerifier` could timeout (12s) and once it times out
because `resChan` is unbuffered, the verifier will stuck at following
line at `verifyKzgBatch` as its waiting for someone to grab the result
from `resChan`:
```
	for _, verifier := range kzgBatch {
		verifier.resChan <- verificationErr
	}
```
Fix is to make kzg batch verification non blocking on timeouts by
buffering each request’s buffered size 1
This commit is contained in:
terence
2025-12-12 12:17:40 -05:00
committed by GitHub
parent d5127233e4
commit 096cba5b2d
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
### Fixed
- Fix deadlock in data column gossip KZG batch verification when a caller times out preventing result delivery.