mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
Merge pull request #213 from sorenstoutner/typos
Some checks failed
ci/gh-actions/build / build-ubuntu-without-scanner (push) Has been cancelled
ci/gh-actions/guix / cache-sources (push) Has been cancelled
ci/gh-actions/guix / aarch64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / arm-linux-gnueabihf (push) Has been cancelled
ci/gh-actions/guix / arm64-apple-darwin (push) Has been cancelled
ci/gh-actions/guix / riscv64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / x86_64-apple-darwin (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu.no-tor-bundle (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu.pack (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / x86_64-w64-mingw32.installer (push) Has been cancelled
ci/gh-actions/guix / x86_64-w64-mingw32 (push) Has been cancelled
ci/gh-actions/guix / bundle-logs (push) Has been cancelled
ci/gh-actions/guix / codesigning (map[target:x86_64-w64-mingw32.installer]) (push) Has been cancelled
ci/gh-actions/guix / codesigning (map[target:x86_64-w64-mingw32]) (push) Has been cancelled
Some checks failed
ci/gh-actions/build / build-ubuntu-without-scanner (push) Has been cancelled
ci/gh-actions/guix / cache-sources (push) Has been cancelled
ci/gh-actions/guix / aarch64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / arm-linux-gnueabihf (push) Has been cancelled
ci/gh-actions/guix / arm64-apple-darwin (push) Has been cancelled
ci/gh-actions/guix / riscv64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / x86_64-apple-darwin (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu.no-tor-bundle (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu.pack (push) Has been cancelled
ci/gh-actions/guix / x86_64-linux-gnu (push) Has been cancelled
ci/gh-actions/guix / x86_64-w64-mingw32.installer (push) Has been cancelled
ci/gh-actions/guix / x86_64-w64-mingw32 (push) Has been cancelled
ci/gh-actions/guix / bundle-logs (push) Has been cancelled
ci/gh-actions/guix / codesigning (map[target:x86_64-w64-mingw32.installer]) (push) Has been cancelled
ci/gh-actions/guix / codesigning (map[target:x86_64-w64-mingw32]) (push) Has been cancelled
Fix typos.
This commit is contained in:
commit
c403d80779
1 changed files with 5 additions and 5 deletions
|
@ -312,18 +312,18 @@ FeatherNode Nodes::pickEligibleNode() {
|
|||
return rtn;
|
||||
}
|
||||
|
||||
QVector<int> node_indeces;
|
||||
QVector<int> node_indices;
|
||||
int i = 0;
|
||||
for (const auto &node: nodes) {
|
||||
node_indeces.push_back(i);
|
||||
node_indices.push_back(i);
|
||||
i++;
|
||||
}
|
||||
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
|
||||
std::shuffle(node_indeces.begin(), node_indeces.end(), std::default_random_engine(seed));
|
||||
std::shuffle(node_indices.begin(), node_indices.end(), std::default_random_engine(seed));
|
||||
|
||||
// Pick random eligible node
|
||||
int mode_height = this->modeHeight(nodes);
|
||||
for (int index : node_indeces) {
|
||||
for (int index : node_indices) {
|
||||
const FeatherNode &node = nodes.at(index);
|
||||
|
||||
// This may fail to detect bad nodes if cached nodes are used
|
||||
|
@ -359,7 +359,7 @@ FeatherNode Nodes::pickEligibleNode() {
|
|||
|
||||
// All nodes tried, and none eligible
|
||||
// Don't show node exhaustion warning if single custom node is used
|
||||
if (wsMode || node_indeces.size() > 1) {
|
||||
if (wsMode || node_indices.size() > 1) {
|
||||
this->exhausted();
|
||||
}
|
||||
return rtn;
|
||||
|
|
Loading…
Reference in a new issue