Pages:
Author

Topic: Bitcoin-qt is not opening (Read 878 times)

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 30, 2020, 07:03:21 AM
#55
Thank you, one last thing. In order to rename my coin from "bitcoin" to "altcoin", do I have to rename everything like this?:
Code:
find . -type f -print0 | xargs -0 sed -1 's/bitcoin/altcoin/g'
find . -type f -print0 | xargs -0 sed -1 's/Bitcoin/Altcoin/g'
find . -type f -print0 | xargs -0 sed -1 's/BitCoin/AltCoin/g'
etc

I did this, but it seems that I'll also have to rename the filenames too, because of this:
Code:
#include

I hope that by renaming those too, I'm done.
HCP
legendary
Activity: 2086
Merit: 4314
December 29, 2020, 09:19:53 PM
#54
It would depend entirely on your network setup and the way the OSes/firewalls on the PCs are configured...
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 29, 2020, 04:41:33 PM
#53
Question, do I need to port forward in order to transfer information without having to be connected on the same local ip address? I remember that I tried doing it, but failed. On original bitcoin core, I don't need. I guess that I shouldn't need on this too.
HCP
legendary
Activity: 2086
Merit: 4314
December 27, 2020, 02:54:28 PM
#52
Yeah... they were the ones I was thinking of... As I recall, they are different for each network type (main, test, regtest etc). I think I set my "mainnet" ones to be the same (or similar) values as the regtest ones and then it starting syncing better.

Glad you managed to get it sorted Wink
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 25, 2020, 02:36:59 PM
#51
Do you mean these?

m_assumed_blockchain_size = 350;
m_assumed_chain_state_size = 6;


Should I decrease the blockchain_size?

Edit: 26/12/2020 - 14:37 UTC:
I changed both to 2 and it's working! Thanks!
HCP
legendary
Activity: 2086
Merit: 4314
December 25, 2020, 02:33:46 PM
#50
I vaguely remember tweaking something regarding blockchain and/or chainstate "size" in one of the "chainparams" source code files... I'm not sure if that actually has anything to do with whether or not it requires a certain number of blocks before syncing...

Really beginning to wish I had kept my modifications now Undecided
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 25, 2020, 03:52:52 AM
#49
Indeed, it seems to be syncing the block headers at least, so that's a good sign that it is connecting properly... for some reason it seems to think that 6 is only ~22% of the being synced... so you might need to generate "a few" more blocks for it consider the headers synced and to start collecting blocks? Huh
Isn't there a variable in the source code that sets how many blocks are "enough" to start syncing? There must be another way to sync, instead of mine ~30 blocks.
HCP
legendary
Activity: 2086
Merit: 4314
December 24, 2020, 04:37:31 PM
#48
I define PC#1 as the one that mined the 6 blocks. PC#2 is the other one. Note that it took many hours to mine them. I don't like calling it luck, since it's possibilities, but I must have been unlucky.
That's why I spent a bit of time getting cpuminer/bfgminer up and running... it was quite a hassle getting one to work properly, but it definitely had a better hash rate than using generatetoaddress.

It does show something. Here's my debug.log: https://pastebin.com/raw/JYpFCefd
I don't have a bitcoin.conf file on my PC#2. Should I?
Probably not necessary if it is connected and showing as a peer etc...
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 23, 2020, 04:42:14 PM
#47
I define PC#1 as the one that mined the 6 blocks. PC#2 is the other one. Note that it took many hours to mine them. I don't like calling it luck, since it's possibilities, but I must have been unlucky.

When a block is mined on PC#1, do you see any of the "UpdateTip" type messages appear in the debug.log on PC#2? Huh
It does show something. Here's my debug.log: https://pastebin.com/raw/JYpFCefd

