Show Posts
|
Pages: [1] 2 »
|
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,
|
|
|
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,
|
|
|
They have removed those commands. Manual mining should work.
Thanks.
|
|
|
Hello, In older versions of POS staking coins these commands use to work perfectly(./coin setgenerate true). #ifdef ENABLE_WALLET /* Coin generation */ {"generating", "getgenerate", &getgenerate, true, false, false}, {"generating", "gethashespersec", &gethashespersec, true, false, false}, {"generating", "setgenerate", &setgenerate, true, true, false}, #endif #ifdef ENABLE_WALLET /* Coin generation */ {"generating", "getgenerate", &getgenerate, true }, {"generating", "gethashespersec", &gethashespersec, true }, {"generating", "setgenerate", &setgenerate, true }, {"generating", "generate", &generate, true }, #endif #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" 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 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.
|
|
|
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: 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.
|
|
|
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 30% premine Ouch. It will fail. Thanks,
|
|
|
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.
|
|
|
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.
|
|
|
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() 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,
|
|
|
I cleaned everything and new genesis block created. Now its working Fine. 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": "" } 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
|
|
|
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
|
|
|
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
|
|
|
Check out this YouTube video https://www.youtube.com/watch?v=ENaTmbh8XuwIt'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,
|
|
|
Hello,
How to create Genesisblock hash(MainNet, Testnet, Regression Test) from source code, any SHA256 coin (Bitcoin or Qtum or any).
Thanks,
|
|
|
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.
|
|
|
Hello,
How to burn a altcoin forked from cryptonote coin.
Thanks.
|
|
|
@CjMapope
Coin owner hired a dev, but the coin (Litecoin fork) was not mining on Digital ocean, and they decided to fork dash coin.
|
|
|
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.
|
|
|
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.
|
|
|
|