Author

Topic: Core connected to peers, but not transferring any block data. (Read 148 times)

newbie
Activity: 7
Merit: 0
Yes i did this but this wasn't still not working. I think the problem is because wrong hash/markle hash and nonce. I tried many programs but they never gave me something that works.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Well, you did make a bitcoin fork with a different user agent, so neither the network of peers nor any of the hardcoded seeders are going to make a connection to your node.

That means unless you have other nodes on your network besides those two, your first node must supply the second node with block information.

You might want to check if you have the second node's IP listed as an outbound connection in the first node, i.e. try adding this to the first node's bitcoin.conf:

Code:
addnode=<1st node's IP address>
HCP
legendary
Activity: 2086
Merit: 4361
Most likely a "block max age" or an "assumed block size" issue... have a read of this: https://bitcointalksearch.org/topic/m.56085433
...
In this tutorial I will not explain how to make our own genesis block, because we want to achieve something simple. Anyone who takes it more seriously can search and learn how it is done. Thus, we need to change the value of nMaxTipAge in validation.cpp:

Multiply it with a big number like 10000.
Code:
int64_t nMaxTipAge = DEFAULT_MAX_TIP_AGE * 10000;

In consensus/consensus.h we need to change COINBASE_MATURITY which means how "deep" a block must be for the miner to spend its reward. In bitcoin it is 100, that is, someone who will mine 1 block must wait 100 blocks to spend its coins. We can give it any value, I will put it equal with 3:

Code:
static const int COINBASE_MATURITY = 3;

Finally, we need to change these two lines of chainparams.cpp:
Code:
m_assumed_blockchain_size = 1;
m_assumed_chain_state_size = 1;
(They are related with the block height in order for nodes to share information)
...
and maybe this: https://bitcointalk.org/index.php?topic=5283684.20


I know when I was experimenting when trying to help BlackHatCointer, that I had issues with getting the 2nd box to pick up new blocks that were being mined... I can't remember exactly what was needed to get it working... but I believe it was a combination of the max tip age and the assumed blockchain size.
newbie
Activity: 7
Merit: 0
This is the the info inside debug.log (both files of both servers are here),
debug.log on mining up to date server,
2021-05-18 10:56:20



















2021-05-18 10:56:20 Bandex version v0.15.1.0-5d2ac7c
2021-05-18 10:56:20 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2021-05-18 10:56:20 Assuming ancestors of block 59c9b9d3fec105bdc716d84caa7579503d5b05b73618d0bf2d5fa639f780a011 have valid signatures.
2021-05-18 10:56:20 Setting nMinimumChainWork=00000000000000000000000000000000000000000000002ebcfe2dd9eff82666
2021-05-18 10:56:20 Using the 'standard' SHA256 implementation
2021-05-18 10:56:20 Using RdRand as an additional entropy source
2021-05-18 10:56:20 Default data directory /home/jonasbellaert/.bandex
2021-05-18 10:56:20 Using data directory /home/jonasbellaert/.bandex
2021-05-18 10:56:20 Using config file /home/jonasbellaert/.bandex/bandex.conf
2021-05-18 10:56:20 Using at most 125 automatic connections (1024 file descriptors available)
2021-05-18 10:56:20 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-05-18 10:56:20 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-05-18 10:56:20 Using 2 threads for script verification
2021-05-18 10:56:20 scheduler thread start
2021-05-18 10:56:20 HTTP: creating work queue of depth 16
2021-05-18 10:56:20 Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.
2021-05-18 10:56:20 HTTP: starting 4 worker threads
2021-05-18 10:56:20 init message: Verifying wallet(s)...
2021-05-18 10:56:20 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-05-18 10:56:20 Using wallet wallet.dat
2021-05-18 10:56:20 CDBEnv::Open: LogDir=/home/jonasbellaert/.bandex/database ErrorFile=/home/jonasbellaert/.bandex/db.log
2021-05-18 10:56:20 Cache configuration:
2021-05-18 10:56:20 * Using 2.0MiB for block index database
2021-05-18 10:56:20 * Using 8.0MiB for chain state database
2021-05-18 10:56:20 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2021-05-18 10:56:20 init message: Loading block index...
2021-05-18 10:56:20 Opening LevelDB in /home/jonasbellaert/.bandex/blocks/index
2021-05-18 10:56:20 Opened LevelDB successfully
2021-05-18 10:56:20 Using obfuscation key for /home/jonasbellaert/.bandex/blocks/index: 0000000000000000
2021-05-18 10:56:20 LoadBlockIndexDB: last block file = 0
2021-05-18 10:56:20 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2021-05-18 10:56:20 Checking all blk files are present...
2021-05-18 10:56:20 LoadBlockIndexDB: transaction index disabled
2021-05-18 10:56:20 Initializing databases...
2021-05-18 10:56:20 Pre-allocating up to position 0x1000000 in blk00000.dat
2021-05-18 10:56:20 Opening LevelDB in /home/jonasbellaert/.bandex/chainstate
2021-05-18 10:56:20 Opened LevelDB successfully
2021-05-18 10:56:20 Wrote new obfuscate key for /home/jonasbellaert/.bandex/chainstate: 61bdded4d40a9f0f
2021-05-18 10:56:20 Using obfuscation key for /home/jonasbellaert/.bandex/chainstate: 61bdded4d40a9f0f
2021-05-18 10:56:20 init message: Rewinding blocks...
2021-05-18 10:56:20  block index              14ms
2021-05-18 10:56:20 init message: Loading wallet...
2021-05-18 10:56:20 nFileVersion = 150100
2021-05-18 10:56:20 Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total
2021-05-18 10:56:20 Performing wallet upgrade to 60000
2021-05-18 10:56:21 keypool added 2000 keys (1000 internal), size=2000 (1000 internal)
2021-05-18 10:56:21 keypool reserve 1
2021-05-18 10:56:21 keypool keep 1
2021-05-18 10:56:21  wallet                 1094ms
2021-05-18 10:56:21 keypool added 1 keys (0 internal), size=2000 (1000 internal)
2021-05-18 10:56:21 setKeyPool.size() = 2000
2021-05-18 10:56:21 mapWallet.size() = 0
2021-05-18 10:56:21 mapAddressBook.size() = 1
2021-05-18 10:56:21 UpdateTip: new best=571431589fbc88d41e322588ece4cfe00a0789ca7345a9191ac5208f3099d44b height=0 version=0x00000001 log2_work=20.000022 tx=1 date='2021-05-16 20:14:50' progress=1.000000 cache=0.0MiB(0txo)
2021-05-18 10:56:21 Failed to open mempool file from disk. Continuing anyway.
2021-05-18 10:56:21 mapBlockIndex.size() = 1
2021-05-18 10:56:21 nBestHeight = 0
2021-05-18 10:56:21 torcontrol thread start
2021-05-18 10:56:21 AddLocal(45.153.186.12:9333,1)
2021-05-18 10:56:21 Discover: IPv4 eth0: 45.153.186.12
2021-05-18 10:56:21 Bound to [::]:9333
2021-05-18 10:56:21 Bound to 0.0.0.0:9333
2021-05-18 10:56:21 init message: Loading P2P addresses...
2021-05-18 10:56:21 ERROR: DeserializeFileDB: Failed to open file /home/jonasbellaert/.bandex/peers.dat
2021-05-18 10:56:21 Invalid or missing peers.dat; recreating
2021-05-18 10:56:21 init message: Loading banlist...
2021-05-18 10:56:21 ERROR: DeserializeFileDB: Failed to open file /home/jonasbellaert/.bandex/banlist.dat
2021-05-18 10:56:21 Invalid or missing banlist.dat; recreating
2021-05-18 10:56:21 init message: Starting network threads...
2021-05-18 10:56:21 init message: Done loading
2021-05-18 10:56:21 msghand thread start
2021-05-18 10:56:21 opencon thread start
2021-05-18 10:56:21 addcon thread start
2021-05-18 10:56:21 dnsseed thread start
2021-05-18 10:56:21 Loading addresses from DNS seeds (could take a while)
2021-05-18 10:56:21 0 addresses found from DNS seeds
2021-05-18 10:56:21 dnsseed thread exit
2021-05-18 10:56:21 GUI: Platform customization: "other"
2021-05-18 10:56:21 net thread start
2021-05-18 10:56:21 GUI: PaymentServer::LoadRootCAs: Loaded  255  root certificates
2021-05-18 10:56:44 receive version message: /BandexCore:0.15.1/: version 70015, blocks=0, us=45.153.186.12:9333, peer=0
2021-05-18 10:57:22 Adding fixed seed nodes as DNS doesn't seem to be available.
2021-05-18 10:57:48 keypool reserve 2
2021-05-18 10:57:48 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 10:58:11 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 10:58:34 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 10:58:56 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 10:59:19 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 10:59:41 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:00:04 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:00:11 Pre-allocating up to position 0x100000 in rev00000.dat
2021-05-18 11:00:11 UpdateTip: new best=4210a4916f07c423284644c885649434b07459256e5a084d4e87d26e226a600a height=1 version=0x20000000 log2_work=21.000022 tx=2 date='2021-05-18 11:00:04' progress=1.000000 cache=0.0MiB(1txo)
2021-05-18 11:00:11 AddToWallet 9637f2eaf9be3d1479da32da4f5b741ebbe0241a5612a381c99d51073ba60d5a  new
2021-05-18 11:00:11 keypool keep 2
2021-05-18 11:00:11 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:00:33 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:00:56 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:01:19 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:01:42 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:02:04 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:02:27 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:02:49 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:03:13 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:03:36 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:03:59 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:04:21 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:04:43 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:05:07 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:05:30 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:05:52 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:06:14 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:06:37 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:07:00 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:07:23 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:07:46 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:08:08 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:08:31 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:08:53 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:09:16 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:09:38 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:10:01 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:10:23 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:10:36 UpdateTip: new best=5879cb68f5ee89351f700b28e749507cb5167cd2379daee2033fa57a7f9f27ea height=2 version=0x20000000 log2_work=21.584985 tx=3 date='2021-05-18 11:10:23' progress=1.000000 cache=0.0MiB(2txo)
2021-05-18 11:10:36 AddToWallet 5675f74e9c5dccbdef9414f2a9f0a03ee5877c8d7da52cda85ff14e00a921827  new
2021-05-18 11:10:36 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:10:58 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:11:20 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2021-05-18 11:11:44 CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
debug.log on second server,
2021-05-18 10:56:42



















2021-05-18 10:56:42 Bandex version v0.15.1.0-5d2ac7c
2021-05-18 10:56:42 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2021-05-18 10:56:42 Assuming ancestors of block 59c9b9d3fec105bdc716d84caa7579503d5b05b73618d0bf2d5fa639f780a011 have valid signatures.
2021-05-18 10:56:42 Setting nMinimumChainWork=00000000000000000000000000000000000000000000002ebcfe2dd9eff82666
2021-05-18 10:56:42 Using the 'standard' SHA256 implementation
2021-05-18 10:56:42 Using RdRand as an additional entropy source
2021-05-18 10:56:42 Default data directory /home/jonasbellaert/.bandex
2021-05-18 10:56:42 Using data directory /home/jonasbellaert/.bandex
2021-05-18 10:56:42 Using config file /home/jonasbellaert/.bandex/bandex.conf
2021-05-18 10:56:42 Using at most 125 automatic connections (1024 file descriptors available)
2021-05-18 10:56:42 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-05-18 10:56:42 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-05-18 10:56:42 Using 2 threads for script verification
2021-05-18 10:56:42 init message: Verifying wallet(s)...
2021-05-18 10:56:42 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-05-18 10:56:42 Using wallet wallet.dat
2021-05-18 10:56:42 scheduler thread start
2021-05-18 10:56:42 CDBEnv::Open: LogDir=/home/jonasbellaert/.bandex/database ErrorFile=/home/jonasbellaert/.bandex/db.log
2021-05-18 10:56:42 Cache configuration:
2021-05-18 10:56:42 * Using 2.0MiB for block index database
2021-05-18 10:56:42 * Using 8.0MiB for chain state database
2021-05-18 10:56:42 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2021-05-18 10:56:42 init message: Loading block index...
2021-05-18 10:56:42 Opening LevelDB in /home/jonasbellaert/.bandex/blocks/index
2021-05-18 10:56:42 Opened LevelDB successfully
2021-05-18 10:56:42 Using obfuscation key for /home/jonasbellaert/.bandex/blocks/index: 0000000000000000
2021-05-18 10:56:42 LoadBlockIndexDB: last block file = 0
2021-05-18 10:56:42 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2021-05-18 10:56:42 Checking all blk files are present...
2021-05-18 10:56:42 LoadBlockIndexDB: transaction index disabled
2021-05-18 10:56:42 Initializing databases...
2021-05-18 10:56:42 Pre-allocating up to position 0x1000000 in blk00000.dat
2021-05-18 10:56:42 Opening LevelDB in /home/jonasbellaert/.bandex/chainstate
2021-05-18 10:56:42 Opened LevelDB successfully
2021-05-18 10:56:42 Wrote new obfuscate key for /home/jonasbellaert/.bandex/chainstate: 0dc66507cd703256
2021-05-18 10:56:42 Using obfuscation key for /home/jonasbellaert/.bandex/chainstate: 0dc66507cd703256
2021-05-18 10:56:42 init message: Rewinding blocks...
2021-05-18 10:56:42  block index              12ms
2021-05-18 10:56:42 init message: Loading wallet...
2021-05-18 10:56:42 nFileVersion = 150100
2021-05-18 10:56:42 Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total
2021-05-18 10:56:42 Performing wallet upgrade to 60000
2021-05-18 10:56:44 keypool added 2000 keys (1000 internal), size=2000 (1000 internal)
2021-05-18 10:56:44 keypool reserve 1
2021-05-18 10:56:44 keypool keep 1
2021-05-18 10:56:44  wallet                 1277ms
2021-05-18 10:56:44 keypool added 1 keys (0 internal), size=2000 (1000 internal)
2021-05-18 10:56:44 setKeyPool.size() = 2000
2021-05-18 10:56:44 mapWallet.size() = 0
2021-05-18 10:56:44 mapAddressBook.size() = 1
2021-05-18 10:56:44 UpdateTip: new best=571431589fbc88d41e322588ece4cfe00a0789ca7345a9191ac5208f3099d44b height=0 version=0x00000001 log2_work=20.000022 tx=1 date='2021-05-16 20:14:50' progress=1.000000 cache=0.0MiB(0txo)
2021-05-18 10:56:44 Failed to open mempool file from disk. Continuing anyway.
2021-05-18 10:56:44 mapBlockIndex.size() = 1
2021-05-18 10:56:44 nBestHeight = 0
2021-05-18 10:56:44 torcontrol thread start
2021-05-18 10:56:44 AddLocal(86.106.181.240:9333,1)
2021-05-18 10:56:44 Discover: IPv4 eth0: 86.106.181.240
2021-05-18 10:56:44 Bound to [::]:9333
2021-05-18 10:56:44 Bound to 0.0.0.0:9333
2021-05-18 10:56:44 init message: Loading P2P addresses...
2021-05-18 10:56:44 ERROR: DeserializeFileDB: Failed to open file /home/jonasbellaert/.bandex/peers.dat
2021-05-18 10:56:44 Invalid or missing peers.dat; recreating
2021-05-18 10:56:44 init message: Loading banlist...
2021-05-18 10:56:44 ERROR: DeserializeFileDB: Failed to open file /home/jonasbellaert/.bandex/banlist.dat
2021-05-18 10:56:44 Invalid or missing banlist.dat; recreating
2021-05-18 10:56:44 init message: Starting network threads...
2021-05-18 10:56:44 init message: Done loading
2021-05-18 10:56:44 msghand thread start
2021-05-18 10:56:44 opencon thread start
2021-05-18 10:56:44 addcon thread start
2021-05-18 10:56:44 GUI: Platform customization: "other"
2021-05-18 10:56:44 dnsseed thread start
2021-05-18 10:56:44 Loading addresses from DNS seeds (could take a while)
2021-05-18 10:56:44 0 addresses found from DNS seeds
2021-05-18 10:56:44 dnsseed thread exit
2021-05-18 10:56:44 net thread start
2021-05-18 10:56:44 receive version message: /BandexCore:0.15.1/: version 70015, blocks=0, us=86.106.181.240:33480, peer=0
2021-05-18 10:56:44 GUI: PaymentServer::LoadRootCAs: Loaded  255  root certificates
2021-05-18 10:57:45 Adding fixed seed nodes as DNS doesn't seem to be available.
2021-05-18 11:12:27 Potential stale tip detected, will try using extra outbound peer (last tip update: 943 seconds ago)
newbie
Activity: 7
Merit: 0
Hey people, I build an own crypto coin using core 0.15 and got the following problem.

On my main server, I'm mining my coin, with the config file like below.
server=1
rpcuser=darsdq
rpcpassword=Szads

On my second server, I'm just running the wallet with the config file like below.
addnode=45.153.186.12

So after I started mining on my main server the wallet on my main server shows me up-to-date, but on my second server, I can see on the debug window in peers that I am connected to a peer this also stands right-under. But my second server stays syncing and isn't receiving any data from my main server while I'm connected.

I also created a YouTube video of the error here: https://youtu.be/TN2p6sFparY
GitHub project: https://github.com/TabbsCommunity/bandex

BTC Thx, for helping Smiley BTC
Jump to: