Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
light-push/index.node.spec.ts: adjust metadata size to nwaku max size…
… adjustment The "Fails to push message with large meta" test used 10 ** 6 when `nwaku` node had MaxWakuMessageSize == 1MiB ( 1*2^20 .) `nwaku` establishes the max lightpush msg size as `const MaxRpcSize* = MaxWakuMessageSize + 64 * 1024` see: https://github.com/waku-org/nwaku/blob/07beea02095035f4f4c234ec2dec1f365e6955b8/waku/waku_lightpush/rpc_codec.nim#L15 In the PR waku-org/nwaku#2298 we reduced the MaxWakuMessageSize from 1MiB to 150KiB. Therefore, the 105024 number comes from substracting ( 1*2^20 - 150*2^10 ) to the original 10^6 that this test had when MaxWakuMessageSize == 1*2^20
- Loading branch information