Update the wallet best block marker when pruning
Update the wallet best block marker when pruning

Github-Pull: #7502
Rebased-From: e4eebb604e19f67b0c7a483b1ded1229d75ecdd3

deadalnix/bitcoin,RyanLucchese/energi,lakepay/lake,faircoin/faircoin,projectinterzone/ITZ,Kore-Core/kore,deadalnix/bitcoin,terracoin/terracoin,janko33bd/bitcoin,marlengit/BitcoinUnlimited,bitpay/bitcoin,nmarley/dash,BlockchainTechLLC/3dcoin,multicoins/marycoin,marlengit/hardfork_prototype_1_mvf-bu,biblepay/biblepay,zander/bitcoinclassic,multicoins/marycoin,myriadcoin/myriadcoin,rsdevgun16e/energi,BlockchainTechLLC/3dcoin,thelazier/dash,Justaphf/BitcoinUnlimited,jmgilbert2/energi,PandaPayProject/PandaPay,cddjr/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,BTCfork/hardfork_prototype_1_mvf-bu,myriadcoin/myriadcoin,lakepay/lake,Bitcoin-com/BUcash,BTCfork/hardfork_prototype_1_mvf-core,bitpay/bitcoin,goku1997/bitcoin,Flurbos/Flurbo,krzysztofwos/BitcoinUnlimited,myriadcoin/myriadcoin,crowning-/dash,worldbit/worldbit,Petr-Economissa/gvidon,crowning-/dash,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,diggcoin/diggcoin,AllanDoensen/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,projectinterzone/ITZ,jaromil/faircoin2,ivansib/sib16,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,lclc/bitcoin,Kore-Core/kore,gjhiggins/vcoincore,dgenr8/bitcoin,zsulocal/bitcoin,HeliumGas/helium,SartoNess/BitcoinUnlimited,bitpay/bitcoin,dmrtsvetkov/flowercoin,Bitcoin-com/BUcash,Kore-Core/kore,SartoNess/BitcoinUnlimited,jaromil/faircoin2,multicoins/marycoin,Bitcoin-com/BUcash,willwray/dash,ivansib/sib16,BitcoinUnlimited/BitcoinUnlimited,janko33bd/bitcoin,dashpay/dash,rdqw/sscoin,faircoin/faircoin,worldbit/worldbit,Bitcoin-com/BUcash,Flurbos/Flurbo,Bitcoin-com/BUcash,ediston/energi,bitcoinclassic/bitcoinclassic,ivansib/sibcoin,thelazier/dash,BlockchainTechLLC/3dcoin,dgenr8/bitcoin,aspirecoin/aspire,projectinterzone/ITZ,BitcoinUnlimited/BitcoinUnlimited,biblepay/biblepay,dgenr8/bitcoin,alejandromgk/Lunar,goku1997/bitcoin,AllanDoensen/BitcoinUnlimited,krzysztofwos/BitcoinUnlimited,janko33bd/bitcoin,myriadteam/myriadcoin,lclc/bitcoin,Justaphf/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,zander/bitcoinclassic,zetacoin/zetacoin,marcusdiaz/BitcoinUnlimited,nmarley/dash,nmarley/dash,crowning-/dash,zsulocal/bitcoin,BTCfork/hardfork_prototype_1_mvf-bu,rdqw/sscoin,arruah/ensocoin,PandaPayProject/PandaPay,marlengit/BitcoinUnlimited,Flurbos/Flurbo,RyanLucchese/energi,SartoNess/BitcoinUnlimited,bitpay/bitcoin,HeliumGas/helium,myriadcoin/myriadcoin,argentumproject/argentum,BTCfork/hardfork_prototype_1_mvf-core,faircoin/faircoin,crowning-/dash,myriadteam/myriadcoin,faircoin/faircoin2,gjhiggins/vcoincore,willwray/dash,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,lakepay/lake,argentumproject/argentum,faircoin/faircoin2,cddjr/BitcoinUnlimited,argentumproject/argentum,marcusdiaz/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,rsdevgun16e/energi,willwray/dash,terracoin/terracoin,rdqw/sscoin,myriadteam/myriadcoin,jaromil/faircoin2,rdqw/sscoin,cddjr/BitcoinUnlimited,dashpay/dash,BitcoinUnlimited/BitcoinUnlimited,UdjinM6/dash,worldbit/worldbit,schinzelh/dash,dmrtsvetkov/flowercoin,schinzelh/dash,cddjr/BitcoinUnlimited,lclc/bitcoin,krzysztofwos/BitcoinUnlimited,adpg211/bitcoin-master,jaromil/faircoin2,goku1997/bitcoin,Justaphf/BitcoinUnlimited,Petr-Economissa/gvidon,bitcoinclassic/bitcoinclassic,multicoins/marycoin,nmarley/dash,goku1997/bitcoin,ediston/energi,SartoNess/BitcoinUnlimited,marcusdiaz/BitcoinUnlimited,schinzelh/dash,zetacoin/zetacoin,dashpay/dash,multicoins/marycoin,thelazier/dash,zsulocal/bitcoin,rsdevgun16e/energi,arruah/ensocoin,krzysztofwos/BitcoinUnlimited,jmgilbert2/energi,ivansib/sibcoin,myriadteam/myriadcoin,UdjinM6/dash,gjhiggins/vcoincore,HeliumGas/helium,lclc/bitcoin,rsdevgun16e/energi,ionomy/ion,deadalnix/bitcoin,crowning-/dash,argentumproject/argentum,RyanLucchese/energi,dmrtsvetkov/flowercoin,adpg211/bitcoin-master,marcusdiaz/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-core,aspirecoin/aspire,aspirecoin/aspire,PandaPayProject/PandaPay,Petr-Economissa/gvidon,deadalnix/bitcoin,faircoin/faircoin2,AllanDoensen/BitcoinUnlimited,ivansib/sibcoin,argentumproject/argentum,HeliumGas/helium,worldbit/worldbit,ionomy/ion,schinzelh/dash,zsulocal/bitcoin,bitcoinclassic/bitcoinclassic,argentumproject/argentum,gjhiggins/vcoincore,faircoin/faircoin,janko33bd/bitcoin,alejandromgk/Lunar,krzysztofwos/BitcoinUnlimited,SartoNess/BitcoinUnlimited,bitpay/bitcoin,bitcoinclassic/bitcoinclassic,alejandromgk/Lunar,nmarley/dash,nmarley/dash,jmgilbert2/energi,Petr-Economissa/gvidon,dashpay/dash,terracoin/terracoin,BlockchainTechLLC/3dcoin,dashpay/dash,myriadcoin/myriadcoin,zander/bitcoinclassic,zetacoin/zetacoin,Flurbos/Flurbo,willwray/dash,worldbit/worldbit,BTCfork/hardfork_prototype_1_mvf-core,myriadteam/myriadcoin,janko33bd/bitcoin,dgenr8/bitcoin,ivansib/sib16,dgenr8/bitcoin,rdqw/sscoin,arruah/ensocoin,faircoin/faircoin2,BTCfork/hardfork_prototype_1_mvf-bu,rdqw/sscoin,BlockchainTechLLC/3dcoin,marcusdiaz/BitcoinUnlimited,PandaPayProject/PandaPay,AllanDoensen/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,marlengit/BitcoinUnlimited,lclc/bitcoin,zsulocal/bitcoin,ivansib/sibcoin,diggcoin/diggcoin,ionomy/ion,goku1997/bitcoin,biblepay/biblepay,zander/bitcoinclassic,PandaPayProject/PandaPay,marlengit/BitcoinUnlimited,biblepay/biblepay,willwray/dash,diggcoin/diggcoin,zetacoin/zetacoin,lclc/bitcoin,biblepay/biblepay,BitcoinUnlimited/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,krzysztofwos/BitcoinUnlimited,nmarley/dash,AllanDoensen/BitcoinUnlimited,Petr-Economissa/gvidon,BTCfork/hardfork_prototype_1_mvf-bu,deadalnix/bitcoin,adpg211/bitcoin-master,goku1997/bitcoin,willwray/dash,cddjr/BitcoinUnlimited,ediston/energi,dmrtsvetkov/flowercoin,adpg211/bitcoin-master,AllanDoensen/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-core,marlengit/BitcoinUnlimited,ediston/energi,argentumproject/argentum,marlengit/BitcoinUnlimited,schinzelh/dash,marcusdiaz/BitcoinUnlimited,ivansib/sib16,dmrtsvetkov/flowercoin,jmgilbert2/energi,deadalnix/bitcoin,faircoin/faircoin,multicoins/marycoin,arruah/ensocoin,bitcoinclassic/bitcoinclassic,BTCfork/hardfork_prototype_1_mvf-bu,HeliumGas/helium,SartoNess/BitcoinUnlimited,jaromil/faircoin2,ivansib/sib16,zsulocal/bitcoin,projectinterzone/ITZ,Kore-Core/kore,faircoin/faircoin,adpg211/bitcoin-master,faircoin/faircoin2,lakepay/lake,UdjinM6/dash,ediston/energi,diggcoin/diggcoin,jmgilbert2/energi,ediston/energi,projectinterzone/ITZ,ionomy/ion,rsdevgun16e/energi,ionomy/ion,biblepay/biblepay,UdjinM6/dash,lakepay/lake,biblepay/biblepay,alejandromgk/Lunar,bitpay/bitcoin,terracoin/terracoin,gjhiggins/vcoincore,Flurbos/Flurbo,Flurbos/Flurbo,diggcoin/diggcoin,Justaphf/BitcoinUnlimited,Kore-Core/kore,ionomy/ion,aspirecoin/aspire,rsdevgun16e/energi,ivansib/sib16,worldbit/worldbit,BTCfork/hardfork_prototype_1_mvf-bu,Justaphf/BitcoinUnlimited,schinzelh/dash,zetacoin/zetacoin,arruah/ensocoin,SartoNess/BitcoinUnlimited,dmrtsvetkov/flowercoin,thelazier/dash,faircoin/faircoin2,marlengit/hardfork_prototype_1_mvf-bu,biblepay/biblepay,Bitcoin-com/BUcash,adpg211/bitcoin-master,RyanLucchese/energi,BTCfork/hardfork_prototype_1_mvf-core,thelazier/dash,myriadteam/myriadcoin,aspirecoin/aspire,ivansib/sibcoin,terracoin/terracoin,alejandromgk/Lunar,bitcoinclassic/bitcoinclassic,RyanLucchese/energi,lakepay/lake,alejandromgk/Lunar,janko33bd/bitcoin,BlockchainTechLLC/3dcoin,HeliumGas/helium,zander/bitcoinclassic,terracoin/terracoin,ivansib/sibcoin,jmgilbert2/energi,cddjr/BitcoinUnlimited,myriadcoin/myriadcoin,PandaPayProject/PandaPay,jaromil/faircoin2,diggcoin/diggcoin,zander/bitcoinclassic,gjhiggins/vcoincore,Petr-Economissa/gvidon,Kore-Core/kore,RyanLucchese/energi,crowning-/dash,zetacoin/zetacoin,UdjinM6/dash,Justaphf/BitcoinUnlimited,arruah/ensocoin,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,aspirecoin/aspire