Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mlt -> CoinUnit #1241

Merged
merged 8 commits into from
Sep 29, 2023
Merged

Mlt -> CoinUnit #1241

merged 8 commits into from
Sep 29, 2023

Conversation

TheQuantumPhysicist
Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist commented Sep 28, 2023

Two problems are solved in this PR:

  1. The struct Mlt is renamed to CoinUnit, to keep the code coin-agnostic... this may be annoying in cases where we're dealing with testnet or similar. It should have a different ticker.

  2. The ticker configuration is removed from that struct, because it should be different for different networks. It was being set as a constant everywhere. Now it comes from ChainType.

Closes #1178

common/src/chain/config/emission_schedule.rs Outdated Show resolved Hide resolved
common/src/chain/config/mod.rs Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
@TheQuantumPhysicist TheQuantumPhysicist merged commit 943908e into master Sep 29, 2023
23 checks passed
@TheQuantumPhysicist TheQuantumPhysicist deleted the fix/mlt_coin branch September 29, 2023 14:05
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.

Rename Mlt to ML in all the sources
3 participants