mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(v5 Fulcrum): Requiring FULCRUM_API env var when starting server
This commit is contained in:
@@ -32,7 +32,12 @@ class Electrum {
|
||||
this.bchjs = bchjs
|
||||
// _this.bitcore = bitcore
|
||||
|
||||
this.fulcrumApi = 'http://fulcrum-api.fullstackbch.nl/v1/'
|
||||
this.fulcrumApi = process.env.FULCRUM_API
|
||||
if (!this.fulcrumApi) {
|
||||
throw new Error(
|
||||
'FULCRUM_API env var not set. Can not connect to Fulcrum indexer.'
|
||||
)
|
||||
}
|
||||
|
||||
// _this.electrumx = new ElectrumCash(
|
||||
// 'bch-api',
|
||||
|
||||
Reference in New Issue
Block a user