Remove startReOrgFromLastSnapshot methods in LiteNode

and FullNode

The custom implementations triggered to repeat requests
but we shut down the seed node in case of a reorg and
for desktops we request the user to shutdown.
This commit is contained in:
chimp1984 2021-11-10 13:04:21 +01:00
parent 245b76be74
commit 450800d101
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 0 additions and 18 deletions

View file

@ -110,15 +110,6 @@ public class FullNode extends BsqNode {
requestChainHeadHeightAndParseBlocks(getStartBlockHeight());
}
@Override
protected void startReOrgFromLastSnapshot() {
super.startReOrgFromLastSnapshot();
int startBlockHeight = getStartBlockHeight();
rpcService.requestChainHeadHeight(chainHeight -> parseBlocksOnHeadHeight(startBlockHeight, chainHeight),
this::handleError);
}
@Override
protected void onP2PNetworkReady() {
super.onP2PNetworkReady();

View file

@ -185,15 +185,6 @@ public class LiteNode extends BsqNode {
liteNodeNetworkService.requestBlocks(getStartBlockHeight());
}
@Override
protected void startReOrgFromLastSnapshot() {
super.startReOrgFromLastSnapshot();
int startBlockHeight = getStartBlockHeight();
liteNodeNetworkService.reset();
liteNodeNetworkService.requestBlocks(startBlockHeight);
}
///////////////////////////////////////////////////////////////////////////////////////////
// Private