Author

Topic: How to fork omni layer and build own alttoken (Read 100 times)

newbie
Activity: 1
Merit: 0
hi, here is my omni core info

{
  "omnicoreversion_int": 80002000,
  "omnicoreversion": "0.8.2",
  "mastercoreversion": "0.8.2",
  "bitcoincoreversion": "0.18.1",
  "block": 85,
  "blocktime": 1595175228,
  "blocktransactions": 0,
  "totaltrades": 0,
  "totaltransactions": 0,
  "alerts": [
  ]
}

my bitcoin.conf was change based on https://bitcointalksearch.org/topic/complete-guide-on-how-to-create-a-new-alt-coin-update-2019-5134256, all coin feature and mining are tested and working well.

but then i got problem in configuring omni layer. since internet has very very less information about this, i start with rules.cpp

CMainConsensusParams::CMainConsensusParams()
{
    // Exodus related:
    exodusBonusPerWeek = 0.00;
    exodusDeadline = 1377993600;
    exodusReward = 100;
    GENESIS_BLOCK = 2;
    LAST_EXODUS_BLOCK = std::numeric_limits::max();
    // Notice range for feature activations:
    MIN_ACTIVATION_BLOCKS = 0;
    MAX_ACTIVATION_BLOCKS = 0;
    // Waiting period for enabling freezing
    OMNI_FREEZE_WAIT_PERIOD = 0;
    // Script related:
    PUBKEYHASH_BLOCK = 0;
    SCRIPTHASH_BLOCK = 0;
    MULTISIG_BLOCK = 0;
    NULLDATA_BLOCK = 0;
    // Transaction restrictions:
    MSC_ALERT_BLOCK = 0;
    MSC_SEND_BLOCK = 0;
    MSC_DEX_BLOCK = 0;
    MSC_SP_BLOCK = 0;
    MSC_MANUALSP_BLOCK = 0;
    MSC_STO_BLOCK = 0;
    MSC_METADEX_BLOCK = 0;
    MSC_SEND_ALL_BLOCK = 0;
    MSC_BET_BLOCK = 999999;
    MSC_STOV1_BLOCK = 0;
    // Other feature activations:
    GRANTEFFECTS_FEATURE_BLOCK = 0;
    DEXMATH_FEATURE_BLOCK = 0;
    SPCROWDCROSSOVER_FEATURE_BLOCK = 0;
    TRADEALLPAIRS_FEATURE_BLOCK = 0;
    FEES_FEATURE_BLOCK = 0;
    FREEZENOTICE_FEATURE_BLOCK = 0;
    FREEDEX_FEATURE_BLOCK = 0;
}
and also i disable all the transaction and consensus checkpoint in this script and lastly i change exodus_address to my own.

i have successfully executed omni_sendissuancefixed with tx id return, but with no luck after run miner, omni_listproperties keep return me default 2 tokens  Undecided Undecided

anyone can help?


Jump to: