Skip to content

Commit

Permalink
Allow to set fullNode if isBmFullNode and rpcDataSet is true even if …
Browse files Browse the repository at this point in the history
…BurningManService.isActivated() is false.

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

Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Dec 27, 2022
1 parent 9a31606 commit 5b38e5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public AccountingNodeProvider(AccountingLiteNode liteNode,
&& 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;
}
}
}

0 comments on commit 5b38e5b

Please sign in to comment.