mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-13 09:14:05 +01:00
wallet: do not scan outputs for new wallet
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user