Allow to set fullNode if isBmFullNode and rpcDataSet is true even if BurningManService.isActivated() is false.

This allows us to run the seed nodes already in BM mode before activation

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-12-27 18:40:38 -05:00
parent 9a31606fea
commit 5b38e5b83b
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -48,10 +48,10 @@ public class AccountingNodeProvider {
&& preferences.getRpcPw() != null &&
!preferences.getRpcPw().isEmpty() &&
preferences.getBlockNotifyPort() > 0;
if (BurningManService.isActivated()) {
accountingNode = isBmFullNode && rpcDataSet ? fullNode : liteNode;
if (isBmFullNode && rpcDataSet) {
accountingNode = fullNode;
} else {
accountingNode = inActiveAccountingNode;
accountingNode = BurningManService.isActivated() ? liteNode : inActiveAccountingNode;
}
}
}