Currently, an upper limit of 1 MiB is hard-coded. This should be configurable, defaulting to 1 MiB.
Generally, the idea is still that the ledger should not contain large content, so setting this to 1 GiB or similar is discouraged. The solution to this is to reference content stored elsewhere (by hash) instead of embedding it.