feat: add blob store service (#4191)

Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
Matthias Seitz
2023-08-17 18:38:59 +02:00
committed by GitHub
parent ca99ee2ec9
commit a5b777a65f
8 changed files with 268 additions and 2 deletions

View File

@ -183,6 +183,7 @@ where
response: oneshot::Sender<RequestResult<PooledTransactions>>,
) {
if let Some(peer) = self.peers.get_mut(&peer_id) {
// TODO softResponseLimit 2 * 1024 * 1024
let transactions = self
.pool
.get_all(request.0)
@ -237,6 +238,8 @@ where
///
/// The message for new pooled hashes depends on the negotiated version of the stream.
/// See [NewPooledTransactionHashes](NewPooledTransactionHashes)
///
/// TODO add note that this never broadcasts full 4844 transactions
fn propagate_transactions(
&mut self,
to_propagate: Vec<PropagateTransaction>,
@ -803,7 +806,7 @@ impl Future for GetPooledTxRequestFut {
struct Peer {
/// Keeps track of transactions that we know the peer has seen.
transactions: LruCache<H256>,
/// A communication channel directly to the session task.
/// A communication channel directly to the peer's session task.
request_tx: PeerRequestSender,
/// negotiated version of the session.
version: EthVersion,