Also, what are your settings on PC#2? ie. contents of bitcoin.conf etc
I don't have a bitcoin.conf file on my PC#2. Should I?
HCP
legendary
Activity: 2086
Merit: 4314
December 23, 2020, 04:07:58 PM
#46
From memory, it took a few blocks for the 2nd instance (was running in a VM), to decide that that was the longest chain and to start syncing the blocks... like I said, I deleted everything, so I can't test it now Sad

When a block is mined on PC#1, do you see any of the "UpdateTip" type messages appear in the debug.log on PC#2? Huh

Also, what are your settings on PC#2? ie. contents of bitcoin.conf etc
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 23, 2020, 03:41:01 PM
#45
So, the 2nd PC is stuck on 'zero' blocks in the "information" screen? Huh
Yes, it's stuck with the genesis block. Any ideas?
HCP
legendary
Activity: 2086
Merit: 4314
December 23, 2020, 03:19:15 PM
#44
possibly... or "transaction" information etc...

So, the 2nd PC is stuck on 'zero' blocks in the "information" screen? Huh
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 23, 2020, 08:58:42 AM
#43
I recompiled it and mined 6 blocks. Still the PC doesn't receive any blocks. They do make a connection, but they don't transfer blocks:



What are they transferring then? What are these kilobytes? Handshakes?
HCP
legendary
Activity: 2086
Merit: 4314
December 21, 2020, 04:13:12 PM
#42
It "might"... it's impossible to tell with these fork coins what is causing issues because of the mods that have been made... I haven't looked at mine in weeks and from memory, I had issues with it if I left it offline for a day or two, it would cause issues with getting it going and mining/syncing again Undecided

I can't even go and try to test my setup, as it appears that due to resource constraints, I deleted all the forkcoin stuff I had in my VMs Shocked
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 21, 2020, 02:59:00 PM
#41
In the "blocks" folder... so that blk00000.dat file that is shown in your screenshot will have your block data in it.
Should I move the blk00000.dat to my other laptop to start syncing? I don't get why it ain't syncing.
HCP
legendary
Activity: 2086
Merit: 4314
December 21, 2020, 02:36:35 PM
#40
Where are the blocks located? On my bitcoin core it says that I have mined 6 blocks, just like you did, but I don't see them anywhere:

In the "blocks" folder... so that blk00000.dat file that is shown in your screenshot will have your block data in it.

You can retrieve some block information from the console using:
Code:
getblockhash BLOCKNUMBER

This will return the BLOCK_HASH...

then:
Code:
getblock BLOCK_HASH
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 21, 2020, 09:29:25 AM
#39
EDIT: after mining a couple of subsequent blocks, it seems the 2nd node was able to sync up properly... and I'm now able to send transactions between the 2 etc. So maybe mine some more blocks and see if that kicks things into action for you Wink

Where are the blocks located? On my bitcoin core it says that I have mined 6 blocks, just like you did, but I don't see them anywhere:





legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 21, 2020, 08:06:34 AM
#38
generatetoaddress should have multi-core capability (since Bitcoin-qt also had one for mainnet mining), so i doubt there's significant performance increase.
I have a better GPU than CPU. Is it possible to run bitcoin core with GPU?
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
December 21, 2020, 07:05:59 AM
#37
By using a cpu miner like cpuminer does it go faster? Why is my antivirus going crazy when I try to download it? It doesn't allow me.

Antivirus programs now have filters that flag all miners, malicious or not, as malware. You need not worry about this as long as you downloaded cpuminer from a reputable source and verified its checksum. You should whitelist the file.

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
December 21, 2020, 04:38:14 AM
#36
I like getting back to it once a month. It is a nice habit and practice.  Tongue

I had left it for 6 weeks without mining any blocks. I don't think that this is an issue. At least not at the first 2016 blocks. Today I opened bitcoin-qt on my laptop and pc and started mining using generatetoaddress. I haven't succeeded yet:



By using a cpu miner like cpuminer does it go faster? Why is my antivirus going crazy when I try to download it? It doesn't allow me.



I try to disable it temporally but it says:



Should I worry?
Pages:
Jump to: