"One Click Tangle" intends to make lives easier to IOTA adopters by providing pre-configured scripts and recipes that allow to deploy IOTA Networks and Nodes "in one click".
MIT License
55
stars
35
forks
source link
Change amount of tokens to be minted for the snapshot address #40
Possible reasons why this happens is because, when using the value 2779530283277761 allocates all the tokens to the treasury and 0 tokens to the mint address.
By setting the value other than 2779530283277761, like 0, will have 0 tokens allocated to the treasury and 2779530283277761 to the mint address. And with that we will have at least some balance in the mint address/snapshot address.
In this case, the value is set to 1000000000 to leave 1000000000 to the treasury and the rest (2779530283277761 - 1000000000) to the mint address.
Type of change
Bug fix (a non-breaking change which fixes an issue)
Description of change
After creating a private tangle, the balance of the snapshot address is 0i. Which shouldn't be the case.
The private tangle scripts from gohornet repository has the initial amount allocated to 1000000000 https://github.com/gohornet/hornet/blob/e5716dd9db839a75d39c98b3856b29a9226a7a76/private_tangle/create_snapshot_private_tangle.sh#L14 while the script has the value set to the maximum amount 2779530283277761
Possible reasons why this happens is because, when using the value 2779530283277761 allocates all the tokens to the treasury and 0 tokens to the mint address.
By setting the value other than 2779530283277761, like 0, will have 0 tokens allocated to the treasury and 2779530283277761 to the mint address. And with that we will have at least some balance in the mint address/snapshot address.
In this case, the value is set to 1000000000 to leave 1000000000 to the treasury and the rest (2779530283277761 - 1000000000) to the mint address.
Type of change
Bug fix (a non-breaking change which fixes an issue)
How the change has been tested
Change the value of 2779530283277761 to 1000000000 at https://github.com/iotaledger/one-click-tangle/blob/chrysalis/hornet-private-net/private-tangle.sh#L191. this changes the total amount allocated to the treasury
Install the private tangle.
Copy the snapshot address found in the address.txt file.
Paste the address in the explorer, found in localhost:8081
Check if the balance reflects the total maximum supply.
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.