diff --git a/core/commands/cmdutils/utils.go b/core/commands/cmdutils/utils.go index ebbbca64e46d..3ad27f42d0f2 100644 --- a/core/commands/cmdutils/utils.go +++ b/core/commands/cmdutils/utils.go @@ -11,7 +11,7 @@ import ( const ( AllowBigBlockOptionName = "allow-big-block" - SoftBlockLimit = 1024 * 1024 // https://github.com/ipfs/go-ipfs/issues/7421#issuecomment-910833499 + SoftBlockLimit = 1024 * 1024 * 2 // https://github.com/web3-storage/web3.storage/pull/1269#issuecomment-1108834504 ) var AllowBigBlockOption cmds.Option @@ -44,7 +44,7 @@ func CheckBlockSize(req *cmds.Request, size uint64) error { // when transmitting them over BitSwap. The 1 MiB constant is an // unenforced and undeclared rule of thumb hard-coded here. if size > SoftBlockLimit { - return fmt.Errorf("produced block is over 1MiB: big blocks can't be exchanged with other peers. consider using UnixFS for automatic chunking of bigger files, or pass --allow-big-block to override") + return fmt.Errorf("produced block is over 2MiB: big blocks can't be exchanged with other peers. consider using UnixFS for automatic chunking of bigger files, or pass --allow-big-block to override") } return nil