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]]
|
[[package]]
|
||||||
name = "grin_api"
|
name = "grin_api"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"easy-jsonrpc-mw",
|
"easy-jsonrpc-mw",
|
||||||
|
@ -1204,7 +1204,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_chain"
|
name = "grin_chain"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bit-vec",
|
"bit-vec",
|
||||||
"bitflags 1.2.1",
|
"bitflags 1.2.1",
|
||||||
|
@ -1228,7 +1228,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_core"
|
name = "grin_core"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"blake2-rfc",
|
"blake2-rfc",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
@ -1255,7 +1255,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_keychain"
|
name = "grin_keychain"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"blake2-rfc",
|
"blake2-rfc",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
@ -1277,7 +1277,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_p2p"
|
name = "grin_p2p"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.2.1",
|
"bitflags 1.2.1",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -1299,7 +1299,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_pool"
|
name = "grin_pool"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"blake2-rfc",
|
"blake2-rfc",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -1333,7 +1333,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_store"
|
name = "grin_store"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"croaring-mw",
|
"croaring-mw",
|
||||||
|
@ -1353,7 +1353,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grin_util"
|
name = "grin_util"
|
||||||
version = "4.2.0-alpha.1"
|
version = "4.2.0-alpha.1"
|
||||||
source = "git+https://github.com/mimblewimble/grin#4c6d1dd4bd55e7ee8ad697d008d3292fbf09f99e"
|
source = "git+https://github.com/mimblewimble/grin#cf2a65242d9805b0688e40f2432250461aa56561"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"backtrace",
|
"backtrace",
|
||||||
"base64 0.12.3",
|
"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
|
/// * `chain_type`: The chain type to use in creation of the configuration file. This can be
|
||||||
/// * `AutomatedTesting`
|
/// * `AutomatedTesting`
|
||||||
/// * `UserTesting`
|
/// * `UserTesting`
|
||||||
/// * `Floonet`
|
/// * `Testnet`
|
||||||
/// * `Mainnet`
|
/// * `Mainnet`
|
||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
|
|
|
@ -213,7 +213,7 @@ impl GlobalWalletConfig {
|
||||||
|
|
||||||
match *chain_type {
|
match *chain_type {
|
||||||
global::ChainTypes::Mainnet => {}
|
global::ChainTypes::Mainnet => {}
|
||||||
global::ChainTypes::Floonet => {
|
global::ChainTypes::Testnet => {
|
||||||
defaults.api_listen_port = 13415;
|
defaults.api_listen_port = 13415;
|
||||||
defaults.check_node_api_http_addr = "http://127.0.0.1:13413".to_owned();
|
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()),
|
ErrorKind::Lifecycle("Error opening wallet (is password correct?)".into()),
|
||||||
)?;
|
)?;
|
||||||
let keychain = wallet_seed
|
let keychain = wallet_seed
|
||||||
.derive_keychain(global::is_floonet())
|
.derive_keychain(global::is_testnet())
|
||||||
.context(ErrorKind::Lifecycle("Error deriving keychain".into()))?;
|
.context(ErrorKind::Lifecycle("Error deriving keychain".into()))?;
|
||||||
|
|
||||||
let mask = wallet.set_keychain(Box::new(keychain), create_mask, use_test_rng)?;
|
let mask = wallet.set_keychain(Box::new(keychain), create_mask, use_test_rng)?;
|
||||||
|
|
|
@ -71,8 +71,8 @@ impl WalletSeed {
|
||||||
seed.as_bytes().to_vec()
|
seed.as_bytes().to_vec()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn derive_keychain<K: Keychain>(&self, is_floonet: bool) -> Result<K, Error> {
|
pub fn derive_keychain<K: Keychain>(&self, is_testnet: bool) -> Result<K, Error> {
|
||||||
let result = K::from_seed(&self.0, is_floonet)?;
|
let result = K::from_seed(&self.0, is_testnet)?;
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,11 +56,11 @@ where
|
||||||
K: Keychain + 'a,
|
K: Keychain + 'a,
|
||||||
{
|
{
|
||||||
/// Sets the top level system wallet directory
|
/// 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>;
|
fn set_top_level_directory(&mut self, dir: &str) -> Result<(), Error>;
|
||||||
|
|
||||||
/// Sets the top level system wallet directory
|
/// 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>;
|
fn get_top_level_directory(&self) -> Result<String, Error>;
|
||||||
|
|
||||||
/// Output a grin-wallet.toml file into the current top-level system wallet directory
|
/// 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)
|
.version(built_info::PKG_VERSION)
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let chain_type = if args.is_present("floonet") {
|
let chain_type = if args.is_present("testnet") {
|
||||||
global::ChainTypes::Floonet
|
global::ChainTypes::Testnet
|
||||||
} else if args.is_present("usernet") {
|
} else if args.is_present("usernet") {
|
||||||
global::ChainTypes::UserTesting
|
global::ChainTypes::UserTesting
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3,9 +3,9 @@ about: Reference Grin Wallet
|
||||||
author: The Grin Team
|
author: The Grin Team
|
||||||
|
|
||||||
args:
|
args:
|
||||||
- floonet:
|
- testnet:
|
||||||
help: Run grin against the Floonet (as opposed to mainnet)
|
help: Run grin against the Testnet (as opposed to mainnet)
|
||||||
long: floonet
|
long: testnet
|
||||||
takes_value: false
|
takes_value: false
|
||||||
- usernet:
|
- usernet:
|
||||||
help: Run grin as a local-only network. Doesn't block peer connections but will not connect to any peer or seed
|
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