Reduce size of futures in HTTP API to prevent stack overflows (#5104)

* Box::pin a few big futures

* Arc the blocks early in publication

* Fix more tests
This commit is contained in:
Michael Sproul
2024-01-23 15:32:07 +11:00
committed by GitHub
parent 02d1f36090
commit a403138ed0
17 changed files with 116 additions and 123 deletions

View File

@@ -250,7 +250,7 @@ impl TestRig {
};
Self {
chain,
next_block: Arc::new(block),
next_block: block,
next_blobs: blob_sidecars,
attestations,
next_block_attestations,