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

Token fees update #47

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ class CMainParams : public CChainParams {
consensus.mn.anchoringFrequency = 15;
consensus.mn.anchoringLag = 15;

consensus.token.creationFee = 1 * COIN;
consensus.token.collateralAmount = 1000 * COIN;
consensus.token.creationFee = 100 * COIN;
consensus.token.collateralAmount = 1 * COIN;

consensus.spv.creationFee = 100000; // should be > bitcoin's dust
consensus.spv.anchorSubsidy = 0 * COIN;
Expand All @@ -166,10 +166,10 @@ class CMainParams : public CChainParams {
* The message start string is designed to be unlikely to occur in normal data.
* The characters are rarely used upper ASCII, not valid as UTF-8, and produce
* a large 32-bit integer with any alignment.
*/
*/
pchMessageStart[0] = 0xf9;
pchMessageStart[1] = 0xbe;
pchMessageStart[2] = 0xb4;
pchMessageStart[1] = 0xbe;
pchMessageStart[2] = 0xb4;
pchMessageStart[3] = 0xd9;
pchMessageStartPostAMK[0] = 0xe2;
pchMessageStartPostAMK[1] = 0xaa;
Expand Down Expand Up @@ -300,6 +300,7 @@ class CTestNetParams : public CChainParams {
consensus.mn.anchoringFrequency = 15;
consensus.mn.anchoringLag = 15;

// TODO: update these to be the same as mainnet, i.e. 100 & 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monstrobishi this could be an issue though for testnet, any ideas?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might have to do a testnet rollback to re-align the params for testnet.

consensus.token.creationFee = 1 * COIN;
consensus.token.collateralAmount = 100 * COIN;

Expand All @@ -315,7 +316,7 @@ class CTestNetParams : public CChainParams {
pchMessageStartPostAMK[1] = pchMessageStart[1] = 0x11;
pchMessageStartPostAMK[2] = pchMessageStart[2] = 0x09;
pchMessageStartPostAMK[3] = pchMessageStart[3] = 0x07;

nDefaultPort = 18555;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 30;
Expand Down Expand Up @@ -550,8 +551,8 @@ class CRegTestParams : public CChainParams {
consensus.mn.anchoringFrequency = 15;
consensus.mn.anchoringLag = 15;

consensus.token.creationFee = 1 * COIN;
consensus.token.collateralAmount = 10 * COIN;
consensus.token.creationFee = 100 * COIN;
consensus.token.collateralAmount = 1 * COIN;

consensus.spv.creationFee = 1000; // should be > bitcoin's dust
consensus.spv.wallet_xpub = "tpubDA2Mn6LMJ35tYaA1Noxirw2WDzmgKEDKLRbSs2nwF8TTsm2iB6hBJmNjAAEbDqYzZLdThLykWDcytGzKDrjUzR9ZxdmSbFz7rt18vFRYjt9";
Expand Down