Skip to content

Commit 2929c58

Browse files
committed
Make doc a bit more user-friendly by using default postgres port (Fix #498)
1 parent 326d9c5 commit 2929c58

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

NBXplorer/Backend/Repository.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,15 @@ FROM unnest(@records) AS r (script),
388388
keypath, descriptors_scripts_metadata->>'redeem' redeem,
389389
descriptors_scripts_metadata->>'blindedAddress' blinded_addr,
390390
descriptors_scripts_metadata->>'blindingKey' blindingKey,
391+
<<<<<<< Updated upstream
391392
descriptor_metadata->>'descriptor' descriptor
392393
FROM nbxv1_keypath_info ki
393394
WHERE ki.code=@code AND ki.script=r.script
395+
=======
396+
descriptor_metadata->>'feature' feature
397+
FROM nbxv1_keypath_info ki
398+
WHERE ki.code=@code AND ki.script=r.script {query.GetKeyPathInfoPredicate()}
399+
>>>>>>> Stashed changes
394400
) ts
395401
JOIN wallets w USING(wallet_id)",
396402
new { code = Network.CryptoCode, records = scripts.Select(s => s.ToHex()).ToArray() });
@@ -400,8 +406,6 @@ JOIN wallets w USING(wallet_id)",
400406
if (r.derivation is not null && r.keypath is null)
401407
continue;
402408
BitcoinAddress addr = GetAddress(r);
403-
bool isExplicit = r.derivation is null;
404-
bool isDescriptor = !isExplicit;
405409
var script = Script.FromHex(r.script);
406410
DerivationStrategyBase derivationStrategy = r.derivation is not null ? Network.DerivationStrategyFactory.Parse(r.derivation) : null;
407411
var keypath = r.keypath is not null ? KeyPath.Parse(r.keypath) : null;

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ On Linux:
123123
Example, if you have ltc node and btc node on regtest (default configuration), and want to connect to them: (see documentation for other options in the [postgres connection string](https://www.npgsql.org/doc/connection-string-parameters.html))
124124

125125
```bash
126-
./run.sh --chains=btc,ltc --network=regtest --postgres "User ID=postgres;Host=127.0.0.1;Port=39382;Database=nbxplorer"
126+
./run.sh --chains=btc,ltc --network=regtest --postgres "User ID=postgres;Host=127.0.0.1;Port=5432;Database=nbxplorer"
127127
```
128128

129129
## How to use the API?

0 commit comments

Comments
 (0)