node: simplify index-prefix option

This commit is contained in:
Braydon Fuller 2019-05-15 10:56:54 -07:00
parent a6fd1bec1a
commit ce16bc9239
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4

View File

@ -166,7 +166,7 @@ class FullNode extends Node {
chain: this.chain, chain: this.chain,
prune: this.config.bool('prune'), prune: this.config.bool('prune'),
memory: this.config.bool('memory'), memory: this.config.bool('memory'),
prefix: this.config.filter('index').str('prefix') || this.config.prefix prefix: this.config.str('index-prefix', this.config.prefix)
}); });
} }
@ -178,7 +178,7 @@ class FullNode extends Node {
chain: this.chain, chain: this.chain,
prune: this.config.bool('prune'), prune: this.config.bool('prune'),
memory: this.config.bool('memory'), memory: this.config.bool('memory'),
prefix: this.config.filter('index').str('prefix') || this.config.prefix, prefix: this.config.str('index-prefix', this.config.prefix),
maxTxs: this.config.uint('max-txs') maxTxs: this.config.uint('max-txs')
}); });
} }