Bitcoin Forum
May 05, 2024, 03:25:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Alternate cryptocurrencies / Altcoin Discussion / Potential stale tip detected, (Wallet not syncing)? on: September 15, 2020, 06:31:46 AM
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,
2  Alternate cryptocurrencies / Altcoin Discussion / Trim to reduce the size. on: September 12, 2020, 10:17:05 AM
Hello,

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

Linux command, which removes the junk from executables.

When I download the Wallets or daemons that size, and executables compiled from sources are different.

For example: qt wallet downloaded is just 30 - 40 MB, cross compiled (78 MB) or Direct compiled on Machine is (376 MB) 

Thanks,

3  Alternate cryptocurrencies / Altcoin Discussion / Re: Setgenerate removed from latest source? on: September 09, 2020, 03:41:42 AM
They have removed those commands. Manual mining should work.

Thanks.
4  Alternate cryptocurrencies / Altcoin Discussion / Setgenerate removed from latest source? on: September 08, 2020, 03:58:23 PM
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", <expression error>, {"true"}’ from ‘<brace-enclosed initializer list>’ to ‘CRPCCommand’

another way I tried
Code:
rpc/server.cpp:259:1: error: could not convert ‘{"generating", "setgenerate", <expression error>, true, true, false}’ from ‘<brace-enclosed initializer list>’ to ‘CRPCCommand’

How to solve this? Did they removed the code?

Thanks.
5  Alternate cryptocurrencies / Altcoin Discussion / Re: Need Math for Halving Interval and Subsidy on: September 06, 2020, 03:43:07 AM

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.
6  Alternate cryptocurrencies / Altcoin Discussion / Re: Need Math for Halving Interval and Subsidy on: September 05, 2020, 01:42:24 PM
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,   
7  Alternate cryptocurrencies / Altcoin Discussion / Re: ERROR: Hardened checkpoint at height 0 on: September 05, 2020, 12:10:59 PM
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.
8  Alternate cryptocurrencies / Altcoin Discussion / Re: Need Math for Halving Interval and Subsidy on: September 05, 2020, 11:20:53 AM
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.
9  Alternate cryptocurrencies / Altcoin Discussion / Need Math for Halving Interval and Subsidy on: September 05, 2020, 07:41:07 AM
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)
consensus.nSubsidyHalvingInterval = ??


As per above data, how to modify this GetBlockSubsidy()


Code:
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
    if(nHeight <= consensusParams.nLastBigReward)
       ( return xxxxx * COIN;) --------Sample

    int halvings = (nHeight - consensusParams.nLastBigReward - 1) / consensusParams.nSubsidyHalvingInterval;
    // Force block reward to zero when right shift is undefined.
    if (halvings >= xxx) --------------Sample
        return 0;

    CAmount nSubsidy = xxx * COIN; -----------------Sample
    // Subsidy is cut in half every xxxxxx blocks which will occur approximately every 4 years.
    nSubsidy >>= halvings;
    return nSubsidy;
}


Thanks,
10  Alternate cryptocurrencies / Altcoin Discussion / Re: ERROR: Hardened checkpoint at height 0 on: September 05, 2020, 07:39:10 AM
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
11  Alternate cryptocurrencies / Altcoin Discussion / Re: ERROR: Hardened checkpoint at height 0 on: September 03, 2020, 11:44:49 AM
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 
12  Alternate cryptocurrencies / Altcoin Discussion / ERROR: Hardened checkpoint at height 0 on: September 03, 2020, 11:19:28 AM
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
13  Alternate cryptocurrencies / Altcoin Discussion / Re: Create Genesisblock hash (SHA256) on: September 02, 2020, 02:54:43 PM
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.

Can i use, MainNet parameters  (Nounce, Genesisblock hash, Merkle Hash, epoch time) to TestNet and Regtest (same as it is)?

Thanks,
14  Alternate cryptocurrencies / Altcoin Discussion / Create Genesisblock hash (SHA256) on: September 02, 2020, 01:56:21 PM
Hello,

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

Thanks,
 
15  Alternate cryptocurrencies / Altcoin Discussion / Re: How to burn a coin on: November 12, 2019, 02:57:22 PM
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.
16  Alternate cryptocurrencies / Altcoin Discussion / How to burn a coin on: November 12, 2019, 03:54:27 AM
Hello,

How to burn a altcoin forked from cryptonote coin.

Thanks.
17  Alternate cryptocurrencies / Mining (Altcoins) / Re: CPU miner on: October 21, 2019, 05:46:02 AM
@CjMapope

Coin owner hired a dev, but the coin (Litecoin fork) was not mining on Digital ocean, and they decided to fork dash coin.
18  Alternate cryptocurrencies / Mining (Altcoins) / Re: Not mining first block on: October 16, 2019, 05:59:08 PM
You need a second rig mining to confirm the block..

On one node using internal miner, And another droplet node using as miner. totally 2 nodes.
19  Alternate cryptocurrencies / Mining (Altcoins) / Re: CPU miner on: October 12, 2019, 10:56:44 AM
@jmigdlc99,

I can pay if coin is fixed, here is the link speaks about the issue.

https://bitcointalk.org/index.php?topic=5191582.0
20  Alternate cryptocurrencies / Mining (Altcoins) / CPU miner on: October 11, 2019, 08:54:36 AM
Hello,

Any one here having CPU or ASIC miner, i forked a coin from Litecoin. Need to mine few blocks for testing purpose.

Can any body help me, i will provide the coin wallet win and Ubuntu 16, 64 bit daemon.


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