Custody Info: Waits for initialization (#15804)

* Revert "`createLocalNode`: Wait before retrying to retrieve the custody group count if not present. (#15735)"

This reverts commit 4585cdc932.

* Revert "Fix no custody info available at start (#15732)"

This reverts commit 80eba4e6dd.

* Add context to `EarliestAvailableSlot` and `CustodyGroupCount` (no functional change).

* Remove double imports.

* `EarliestAvailableSlot` and `CustodyGroupCount`: Wait for custody info to be initialized.
This commit is contained in:
Manu NALEPA
2025-10-06 12:55:48 +02:00
committed by GitHub
parent 2a86132994
commit 4f9e56fc70
24 changed files with 121 additions and 117 deletions

View File

@@ -629,7 +629,7 @@ func TestFetchOriginSidecars(t *testing.T) {
// Compute the columns to request.
p2p := p2ptest.NewTestP2P(t)
custodyGroupCount, err := p2p.CustodyGroupCount()
custodyGroupCount, err := p2p.CustodyGroupCount(t.Context())
require.NoError(t, err)
samplingSize := max(custodyGroupCount, samplesPerSlot)