Fixed resolve conflict bug at new setup

This commit is contained in:
SKP
2019-02-16 12:38:32 +01:00
committed by kexkey
parent 07d18699c3
commit 5eb7d2d45c

View File

@@ -388,7 +388,7 @@ module.exports = class extends Generator {
/* some utils */
_resolveConfigConflicts() {
if( this.props.features.indexOf('lightning') !== -1 ) {
if( this.props.features && this.props.features.length && this.props.features.indexOf('lightning') !== -1 ) {
this.props.bitcoin_prune = false;
delete this.props.bitcoin_prune_size;
}