mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-02 11:54:05 +01:00
Rename Floonet to Testnet (#521)
* Replace floonet by testnet * Update Cargo.lock
This commit is contained in:
@@ -236,7 +236,7 @@ where
|
||||
ErrorKind::Lifecycle("Error opening wallet (is password correct?)".into()),
|
||||
)?;
|
||||
let keychain = wallet_seed
|
||||
.derive_keychain(global::is_floonet())
|
||||
.derive_keychain(global::is_testnet())
|
||||
.context(ErrorKind::Lifecycle("Error deriving keychain".into()))?;
|
||||
|
||||
let mask = wallet.set_keychain(Box::new(keychain), create_mask, use_test_rng)?;
|
||||
|
||||
@@ -71,8 +71,8 @@ impl WalletSeed {
|
||||
seed.as_bytes().to_vec()
|
||||
}
|
||||
|
||||
pub fn derive_keychain<K: Keychain>(&self, is_floonet: bool) -> Result<K, Error> {
|
||||
let result = K::from_seed(&self.0, is_floonet)?;
|
||||
pub fn derive_keychain<K: Keychain>(&self, is_testnet: bool) -> Result<K, Error> {
|
||||
let result = K::from_seed(&self.0, is_testnet)?;
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user