Browse Source

Call concat just once

umbrel
Pavel Ševčík 4 years ago
parent
commit
3386de63d4
No known key found for this signature in database GPG Key ID: D3B8A90B4072D9DB
  1. 5
      lib/wallet/wallet-service.js

5
lib/wallet/wallet-service.js

@ -365,10 +365,7 @@ class WalletService {
*/
_mergeEntities(active, legacy, bip49, bip84, pubkeys) {
// Put all xpub into active.xpubs
active.xpubs = active.xpubs
.concat(legacy.xpubs)
.concat(bip49.xpubs)
.concat(bip84.xpubs)
active.xpubs = active.xpubs.concat(legacy.xpubs, bip49.xpubs, bip84.xpubs)
// Put addresses and pubkeys into active
// but avoid duplicates

Loading…
Cancel
Save