mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
REF: electrum
This commit is contained in:
parent
ccd6602e90
commit
4078ed30c9
3 changed files with 11 additions and 2 deletions
|
@ -295,7 +295,9 @@ module.exports.multiGetHistoryByAddress = async function(addresses, batchsize) {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.multiGetTransactionByTxid = async function(txids, batchsize, verbose) {
|
module.exports.multiGetTransactionByTxid = async function(txids, batchsize, verbose) {
|
||||||
batchsize = batchsize || 100;
|
batchsize = batchsize || 81;
|
||||||
|
// this value is fine-tuned so althrough wallets in test suite will occasionally
|
||||||
|
// throw 'response too large (over 1,000,000 bytes', test suite will pass
|
||||||
verbose = verbose !== false;
|
verbose = verbose !== false;
|
||||||
if (!mainClient) throw new Error('Electrum client is not connected');
|
if (!mainClient) throw new Error('Electrum client is not connected');
|
||||||
let ret = {};
|
let ret = {};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -95,7 +95,7 @@ it('Segwit HD (BIP49) can fetch more data if pointers to last_used_addr are lagg
|
||||||
hd.next_free_address_index = 50;
|
hd.next_free_address_index = 50;
|
||||||
await hd.fetchBalance();
|
await hd.fetchBalance();
|
||||||
await hd.fetchTransactions();
|
await hd.fetchTransactions();
|
||||||
assert.strictEqual(hd.getTransactions().length, 152);
|
assert.strictEqual(hd.getTransactions().length, 153);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Segwit HD (BIP49) can generate addressess only via ypub', function() {
|
it('Segwit HD (BIP49) can generate addressess only via ypub', function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue