From 338695a96b4432ac9d02b41c1ea19caa6703a8ba Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:58:32 +0200 Subject: [PATCH 1/2] Allow bigger PSBTs in textarea --- docker/docker-compose.yml | 6 +++--- src/Shared/PSBTSign.razor | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0e472cbd..1334985e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -29,8 +29,8 @@ services: NBXPLORER_TRIMEVENTS: 10000 NBXPLORER_SIGNALFILESDIR: /datadir #Keeping dbtrie for dev until it is fully removed since we would need to modify nbxplorer docker image to wait for the db to be ready - NBXPLORER_DBTRIE: 1 -# NBXPLORER_POSTGRES: Host=nbxplorer_postgres;Port=5432;Database=nbxplorer;Username=rw_dev;Password=rw_dev + NBXPLORER_DBTRIE: 0 + NBXPLORER_POSTGRES: Host=nbxplorer_postgres;Port=5432;Database=nbxplorer;Username=rw_dev;Password=rw_dev NBXPLORER_CHAINS: "btc" NBXPLORER_BTCRPCUSER: "polaruser" NBXPLORER_BTCRPCPASSWORD: "polarpass" @@ -61,4 +61,4 @@ volumes: bitcoin_datadir: nbxplorer_datadir: nbxplorer_postgres_data: - nodeguard_data_keys_dir: \ No newline at end of file + nodeguard_data_keys_dir: diff --git a/src/Shared/PSBTSign.razor b/src/Shared/PSBTSign.razor index 9ed297ff..45cb4eb6 100644 --- a/src/Shared/PSBTSign.razor +++ b/src/Shared/PSBTSign.razor @@ -84,7 +84,7 @@ { var streamRef = await JS.InvokeAsync("getText", _PSBTField); - var stream = await streamRef.OpenReadStreamAsync(maxAllowedSize: 50_000); + var stream = await streamRef.OpenReadStreamAsync(maxAllowedSize: 1024L * 1024L); // 1MB var streamReader = new StreamReader(stream); return await streamReader.ReadToEndAsync(); From f18d6ad44b90ba4e98cb015f069a5f775874d4f7 Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:00:51 +0200 Subject: [PATCH 2/2] removed dbtrie option and comment --- docker/docker-compose.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1334985e..5bb4af40 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -28,8 +28,6 @@ services: NBXPLORER_BIND: 0.0.0.0:32838 NBXPLORER_TRIMEVENTS: 10000 NBXPLORER_SIGNALFILESDIR: /datadir - #Keeping dbtrie for dev until it is fully removed since we would need to modify nbxplorer docker image to wait for the db to be ready - NBXPLORER_DBTRIE: 0 NBXPLORER_POSTGRES: Host=nbxplorer_postgres;Port=5432;Database=nbxplorer;Username=rw_dev;Password=rw_dev NBXPLORER_CHAINS: "btc" NBXPLORER_BTCRPCUSER: "polaruser"