-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
patches/monero/0015-change-earliest-fork-height-message.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From d47284456194c6d99698b28908d753acf1a64010 Mon Sep 17 00:00:00 2001 | ||
From: Czarek Nakamoto <[email protected]> | ||
Date: Wed, 29 Jan 2025 16:13:28 +0100 | ||
Subject: [PATCH] change earliest fork height message | ||
|
||
--- | ||
src/wallet/wallet2.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp | ||
index d060bf95b..9c1574c02 100644 | ||
--- a/src/wallet/wallet2.cpp | ||
+++ b/src/wallet/wallet2.cpp | ||
@@ -12354,7 +12354,7 @@ bool wallet2::use_fork_rules(uint8_t version, int64_t early_blocks) | ||
boost::optional<std::string> result = m_node_rpc_proxy.get_height(height); | ||
THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get height"); | ||
result = m_node_rpc_proxy.get_earliest_height(version, earliest_height); | ||
- THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get earliest fork height"); | ||
+ THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get earliest fork height. Please check your connection and/or switch node you are connected to currently."); | ||
|
||
bool close_enough = (int64_t)height >= (int64_t)earliest_height - early_blocks && earliest_height != std::numeric_limits<uint64_t>::max(); // start using the rules that many blocks beforehand | ||
if (close_enough) | ||
-- | ||
2.48.1 | ||
|
25 changes: 25 additions & 0 deletions
25
patches/wownero/0016-change-earliest-fork-height-message.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From d47284456194c6d99698b28908d753acf1a64010 Mon Sep 17 00:00:00 2001 | ||
From: Czarek Nakamoto <[email protected]> | ||
Date: Wed, 29 Jan 2025 16:13:28 +0100 | ||
Subject: [PATCH] change earliest fork height message | ||
|
||
--- | ||
src/wallet/wallet2.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp | ||
index d060bf95b..9c1574c02 100644 | ||
--- a/src/wallet/wallet2.cpp | ||
+++ b/src/wallet/wallet2.cpp | ||
@@ -12354,7 +12354,7 @@ bool wallet2::use_fork_rules(uint8_t version, int64_t early_blocks) | ||
boost::optional<std::string> result = m_node_rpc_proxy.get_height(height); | ||
THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get height"); | ||
result = m_node_rpc_proxy.get_earliest_height(version, earliest_height); | ||
- THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get earliest fork height"); | ||
+ THROW_WALLET_EXCEPTION_IF(result, error::wallet_internal_error, "Failed to get earliest fork height. Please check your connection and/or switch node you are connected to currently."); | ||
|
||
bool close_enough = (int64_t)height >= (int64_t)earliest_height - early_blocks && earliest_height != std::numeric_limits<uint64_t>::max(); // start using the rules that many blocks beforehand | ||
if (close_enough) | ||
-- | ||
2.48.1 | ||
|