From 0ec2aa9fcb70e1ed7f8a8a7177b7934199763a3d Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Mon, 18 Dec 2023 16:20:19 +0100 Subject: [PATCH 1/2] fix: replace bundlr with arweave endpoint --- common/protocol/src/reactors/storageProviders/Bundlr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/src/reactors/storageProviders/Bundlr.ts b/common/protocol/src/reactors/storageProviders/Bundlr.ts index e32b5de0..46908d46 100644 --- a/common/protocol/src/reactors/storageProviders/Bundlr.ts +++ b/common/protocol/src/reactors/storageProviders/Bundlr.ts @@ -26,7 +26,7 @@ export class Bundlr implements IStorageProvider { private get bundlrClient(): BundlrClient { return new BundlrClient( - "http://node1.bundlr.network", + "https://up.arweave.net", "arweave", this.bundlrKeyfile ); From ab30e82db1c780169858d8b3163f9f8f55a77d85 Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Tue, 19 Dec 2023 11:48:05 +0100 Subject: [PATCH 2/2] fix: decrease max raw bundle size limit --- common/protocol/src/utils/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/src/utils/constants.ts b/common/protocol/src/utils/constants.ts index c9b6478b..6e47197f 100644 --- a/common/protocol/src/utils/constants.ts +++ b/common/protocol/src/utils/constants.ts @@ -10,7 +10,7 @@ export const REFRESH_TIME = 10 * 1000; export const ERROR_IDLE_TIME = 10 * 1000; // the max bundle size allowed to upload - currently 200MB -export const MAX_BUNDLE_BYTE_SIZE = 200 * 1024 * 1024; +export const MAX_BUNDLE_BYTE_SIZE = 100 * 1024 * 1024; // the max compression size - currently 2GB export const MAX_COMPRESSION_BYTE_SIZE = 2 * 10 ** 9;