Skip to content

Commit

Permalink
Merge #2576: Remove Ridcully references from Stibbons code
Browse files Browse the repository at this point in the history
Remove Ridcully references from Stibbons code
  • Loading branch information
stringhandler committed Jan 29, 2021
2 parents edcb361 + 5935f71 commit 7921bef
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 39 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,18 @@ was run, the main configuration file will be located in the installation directo
With the main configuration file, in addition to the settings already present, the following must also be enabled if
they are not enabled already:

- For the Tari Base Node and the Tari Console Wallet, under section **`base_node.ridcully`**
- For the Tari Base Node and the Tari Console Wallet, under section **`base_node.stibbons`**
```
[base_node.ridcully]
[base_node.stibbons]
transport = "tor"
allow_test_addresses = false
grpc_enabled = true
grpc_base_node_address = "127.0.0.1:18142"
grpc_console_wallet_address = "127.0.0.1:18143"
```
- For the Tari Merge Mining Proxy, under section **`merge_mining_proxy.ridcully`**
- For the Tari Merge Mining Proxy, under section **`merge_mining_proxy.stibbons`**
```
[merge_mining_proxy.ridcully]
[merge_mining_proxy.stibbons]
monerod_url = "http://18.133.55.120:38081"
proxy_host_address = "127.0.0.1:7878"
monerod_use_auth = false
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_base_node/osx/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ ! "$(uname)" == "Darwin" ]; then
fi

DATA_DIR=${1:-"$HOME/.tari"}
NETWORK=ridcully
NETWORK=stibbons

banner Installing and setting up your Tari Base Node
if [ ! -d "$DATA_DIR/$NETWORK" ]; then
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_base_node/osx/post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ wget -qO - https://api.ipify.org; echo
torsocks wget -qO - https://api.ipify.org; echo

DATA_DIR=${1:-"$HOME/.tari"}
NETWORK=ridcully
NETWORK=stibbons

banner Installing and setting up your Tari Base Node
if [ ! -d "$DATA_DIR/$NETWORK" ]; then
Expand Down
4 changes: 2 additions & 2 deletions applications/tari_base_node/windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Notes:
- Execute the `.\start_tari_merge_mining_proxy` shortcut.
- Execute the `.\start_xmrig` shortcut.
- Runtime artefacts:
- The blockchain will be created in the `.\ridcully` folder.
- The blockchain will be created in the `.\stibbons` folder.
- The wallet will be created in the `.\wallet` folfder.
- All log files will be created in the `.\log\base_node`, `.\log\wallet` and
`.\log\proxy` folders.
Expand All @@ -100,7 +100,7 @@ Notes:
## Start Fresh

- To delete log files, delete the `.\log` folder.
- To re-sync the blockchain, delete the `.\ridcully` folder.
- To re-sync the blockchain, delete the `.\stibbons` folder.
- To destroy your wallet and loose all your hard-earned tXTR Tari coins, delete
the `.\wallet` folder.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,8 @@ impl WalletEventMonitor {
match result {
Ok(msg) => {
trace!(target: LOG_TARGET, "Output Manager Service Callback Handler event {:?}", msg);
match msg {
OutputManagerEvent::TxoValidationSuccess(_) => {
if let OutputManagerEvent::TxoValidationSuccess(_) = msg {
self.trigger_balance_refresh().await;
},
// Only the above variants are monitored
_ => (),
}
},
Err(_e) => error!(target: LOG_TARGET, "Error reading from Output Manager Service event broadcast channel"),
Expand Down
2 changes: 1 addition & 1 deletion base_layer/core/src/blocks/genesis_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn get_mainnet_gen_header() -> BlockHeader {
pub fn get_stibbons_genesis_block() -> ChainBlock {
// lets get the block
let mut block = get_stibbons_genesis_block_raw();
// Lets load in the ridcully faucet tx's
// Lets load in the stibbons faucet tx's
let mut utxos = Vec::new();
let file = include_str!("faucets/stibbons_faucet.json");
// last 2 lines are used for the kernel creation
Expand Down
4 changes: 2 additions & 2 deletions base_layer/core/src/test_helpers/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use tari_test_utils::paths::create_temporary_data_path;

/// Create a new blockchain database containing no blocks.
pub fn create_new_blockchain() -> BlockchainDatabase<TempDatabase> {
let network = Network::Ridcully;
let network = Network::Stibbons;
let consensus_constants = ConsensusConstantsBuilder::new(network).build();
let genesis = get_ridcully_genesis_block();
let consensus_manager = ConsensusManagerBuilder::new(network)
Expand Down Expand Up @@ -103,7 +103,7 @@ pub fn create_store_with_consensus(rules: &ConsensusManager) -> BlockchainDataba
create_store_with_consensus_and_validators(rules, validators)
}
pub fn create_test_blockchain_db() -> BlockchainDatabase<TempDatabase> {
let network = Network::Ridcully;
let network = Network::Stibbons;
let rules = ConsensusManagerBuilder::new(network).build();
create_store_with_consensus(&rules)
}
Expand Down
4 changes: 2 additions & 2 deletions base_layer/core/tests/block_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mod helpers;
#[test]
fn test_genesis_block() {
let factories = CryptoFactories::default();
let network = Network::Ridcully;
let network = Network::Stibbons;
let rules = ConsensusManagerBuilder::new(network).build();
let backend = create_test_db();
let rx = RandomXFactory::new(RandomXConfig::default(), 1);
Expand All @@ -80,7 +80,7 @@ fn test_monero_blocks() {
let seed2 = "9f02e032f9b15d2aded991e0f68cc3c3427270b568b782e55fbd269ead0bad98".to_string();

let factories = CryptoFactories::default();
let network = Network::Ridcully;
let network = Network::Stibbons;
let mut algos = HashMap::new();
algos.insert(PowAlgorithm::Sha3, PowAlgorithmConstants {
max_target_time: 1800,
Expand Down
2 changes: 1 addition & 1 deletion base_layer/wallet/src/testnet_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pub async fn create_wallet(
peer_seeds: Default::default(),
};

let config = WalletConfig::new(comms_config, factories, None, None, Network::Ridcully, None, None, None);
let config = WalletConfig::new(comms_config, factories, None, None, Network::Stibbons, None, None, None);

Wallet::new(
config,
Expand Down
2 changes: 1 addition & 1 deletion base_layer/wallet/src/transaction_service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ where
let (ts_request_sender, _ts_request_receiver) = reply_channel::unbounded();
let (event_publisher, _) = broadcast::channel(100);
let ts_handle = TransactionServiceHandle::new(ts_request_sender, event_publisher.clone());
let constants = ConsensusConstantsBuilder::new(Network::Ridcully).build();
let constants = ConsensusConstantsBuilder::new(Network::Stibbons).build();
let shutdown = Shutdown::new();
let mut fake_oms = OutputManagerService::new(
OutputManagerServiceConfig::default(),
Expand Down
2 changes: 1 addition & 1 deletion base_layer/wallet_ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2955,7 +2955,7 @@ pub unsafe extern "C" fn wallet_create(
..Default::default()
}),
None,
Network::Ridcully,
Network::Stibbons,
None,
None,
None,
Expand Down
2 changes: 1 addition & 1 deletion buildtools/create_osx_install_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
rm -f "./$1.tar.gz" >/dev/null

tarball_parent=/tmp
tarball_source=tari_ridcully_testnet
tarball_source=tari_stibbons_testnet
tarball_folder=${tarball_parent}/${tarball_source}
if [ -d "${tarball_folder}" ]
then
Expand Down
2 changes: 1 addition & 1 deletion buildtools/create_ubuntu_install_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
rm -f "./$1.tar.gz" >/dev/null

tarball_parent=/tmp
tarball_source=tari_ridcully_testnet
tarball_source=tari_stibbons_testnet
tarball_folder=${tarball_parent}/${tarball_source}
if [ -d "${tarball_folder}" ]
then
Expand Down
2 changes: 1 addition & 1 deletion common/config/presets/tari_sample.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# A simple set of sane defaults for connecting to the Ridcully testnet
# A simple set of sane defaults for connecting to the Stibbons testnet

[base_node]
network = "stibbons"
Expand Down
14 changes: 7 additions & 7 deletions common/config/presets/windows.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ base_node_query_timeout = 120

# Select the network to connect to. Valid options are:
# mainnet - the "real" Tari network (default)
# ridcully - the Tari test net
network = "ridcully"
# stibbons - the Tari test net
network = "stibbons"

# Configuration options for testnet

[base_node.ridcully]
[base_node.stibbons]
# The type of database backend to use. Currently supported options are "memory" and "lmdb". LMDB is recommnded for
# almost all use cases.
db_type = "lmdb"
Expand All @@ -171,7 +171,7 @@ db_type = "lmdb"
#num_mining_threads = 1

# The relative path to store persistent data
data_dir = "ridcully"
data_dir = "stibbons"

# When first logging onto the Tari network, you need to find a few peers to bootstrap the process. In the absence of
# any servers, this is a little more challenging than usual. Our best strategy is just to try and connect to the peers
Expand Down Expand Up @@ -203,7 +203,7 @@ force_sync_peers = [
# DNS seeds
# The DNS records in these hostnames should provide TXT records as per https://github.com/tari-project/tari/pull/2319
# Enter a domain name for the TXT records: seeds.tari.com
dns_seeds =["seeds.ridcully.tari.com"]
dns_seeds =["seeds.stibbons.tari.com"]
# The name server used to resolve DNS seeds
# dns_seeds_name_server = "1.1.1.1:53"
# Set to true to only accept DNS records that pass DNSSEC validation (Default: true)
Expand Down Expand Up @@ -293,7 +293,7 @@ console_wallet_tor_identity_file = ".\\config\\cosole_wallet_tor.json"
# Mempool Configuration Options #
# #
########################################################################################################################
[mempool.ridcully]
[mempool.stibbons]

# The maximum number of transactions that can be stored in the Unconfirmed Transaction pool. This is the main waiting
# area in the mempool and almost all transactions will end up in this pool before being mined. It's for this reason
Expand Down Expand Up @@ -365,7 +365,7 @@ console_wallet_tor_identity_file = ".\\config\\cosole_wallet_tor.json"
########################################################################################################################


[merge_mining_proxy.ridcully]
[merge_mining_proxy.stibbons]

# URL to monerod, currently set to a seed node
monerod_url = "http://18.133.55.120:38081"
Expand Down
14 changes: 7 additions & 7 deletions common/config/tari_config_example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ base_node_query_timeout = 120

# Select the network to connect to. Valid options are:
# mainnet - the "real" Tari network (default)
# ridcully - the Tari test net
network = "ridcully"
# stibbons - the Tari test net
network = "stibbons"

# Configuration options for testnet

[base_node.ridcully]
[base_node.stibbons]
# The type of database backend to use. Currently supported options are "memory" and "lmdb". LMDB is recommnded for
# almost all use cases.
db_type = "lmdb"
Expand All @@ -171,7 +171,7 @@ db_type = "lmdb"
#num_mining_threads = 1

# The relative path to store persistent data
data_dir = "ridcully"
data_dir = "stibbons"

# When first logging onto the Tari network, you need to find a few peers to bootstrap the process. In the absence of
# any servers, this is a little more challenging than usual. Our best strategy is just to try and connect to the peers
Expand Down Expand Up @@ -203,7 +203,7 @@ force_sync_peers = [
# DNS seeds
# The DNS records in these hostnames should provide TXT records as per https://github.com/tari-project/tari/pull/2319
# Enter a domain name for the TXT records: seeds.tari.com
dns_seeds =["seeds.ridcully.tari.com"]
dns_seeds =["seeds.stibbons.tari.com"]
dns_seeds_use_dnssec = false

# Determines the method of syncing blocks when the node is lagging. If you are not struggling with syncing, then
Expand Down Expand Up @@ -293,7 +293,7 @@ console_wallet_tor_identity_file = "./cosole_wallet_tor.json" # or ".\\cosole_wa
# Mempool Configuration Options #
# #
########################################################################################################################
[mempool.ridcully]
[mempool.stibbons]

# The maximum number of transactions that can be stored in the Unconfirmed Transaction pool. This is the main waiting
# area in the mempool and almost all transactions will end up in this pool before being mined. It's for this reason
Expand Down Expand Up @@ -365,7 +365,7 @@ console_wallet_tor_identity_file = "./cosole_wallet_tor.json" # or ".\\cosole_wa
########################################################################################################################


[merge_mining_proxy.ridcully]
[merge_mining_proxy.stibbons]

# URL to monerod, currently set to a seed node
monerod_url = "http://18.133.55.120:38081"
Expand Down
2 changes: 1 addition & 1 deletion common/src/configuration/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub fn default_config(bootstrap: &ConfigBootstrap) -> Config {
cfg.set_default("base_node.mainnet.enable_wallet", true).unwrap();
cfg.set_default("base_node.mainnet.num_mining_threads", 1).unwrap();

//---------------------------------- Ridcully Defaults --------------------------------------------//
//---------------------------------- Stibbons Defaults --------------------------------------------//

cfg.set_default("base_node.stibbons.db_type", "lmdb").unwrap();
cfg.set_default("base_node.stibbons.orphan_storage_capacity", 720)
Expand Down

0 comments on commit 7921bef

Please sign in to comment.