Bitcoin Forum
November 07, 2024, 07:46:19 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / How to fork omni layer and build own alttoken on: July 19, 2020, 04:33:29 PM
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://bitcointalk.org/index.php?topic=5134256.0, 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<int>::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?


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!