FIX: force using specific bitcoind wallet file
This commit is contained in:
parent
002fd6ffd0
commit
d71bedbcd1
@ -124,6 +124,11 @@ export class User {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async watchAddress(address) {
|
||||||
|
if (!address) return;
|
||||||
|
return this._bitcoindrpc.request('importaddress', [address, address, false]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LndHub no longer relies on redis balance as source of truth, this is
|
* LndHub no longer relies on redis balance as source of truth, this is
|
||||||
* more a cache now. See `this.getCalculatedBalance()` to get correct balance.
|
* more a cache now. See `this.getCalculatedBalance()` to get correct balance.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
let config = {
|
let config = {
|
||||||
bitcoind: {
|
bitcoind: {
|
||||||
rpc: 'http://login:password@1.1.1.1:8332',
|
rpc: 'http://login:password@1.1.1.1:8332/wallet/wallet.dat',
|
||||||
},
|
},
|
||||||
redis: {
|
redis: {
|
||||||
port: 12914,
|
port: 12914,
|
||||||
|
@ -319,6 +319,7 @@ router.get('/getbtc', async function(req, res) {
|
|||||||
await u.generateAddress();
|
await u.generateAddress();
|
||||||
address = await u.getAddress();
|
address = await u.getAddress();
|
||||||
}
|
}
|
||||||
|
u.watchAddress(address);
|
||||||
|
|
||||||
res.send([{ address }]);
|
res.send([{ address }]);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user