wallet: do not scan outputs for new wallet

This commit is contained in:
ardocrat
2025-05-29 00:38:45 +03:00
parent d42ef102b2
commit fbb084f636
10 changed files with 199 additions and 50 deletions
+7
View File
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use grin_core::global;
use grin_core::global::ChainTypes;
use serde_derive::{Deserialize, Serialize};
use crate::gui::views::Content;
@@ -118,6 +119,12 @@ impl AppConfig {
*w_conn_config = ConnectionsConfig::for_chain_type(chain_type);
}
}
if !global::GLOBAL_CHAIN_TYPE.is_init() {
global::init_global_chain_type(*chain_type);
} else {
global::set_global_chain_type(*chain_type);
global::set_local_chain_type(*chain_type);
}
}
/// Get current [`ChainTypes`] for node and wallets.