Skip to content

Commit

Permalink
Allow bigger PSBTs in textarea (#398)
Browse files Browse the repository at this point in the history
* Allow bigger PSBTs in textarea

* removed dbtrie option and comment
  • Loading branch information
RodriFS authored Oct 23, 2024
1 parent 2e3b411 commit 208bb35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ 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: 1
# NBXPLORER_POSTGRES: Host=nbxplorer_postgres;Port=5432;Database=nbxplorer;Username=rw_dev;Password=rw_dev
NBXPLORER_POSTGRES: Host=nbxplorer_postgres;Port=5432;Database=nbxplorer;Username=rw_dev;Password=rw_dev
NBXPLORER_CHAINS: "btc"
NBXPLORER_BTCRPCUSER: "polaruser"
NBXPLORER_BTCRPCPASSWORD: "polarpass"
Expand Down Expand Up @@ -61,4 +59,4 @@ volumes:
bitcoin_datadir:
nbxplorer_datadir:
nbxplorer_postgres_data:
nodeguard_data_keys_dir:
nodeguard_data_keys_dir:
2 changes: 1 addition & 1 deletion src/Shared/PSBTSign.razor
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{
var streamRef =
await JS.InvokeAsync<IJSStreamReference>("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();
Expand Down

0 comments on commit 208bb35

Please sign in to comment.