mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-20 13:54:32 +01:00
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:
parent
245b76be74
commit
450800d101
2 changed files with 0 additions and 18 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue