Search content
Sort by

Showing 20 of 31 results by marvic4
Post
Topic
Board Altcoin Discussion
Topic OP
new altcoin, node stoped progress after loading genesis block
by
marvic4
on 24/02/2025, 17:42:44 UTC
Hello,

Node stopped progressing after loading the genesis block, and it's just flushing fee estimates every hour. That means it's stuck and not verifying blocks properly? This coin is forked from bitcoin 28.x.
root@newcoin:~/newcoin/src# tail -f ~/.newcoin/debug.log
2025-02-24T11:44:24Z [DEBUG] Entering LoadGenesisBlock()
2025-02-24T11:44:24Z [DEBUG] LoadGenesisBlock() called, Genesis Hash: 0000000084c978688ff288a5c1d49a3fe4982bd1b05bkta4568ee4455ea95710
2025-02-24T11:44:24Z Loading 0 mempool transactions from file...
2025-02-24T11:44:24Z Imported mempool transactions from file: 0 succeeded, 0 failed, 0 expired,
 0 already there, 0 waiting for initial broadcast
2025-02-24T11:44:24Z initload thread exit
2025-02-24T12:44:24Z Flushed fee estimates to fee_estimates.dat.
2025-02-24T13:44:24Z Flushed fee estimates to fee_estimates.dat.
2025-02-24T14:44:24Z Flushed fee estimates to fee_estimates.dat.
2025-02-24T15:44:24Z Flushed fee estimates to fee_estimates.dat.
2025-02-24T16:44:24Z Flushed fee estimates to fee_estimates.dat.


root@newcoin:~/newcoin/src# ./newcoin-cli getblockcount
error code: -28
error message:
Verifying blocks…               <--------- This message is from src/init.cpp


Any light on this, appreciated
Post
Topic
Board Development & Technical Discussion
Re: how to generate genesis bloack hash using randomx algo
by
marvic4
on 19/02/2025, 17:04:05 UTC
@pooya87 , @DaCryptoRaccoon Thanks for replay, need to generate genesis hash using Randomx. How to generate it any tool to do? or any source code to do it? just genesis hash only. Yes, older version better to create, but using RandomX hash not using SHA256
Post
Topic
Board Development & Technical Discussion
Topic OP
how to generate genesis bloack hash using randomx algo
by
marvic4
on 19/02/2025, 12:01:09 UTC
Hello, how to generate genesis hash using randomx algorithm. Any tool appreciated. I tried with Randomx source code integrated into bitcoin core source code getting globalCahinparams initialization problems.
Thanks
Post
Topic
Board Altcoin Discussion
Topic OP
generate genesis bloack hash using randomx algo
by
marvic4
on 18/02/2025, 10:18:24 UTC
Hello, how to generate genesis hash using randomx algorithm. Any tool appreciated. I tried with Randomx source code integrated into bitcoin core source code getting globalCahinparams initialization problems.
Thanks
Post
Topic
Board Altcoin Discussion
Topic OP
Potential stale tip detected, (Wallet not syncing)?
by
marvic4
on 15/09/2020, 06:31:46 UTC
Hello,

How to solve the "Potential stale tip detected" wallet is not syncing( syncing Headers 0.0%) for past few days, with server node.

New outbound peer connected: version: 70018, blocks=5000, peer=1 (full-relay)
2020-09-15T06:00:01Z P2P peers available. Skipped DNS seeding.
2020-09-15T06:00:01Z dnsseed thread exit
2020-09-15T06:11:05Z Potential stale tip detected, will try using extra outbound peer (last tip update: 675 seconds ago)
2020-09-15T06:14:52Z Timeout downloading headers from peer=0, disconnecting
2020-09-15T06:14:52Z New outbound peer connected: version: 70018, blocks=0, peer=2 (full-relay)
2020-09-15T06:21:35Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1305 seconds ago)

Thanks,
Post
Topic
Board Altcoin Discussion
Topic OP
Trim to reduce the size.
by
marvic4
on 12/09/2020, 10:17:05 UTC
Hello,

How to trim the daemons and cli executables in Linux (command line).

Which removes the junk from executables.

Thanks,
Post
Topic
Board Altcoin Discussion
Re: Setgenerate removed from latest source?
by
marvic4
on 09/09/2020, 03:41:42 UTC
They have removed those commands. They allow mining manually.

Thanks.
Post
Topic
Board Altcoin Discussion
Topic OP
Setgenerate removed from latest source?
by
marvic4
on 08/09/2020, 15:58:23 UTC
Hello,

In older versions of POS staking coins these commands use to work perfectly(./coin setgenerate true).
Code:
#ifdef ENABLE_WALLET
        /* Coin generation */
        {"generating", "getgenerate", &getgenerate, true, false, false},
        {"generating", "gethashespersec", &gethashespersec, true, false, false},
        {"generating", "setgenerate", &setgenerate, true, true, false},
#endif

Code:
#ifdef ENABLE_WALLET
        /* Coin generation */
        {"generating", "getgenerate", &getgenerate, true },
        {"generating", "gethashespersec", &gethashespersec, true },
        {"generating", "setgenerate", &setgenerate, true },
        {"generating", "generate", &generate, true },
#endif

Code:
#ifdef ENABLE_WALLET
        /* Coin generation */
        {"generating", "getgenerate", &getgenerate, true, {} },
        {"generating", "gethashespersec", &gethashespersec, true, {} },
        {"generating", "setgenerate", &setgenerate, true, {} },
        {"generating", "generate", &generate, true, {} },
#endif

This is removed from (CRPCCommand command []) Latest, new version of POS coins.

When I try to add the in net.cpp or server.cpp it giving error says "could not convert"

Code:
rpc/server.cpp:258:1: error: could not convert ‘{"generating", "setgenerate", , {"true"}’ from ‘’ to ‘CRPCCommand’

another way I tried
Code:
rpc/server.cpp:259:1: error: could not convert ‘{"generating", "setgenerate", , true, true, false}’ from ‘’ to ‘CRPCCommand’

How to solve this? Did they removed the code?

Thanks.
Post
Topic
Board Altcoin Discussion
Re: Need Math for Halving Interval and Subsidy
by
marvic4
on 06/09/2020, 03:43:07 UTC

Code:
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
    ...
    // Force block reward to zero when right shift is undefined.
    if (halvings >= xxx) --------------Sample
        return 0;
    ...
}

That should be the following regardless of any of the parameters:

Code:
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
    ...
    // Force block reward to zero when right shift is undefined.
    if (halvings >= sizeof(nSubsidy) * CHAR_BIT)
        return 0;
    ...
}

In Bitcoin Core, they use the literal 64, which is ok until something changes and then it becomes a bug.

Thanks for replay.
Post
Topic
Board Development & Technical Discussion
Re: Need Math for Halving Interval and Subsidy
by
marvic4
on 05/09/2020, 13:42:24 UTC
Exactly 7391250, but you can round it to 7400000.
4 years = 126144000 seconds
126144000/600 = 210240 blocks per halving
30 years = 946080000 seconds
946080000/128 = 7391250 blocks per halving

Quote
30% premine
Ouch. It will fail.

Thanks,   
Post
Topic
Board Development & Technical Discussion
Re: ERROR: Hardened checkpoint at height 0
by
marvic4
on 05/09/2020, 12:10:59 UTC
Can I use MainNet data( Merkle, Genesis, epoch, nounce) to Testnet and RegTest?

No, due to various reasons such as different address format & genesis block on testnet are different.

Thanks, I used source code to generate Genesisblock hash, with different PCH message and other values for all three.

