Skip to content

Commit

Permalink
fix(rosenet-node): use gossipsubMaxInboundDataLength config instead o…
Browse files Browse the repository at this point in the history
…f default value
  • Loading branch information
mkermani144 committed Oct 19, 2024
1 parent 6a1c72b commit 463fc8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rosenet-node/lib/createRoseNetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ const createRoseNetNode = async (config: PartialRoseNetNodeConfig) => {
* maximum of around 5000*100KB=500MB is received in 3 heartbeats from
* a single stream, which is 500MB/3≃170MB.
*/
maxInboundDataLength: 170_000_000,
maxInboundDataLength:
RoseNetNodeContext.config.pubsub.gossipsubMaxInboundDataLength,
globalSignaturePolicy: 'StrictNoSign',
ignoreDuplicatePublishError: true,
}),
Expand Down

0 comments on commit 463fc8c

Please sign in to comment.