mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-01-20 19:11:09 +03:00
Rename Floonet to Testnet (#521)
* Replace floonet by testnet * Update Cargo.lock
This commit is contained in:
parent
7f5c010fed
commit
c0e68ec3ea
8 changed files with 20 additions and 20 deletions
16
Cargo.lock
generated
16
Cargo.lock
generated
|
@ -1171,7 +1171,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|||
[[package]]
|
||||
name = "grin_api"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"easy-jsonrpc-mw",
|
||||
|
@ -1204,7 +1204,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_chain"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"bit-vec",
|
||||
"bitflags 1.2.1",
|
||||
|
@ -1228,7 +1228,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_core"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -1255,7 +1255,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_keychain"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -1277,7 +1277,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_p2p"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"bitflags 1.2.1",
|
||||
"bytes",
|
||||
|
@ -1299,7 +1299,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_pool"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"chrono",
|
||||
|
@ -1333,7 +1333,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_store"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"croaring-mw",
|
||||
|
@ -1353,7 +1353,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "grin_util"
|
||||
version = "4.2.0-alpha.1"
|
||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
||||
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||
dependencies = [
|
||||
"backtrace",
|
||||
"base64 0.12.3",
|
||||
|
|
|
@ -1410,7 +1410,7 @@ where
|
|||
/// * `chain_type`: The chain type to use in creation of the configuration file. This can be
|
||||
/// * `AutomatedTesting`
|
||||
/// * `UserTesting`
|
||||
/// * `Floonet`
|
||||
/// * `Testnet`
|
||||
/// * `Mainnet`
|
||||
///
|
||||
/// # Returns
|
||||
|
|
|
@ -213,7 +213,7 @@ impl GlobalWalletConfig {
|
|||
|
||||
match *chain_type {
|
||||
global::ChainTypes::Mainnet => {}
|
||||
global::ChainTypes::Floonet => {
|
||||
global::ChainTypes::Testnet => {
|
||||
defaults.api_listen_port = 13415;
|
||||
defaults.check_node_api_http_addr = "http://127.0.0.1:13413".to_owned();
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -56,11 +56,11 @@ where
|
|||
K: Keychain + 'a,
|
||||
{
|
||||
/// Sets the top level system wallet directory
|
||||
/// default is assumed to be ~/.grin/main/wallet_data (or floonet equivalent)
|
||||
/// default is assumed to be ~/.grin/main/wallet_data (or testnet equivalent)
|
||||
fn set_top_level_directory(&mut self, dir: &str) -> Result<(), Error>;
|
||||
|
||||
/// Sets the top level system wallet directory
|
||||
/// default is assumed to be ~/.grin/main/wallet_data (or floonet equivalent)
|
||||
/// default is assumed to be ~/.grin/main/wallet_data (or testnet equivalent)
|
||||
fn get_top_level_directory(&self) -> Result<String, Error>;
|
||||
|
||||
/// Output a grin-wallet.toml file into the current top-level system wallet directory
|
||||
|
|
|
@ -72,8 +72,8 @@ fn real_main() -> i32 {
|
|||
.version(built_info::PKG_VERSION)
|
||||
.get_matches();
|
||||
|
||||
let chain_type = if args.is_present("floonet") {
|
||||
global::ChainTypes::Floonet
|
||||
let chain_type = if args.is_present("testnet") {
|
||||
global::ChainTypes::Testnet
|
||||
} else if args.is_present("usernet") {
|
||||
global::ChainTypes::UserTesting
|
||||
} else {
|
||||
|
|
|
@ -3,9 +3,9 @@ about: Reference Grin Wallet
|
|||
author: The Grin Team
|
||||
|
||||
args:
|
||||
- floonet:
|
||||
help: Run grin against the Floonet (as opposed to mainnet)
|
||||
long: floonet
|
||||
- testnet:
|
||||
help: Run grin against the Testnet (as opposed to mainnet)
|
||||
long: testnet
|
||||
takes_value: false
|
||||
- usernet:
|
||||
help: Run grin as a local-only network. Doesn't block peer connections but will not connect to any peer or seed
|
||||
|
|
Loading…
Reference in a new issue