For Mainnet and TestNet it crated same Nounce, Markel and Genesis Hash values. But different values for RegTest.
Post
Topic
Board Development & Technical Discussion
Re: Need Math for Halving Interval and Subsidy
by
marvic4
on 05/09/2020, 11:20:53 UTC
when you keep getting stuck on basic things such as creating genesis block, mining a new block, setting block rewards, total supply,... (according to your post history) then maybe it is a sign that you are on a wrong path and should start by first learning what each of these topics you struggle with are and why they are designed like that instead of just trying to change variables and see which one works to create a new altcoin that has been created thousands of times before in the same exact way.

Thanks, for reading my previous posts, I am aware of basic things how to fork a coin(Older versions, few coins launched). But not expert Like YOU.
 
Those forked coins have lots of problems (newer versions ). I used to have Genesis tool generators,  which work for some coins and won't work most of the coins. That is main thing (tool generator)

That is the reason why i ask a question here. If your not interested in answering it is fine.

Now I asked simple Math,  Some one will help. I do help many devs.

Thanks.
Post
Topic
Board Development & Technical Discussion
Topic OP
Need Math for Halving Interval and Subsidy
by
marvic4
on 05/09/2020, 07:41:07 UTC
I Need a math here,

max_coin is 30M
30% premine,
30 Years reward goal,
Tragetspacing is 2 * 64 (128 sec)

So, I need to calculate Halving Interval (blocks)

and GetBlockSubsidy()

Thanks,
Post
Topic
Board Development & Technical Discussion
Re: ERROR: Hardened checkpoint at height 0
by
marvic4
on 05/09/2020, 07:39:10 UTC
I cleaned everything and new genesis block created. Now its working Fine.

Code:
root@bitstash:/home/qtum-old/src# ./qtum-cli --getinfo
{
"version": 190100,
"protocolversion": 70018,
"blocks": 0,
"timeoffset": 0,
"connections": 0,
"proxy": "",
"difficulty": {
"proof-of-work": 1.52587890625e-05,
"proof-of-stake": 1.52587890625e-05
},
"chain": "main",
"moneysupply": 0,
"walletversion": 169900,
"balance": 0.00000000,
"stake": 0.00000000,
"keypoololdest": 1599197003,
"keypoolsize": 1000,
"paytxfee": 0.00000000,
"relayfee": 0.00400000,
"warnings": ""
}

Code:
2020-09-04T05:23:22Z [default wallet] Performing wallet upgrade to 169900
2020-09-04T05:23:23Z [default wallet] keypool added 2000 keys (1000 internal), size=2000 (1000 internal)
2020-09-04T05:23:23Z [default wallet] Wallet completed loading in 858ms
2020-09-04T05:23:23Z [default wallet] setKeyPool.size() = 2000
2020-09-04T05:23:23Z [default wallet] mapWallet.size() = 0
2020-09-04T05:23:23Z [default wallet] mapAddressBook.size() = 0
2020-09-04T05:23:23Z UpdateTip: new best=0000ff68e1cfa3d35a6e0a7923a01ae94e5e5c28104459c844bf8037a273cd99 height=0 version=0x00000001 log2_work=16.000022 tx=1 date='2020-09-04T05:15:06Z' progress=1.000000 cache=0.0MiB(0txo)
2020-09-04T05:23:23Z block tree size = 1
2020-09-04T05:23:23Z nBestHeight = 0
2020-09-04T05:23:23Z AddLocal(45.32.79.25:4565,1)
2020-09-04T05:23:23Z Discover: IPv4 ens3: 45.32.79.25
2020-09-04T05:23:23Z AddLocal([2001:19f0:6001:1514:5400:2ff:fef3:e254]:4565,1)
2020-09-04T05:23:23Z Discover: IPv6 ens3: 2001:19f0:6001:1514:5400:2ff:fef3:e254
2020-09-04T05:23:23Z Bound to [::]:4565
2020-09-04T05:23:23Z Bound to 0.0.0.0:4565
2020-09-04T05:23:23Z init message: Loading P2P addresses...
2020-09-04T05:23:23Z ERROR: DeserializeFileDB: Failed to open file /root/.qtum/peers.dat
2020-09-04T05:23:23Z Invalid or missing peers.dat; recreating
2020-09-04T05:23:23Z Failed to open mempool file from disk. Continuing anyway.
2020-09-04T05:23:23Z torcontrol thread start
2020-09-04T05:23:23Z init message: Starting network threads...
2020-09-04T05:23:23Z init message: Done loading
2020-09-04T05:23:23Z msghand thread start
2020-09-04T05:23:23Z opencon thread start
2020-09-04T05:23:23Z addcon thread start
2020-09-04T05:23:23Z dnsseed thread start
2020-09-04T05:23:23Z 0 addresses found from DNS seeds
2020-09-04T05:23:23Z dnsseed thread exit
2020-09-04T05:23:23Z net thread start


Thanks
Post
Topic
Board Development & Technical Discussion
Re: ERROR: Hardened checkpoint at height 0
by
marvic4
on 03/09/2020, 11:44:49 UTC
What version did you compile?

As far as I remember BTC no longer uses hardcoded checkpoints but this is for block 0 so it might still be checking for that.
You can probably google around for that.

Beyond that I have no idea, you will have to wait for a few more knowledgeable people to pop in.

-Dave


Latest version I think, cloned from repository with --recursive.

Can I use MainNet data( Merkle, Genesis, epoch, nounce) to Testnet and RegTest?

Thanks 
Post
Topic
Board Development & Technical Discussion
Topic OP
ERROR: Hardened checkpoint at height 0
by
marvic4
on 03/09/2020, 11:19:28 UTC
Hello,

2020-09-03T11:05:58Z ERROR: ConnectBlock: expected hardened checkpoint at height 0
2020-09-03T11:05:58Z InvalidChainFound: invalid block=0000cd027920e06c8427611280df1bb5afc78a22cdb21a74d87b51da6b84bd5d  height=0  log2_work=16.000022  date=2020-09-03T07:48:16Z
qtumd: validation.cpp:1636: void InvalidChainFound(CBlockIndex*): Assertion `tip' failed.

What is the issue.

Thanks
Post
Topic
Board Development & Technical Discussion
Re: Create Genesisblock hash (SHA256)
by
marvic4
on 02/09/2020, 14:54:43 UTC
Check out this YouTube video

https://www.youtube.com/watch?v=ENaTmbh8Xuw

It's actually #2 in a series of 6. I think in this one he discusses what you need to do to generate the genesis block.
Might be in a later one, but they are all short videos that you can watch to see if you missed anything.

-Dave

Thanks, I know this video(saw all 6 before), saw this before for Scrypt based Litecoin.

I need SHA256, After google, found few generators (GENESIS0), but this will generate one at time MainNet or Testnet or regression.
Which will have different epoch time, Merkle, Geneisblock hah etc.

But In Bitcoin, Litecoin or any other coin all the 3 nets(Main, Test, reg) have same Merkle and Epochtime.

Using Chainparams.cpp It will generate 3 Genesisblocks(Maine, Testnet, Regre).

How to do in that way.
 
Post
Topic
Board Development & Technical Discussion
Topic OP
Create Genesisblock hash (SHA256)
by
marvic4
on 02/09/2020, 13:56:21 UTC
Hello,

How to create Genesisblock hash(MainNet, Testnet, Regression Test) from source code,  any SHA256 coin (Bitcoin or Qtum or any).

Thanks,
 
Post
Topic
Board Altcoin Discussion
Re: How to burn a coin
by
marvic4
on 12/11/2019, 14:57:22 UTC
send to invalid address, i am aware of that. But that method will show burned coins in network.

I don't want show in network, and max supply should get decreased.

There should be no sign of burned coins.
Post
Topic
Board Development & Technical Discussion
Topic OP
How to burn a coin
by
marvic4
on 12/11/2019, 03:54:27 UTC
Hello,

How to burn a altcoin forked from cryptonote coin.

Thanks.