PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

[FIXED] How to change solana initial supply in own custom cluster?

 July 28, 2022     blockchain, genesis, solana, solana-cli     No comments   

Issue

The problem I'm working on is my team wants me to setup my own cluster with an initial supply of 400M sol. I have gone through the genesis module and found some genesis accounts. I couldnt really find the total supply or mint_lamports anywhere except for it being in test-validator module. could anyone please help me out with this? thank you.


Solution

You're on the right track! The genesis accounts will contain all of the SOL in the network as defined at https://github.com/solana-labs/solana/blob/3c7022014211b26bca03793f198c31e986e4dbd1/genesis/src/genesis_accounts.rs#L230

Specifically, the 500m SOL is defined here: https://github.com/solana-labs/solana/blob/3c7022014211b26bca03793f198c31e986e4dbd1/genesis/src/genesis_accounts.rs#L259

In your case, you'll want to change up the owners of the stake accounts to keys that you own, or remove them entirely. It's up to you how to distribute the genesis tokens.



Answered By - Jon C
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing