[rpc-tests] Change solve() to use rehash
[rpc-tests] Change solve() to use rehash

Github-Pull: #7468
Rebased-From: 7689041c03278a09c88a2bb78cd00217f6d4b1de

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