Commit dbdcde31 authored by pcw109550's avatar pcw109550 Committed by protolambda

Make MaxSpanBatchFieldSize equal to MaxRLPBytesPerChannel

parent 515de0eb
...@@ -22,7 +22,7 @@ const DerivationVersion0 = 0 ...@@ -22,7 +22,7 @@ const DerivationVersion0 = 0
// MaxSpanBatchFieldSize is the maximum amount of bytes that will be read from // MaxSpanBatchFieldSize is the maximum amount of bytes that will be read from
// a span batch to decode span batch field. This value cannot be larger than // a span batch to decode span batch field. This value cannot be larger than
// MaxRLPBytesPerChannel because single batch cannot be larger than channel size. // MaxRLPBytesPerChannel because single batch cannot be larger than channel size.
const MaxSpanBatchFieldSize = 10_000_000 const MaxSpanBatchFieldSize = MaxRLPBytesPerChannel
// MaxChannelBankSize is the amount of memory space, in number of bytes, // MaxChannelBankSize is the amount of memory space, in number of bytes,
// till the bank is pruned by removing channels, // till the bank is pruned by removing channels,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment