fix: remove coins not supported by ciphertrace
This commit is contained in:
parent
708dea736d
commit
e798be94ae
3 changed files with 3 additions and 12 deletions
|
|
@ -126,10 +126,7 @@ function checkBlockchainStatus (cryptoCode) {
|
|||
}
|
||||
|
||||
function getTxHashesByAddress (cryptoCode, address) {
|
||||
checkCryptoCode(cryptoCode)
|
||||
.then(() => fetch('listreceivedbyaddress', [0, true, true, true, address]))
|
||||
.then(txsByAddress => Promise.all(_.forEach(id => fetch('getrawtransaction', [id]), _.head(txsByAddress).txids)))
|
||||
.then(_.map(({ hash }) => hash))
|
||||
throw new Error(`Transactions hash retrieval is not implemented for this coin!`)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue