Skip to content

Commit

Permalink
Use non-allocating key in more places (#7476)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Sep 22, 2024
1 parent 33f00ca commit 4f7d06a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nethermind/Nethermind.TxPool/BlobTxStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using DotNetty.Buffers;
using Nethermind.Core;
using Nethermind.Core.Crypto;
using Nethermind.Core.Extensions;
using Nethermind.Db;
using Nethermind.Int256;
using Nethermind.Serialization.Rlp;
Expand Down Expand Up @@ -160,7 +161,7 @@ private void EncodeAndSaveTxs(IList<Transaction> blockBlobTransactions, IDb db,
_txDecoder.Encode(rlpStream, transaction, RlpBehaviors.InMempoolForm);
}

db.Set(blockNumber, byteBuffer.Array);
db.PutSpan(blockNumber.ToBigEndianSpanWithoutLeadingZeros(out _), byteBuffer.AsSpan());
}

private int GetLength(IList<Transaction> blockBlobTransactions)
Expand Down

0 comments on commit 4f7d06a

Please sign in to comment.