Skip to content

Conversation

@moralpriest
Copy link

Description

Fixes the simulator to default to mainnet mode instead of forcing testnet mode. The --testnet flag is now respected when provided by the user.

Previously, the simulator hardcoded --testnet=true, preventing users from testing mainnet behavior. This change allows the simulator to default to mainnet while still respecting the --testnet flag when explicitly provided.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Which part is impacted ?

  • Simulator

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

License

I am contributing & releasing the code under DERO Research License (which can be found here).

@moralpriest moralpriest force-pushed the fix/simulator-mainnet-default branch 3 times, most recently from b32291d to 7aace61 Compare February 2, 2026 22:13
Previously, the simulator hardcoded --testnet=true, preventing users from
testing mainnet behavior. The simulator would always run in testnet mode
regardless of user input.

This change:
- Removes the hardcoded --testnet=true assignment
- Defaults to mainnet when --testnet flag is not provided
- Properly respects the --testnet flag when explicitly set by user
- Adds defensive nil checking in InitNetwork() to handle missing flag

Fixes simulator network mode selection to match user expectations.
@moralpriest moralpriest force-pushed the fix/simulator-mainnet-default branch from 7aace61 to 6912199 Compare February 2, 2026 22:15
@8lecramm 8lecramm self-assigned this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants