feat: change generated addresses to be UA
This commit is contained in:
parent
d5ddf5f74f
commit
60d7f3d8de
2 changed files with 5 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ const BINARIES = {
|
||||||
url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.17-25c9b49f.tar.gz',
|
url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.17-25c9b49f.tar.gz',
|
||||||
dir: 'geth-linux-amd64-1.10.17-25c9b49f'
|
dir: 'geth-linux-amd64-1.10.17-25c9b49f'
|
||||||
},
|
},
|
||||||
|
// TODO: update ZEC URL for new 4.7.0 version once the tarball is available
|
||||||
ZEC: {
|
ZEC: {
|
||||||
url: 'https://z.cash/downloads/zcash-4.6.0-2-linux64-debian-bullseye.tar.gz',
|
url: 'https://z.cash/downloads/zcash-4.6.0-2-linux64-debian-bullseye.tar.gz',
|
||||||
dir: 'zcash-4.6.0-2/bin'
|
dir: 'zcash-4.6.0-2/bin'
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,10 @@ function sendCoins (account, tx, settings, operatorId) {
|
||||||
|
|
||||||
function newAddress (account, info, tx, settings, operatorId) {
|
function newAddress (account, info, tx, settings, operatorId) {
|
||||||
return checkCryptoCode(info.cryptoCode)
|
return checkCryptoCode(info.cryptoCode)
|
||||||
.then(() => fetch('getnewaddress'))
|
.then(() => fetch('z_listaccounts'))
|
||||||
|
.then(accountsRes => _.size(accountsRes) === 0 ? fetch('z_getnewaccount') : Promise.resolve(_.first(accountsRes)))
|
||||||
|
.then(account => fetch('z_getaddressforaccount', [account.account]))
|
||||||
|
.then(res => res.address)
|
||||||
}
|
}
|
||||||
|
|
||||||
function addressBalance (address, confs) {
|
function addressBalance (address, confs) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue