muecoin / MUE

MUE2.0
https://MonetaryUnit.org
MIT License
10 stars 13 forks source link

2.2.0 Won't sync from genesis #11

Open rldleblanc opened 3 years ago

rldleblanc commented 3 years ago

This issue tracker is only for technical issues related to MonetaryUnit Core. General MonetaryUnit questions and/or support requests and are best directed to the MonetaryUnit Discord.

Describe the issue

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Fetched v2.2.0 from git
  2. Built with depends, NO_QT and NO_UPNP
  3. MUE starts up fine, but never makes progress (started in a fresh directory).

Expected behavior

Block chain should be downloaded and then start participating in the network.

Actual behavior

Just chews up 33% of a CPU core and does nothing.

What version of MonetaryUnit Core are you using?

v2.2.0 (497f555758d1077ba76595f6f99e575ea45dc78f) self compiled as above.

Machine specs:

Any extra information that might be useful in the debugging process.

2020-11-20 02:52:57 MonetaryUnit version v2.2.0-dirty (2020-10-19 14:31:09 -0500) 2020-11-20 02:52:57 Using OpenSSL version OpenSSL 1.0.1k 8 Jan 2015 2020-11-20 02:52:57 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2020-11-20 02:52:57 Default data directory /home/rleblanc/.monetaryunit 2020-11-20 02:52:57 Using data directory /home/rleblanc/.monetaryunit 2020-11-20 02:52:57 Using config file /home/rleblanc/.monetaryunit/monetaryunit.conf 2020-11-20 02:52:57 Using at most 125 connections (1024 file descriptors available) 2020-11-20 02:52:57 Using 16 threads for script verification 2020-11-20 02:52:57 HTTP: creating work queue of depth 16 2020-11-20 02:52:57 scheduler thread start 2020-11-20 02:52:57 No rpcpassword set - using random cookie authentication 2020-11-20 02:52:57 Generated RPC authentication cookie /home/rleblanc/.monetaryunit/.cookie 2020-11-20 02:52:57 HTTP: starting 4 worker threads 2020-11-20 02:52:57 Creating backup of "/home/rleblanc/.monetaryunit/wallet.dat" -> "/home/rleblanc/.monetaryunit/backups/wallet.dat.2020-11-20-02-52" 2020-11-20 02:52:57 Using wallet wallet.dat 2020-11-20 02:52:57 init message: Verifying wallet... 2020-11-20 02:52:57 CDBEnv::Open: LogDir=/home/rleblanc/.monetaryunit/database ErrorFile=/home/rleblanc/.monetaryunit/db.log 2020-11-20 02:52:57 Bound to [::]:19687 2020-11-20 02:52:57 Bound to 0.0.0.0:19687 2020-11-20 02:52:57 init message: Loading block index... 2020-11-20 02:52:57 Opening LevelDB in /home/rleblanc/.monetaryunit/sporks 2020-11-20 02:52:57 Opened LevelDB successfully 2020-11-20 02:52:57 Opening LevelDB in /home/rleblanc/.monetaryunit/blocks/index 2020-11-20 02:52:57 Opened LevelDB successfully 2020-11-20 02:52:57 Opening LevelDB in /home/rleblanc/.monetaryunit/chainstate 2020-11-20 02:52:57 Opened LevelDB successfully 2020-11-20 02:52:57 init message: Loading sporks... 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_2_SWIFTTX found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_3_SWIFTTX_BLOCK_FILTERING found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_5_MAX_VALUE found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_7_MASTERNODE_SCANNING found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_10_MASTERNODE_PAY_UPDATED_NODES found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_13_ENABLE_SUPERBLOCKS found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_14_NEW_PROTOCOL_ENFORCEMENT found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2 found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_17_SEGWIT_ACTIVATION found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_18_NEW_PROTOCOL_ENFORCEMENT_3 found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_19_SEGWIT_ON_COINBASE found in database 2020-11-20 02:52:57 LoadSporksFromDB : no previous value for SPORK_20_TX_CHECK found in database 2020-11-20 02:52:57 init message: Loading block index... 2020-11-20 02:52:57 LoadBlockIndexDB: last block file = 0 2020-11-20 02:52:57 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1, size=245, heights=0...0, time=2018-09-06...2018-09-06) 2020-11-20 02:52:57 Checking all blk files are present... 2020-11-20 02:52:57 LoadBlockIndexDB: Last shutdown was prepared: true 2020-11-20 02:52:57 LoadBlockIndexDB(): transaction index enabled 2020-11-20 02:52:57 LoadBlockIndexDB(): address index enabled 2020-11-20 02:52:57 LoadBlockIndexDB(): hashBestChain=0b58ed450b3819ca54ab0054c4d220ca4f887d21c9e55d2a333173adf76d987f height=0 date=2018-09-06 20:35:33 progress=0.000000 2020-11-20 02:52:57 init message: Rewinding blocks... 2020-11-20 02:52:57 init message: Verifying blocks... 2020-11-20 02:52:57 block index 67ms 2020-11-20 02:52:57 init message: Loading wallet... 2020-11-20 02:52:57 nFileVersion = 2020000 2020-11-20 02:52:57 Keys: 0 plaintext, 3158 encrypted, 3158 w/ metadata, 3158 total 2020-11-20 02:52:57 wallet 31ms 2020-11-20 02:52:57 init message: Syncing zMUE wallet... 2020-11-20 02:52:57 init message: Loading masternode cache... 2020-11-20 02:52:57 init message: Loading budget cache... 2020-11-20 02:52:57 init message: Loading masternode payment cache... 2020-11-20 02:52:57 Locking Masternodes: 2020-11-20 02:52:57 fLiteMode 0 2020-11-20 02:52:57 nSwiftTXDepth 5 2020-11-20 02:52:57 Anonymize MonetaryUnit Amount 2 2020-11-20 02:52:57 Budget Mode auto 2020-11-20 02:52:57 CObfuscationPool::SetCollateralAddress - Invalid Obfuscation collateral address 2020-11-20 02:52:57 mapBlockIndex.size() = 1 2020-11-20 02:52:57 chainActive.Height() = 0 2020-11-20 02:52:57 setExternalKeyPool.size() = 1000 2020-11-20 02:52:57 setInternalKeyPool.size() = 0 2020-11-20 02:52:57 mapWallet.size() = 1013 2020-11-20 02:52:57 mapAddressBook.size() = 10 2020-11-20 02:52:57 init message: Loading addresses... 2020-11-20 02:52:57 torcontrol thread start 2020-11-20 02:52:57 Loaded 3 addresses from peers.dat 0ms 2020-11-20 02:52:57 init message: Done loading 2020-11-20 02:52:57 net thread start 2020-11-20 02:52:57 opencon thread start 2020-11-20 02:52:57 addcon thread start 2020-11-20 02:52:57 dnsseed thread start 2020-11-20 02:52:57 msghand thread start 2020-11-20 02:52:57 AcceptToMemoryPool : 2020-11-20 02:52:57 AcceptToMemoryPool : 2020-11-20 02:52:57 AcceptToMemoryPool : 2020-11-20 02:52:57 AcceptToMemoryPool : 2020-11-20 02:52:57 AcceptToMemoryPool : 2020-11-20 02:52:57 stakemint thread start 2020-11-20 02:52:57 ThreadStakeMinter started 2020-11-20 02:52:57 MonetaryUnitMiner started 2020-11-20 02:53:08 Loading addresses from DNS seeds (could take a while) 2020-11-20 02:53:08 3 addresses found from DNS seeds 2020-11-20 02:53:08 dnsseed thread exit

rldleblanc commented 3 years ago

I moved the current .monetaryunit directory out of the way and let it create a new one. It looks like it banned all of the peers in the DNS seed.

2020-11-20 08:14:28 Invalid or missing banlist.dat; recreating
2020-11-20 08:14:28 Loaded 0 addresses from peers.dat  0ms
2020-11-20 08:14:28 dnsseed thread start
2020-11-20 08:14:28 Loading addresses from DNS seeds (could take a while)
2020-11-20 08:14:28 init message: Done loading
2020-11-20 08:14:28 addcon thread start
2020-11-20 08:14:28 net thread start
2020-11-20 08:14:28 msghand thread start
2020-11-20 08:14:28 opencon thread start
2020-11-20 08:14:28 stakemint thread start
2020-11-20 08:14:28 ThreadStakeMinter started
2020-11-20 08:14:28 MonetaryUnitMiner started
2020-11-20 08:14:28 3 addresses found from DNS seeds
2020-11-20 08:14:28 dnsseed thread exit
2020-11-20 08:14:30 asking peer for sporks
2020-11-20 08:14:30 receive version message: /MonetaryUnit Core:2.2.0/: version 70704, blocks=1688024, us=67.199.179.49:33154, peer=1
2020-11-20 08:14:30 Added time data, samples 2, offset +0 (+0 minutes)
2020-11-20 08:14:30 spork - new e5ab11470f7599b81184380e2f4938cd1d8c74d47b54fc6daa896f665e0c7e30 ID 10007 Time 1 bestHeight 0
2020-11-20 08:14:30 spork - invalid signature
2020-11-20 08:14:30 Misbehaving: 164.132.176.87:19687 (0 -> 100) BAN THRESHOLD EXCEEDED
2020-11-20 08:14:51 asking peer for sporks
2020-11-20 08:14:51 receive version message: /MonetaryUnit Core:2.2.0/: version 70704, blocks=1688024, us=67.199.179.49:54606, peer=2
2020-11-20 08:14:51 Added time data, samples 3, offset +0 (+0 minutes)
2020-11-20 08:14:51 spork - new e5ab11470f7599b81184380e2f4938cd1d8c74d47b54fc6daa896f665e0c7e30 ID 10007 Time 1 bestHeight 0
2020-11-20 08:14:51 spork - invalid signature
2020-11-20 08:14:51 Misbehaving: 164.132.176.89:19687 (0 -> 100) BAN THRESHOLD EXCEEDED
2020-11-20 08:15:21 asking peer for sporks
2020-11-20 08:15:21 receive version message: /MonetaryUnit Core:2.2.0/: version 70704, blocks=1688025, us=67.199.179.49:40546, peer=3
2020-11-20 08:15:21 Added time data, samples 4, offset +0 (+0 minutes)
2020-11-20 08:15:21 spork - new e5ab11470f7599b81184380e2f4938cd1d8c74d47b54fc6daa896f665e0c7e30 ID 10007 Time 1 bestHeight 0
2020-11-20 08:15:21 spork - invalid signature
2020-11-20 08:15:21 Misbehaving: 164.132.176.86:19687 (0 -> 100) BAN THRESHOLD EXCEEDED

Here is the script I used to build MUE.

#! /bin/sh

set -x

cd depends
nice make -j 8 NO_QT=1 NO_UPNP=1
cd ..
./autogen.sh
CONFIG_SITE=${PWD}/depends/x86_64-pc-linux-gnu/share/config.site ./configure --without-gui --without-miniupnpc --disable-tests --disable-bench                                                                                                              
#./configure --prefix=$PWD/depends/x86_64-pc-linux-gnu --without-gui --without-miniupnpc --disable-wallet --disable-tests
nice make -j 12

echo "Run 'sudo make install'"

exit 0
rldleblanc commented 3 years ago

I tried the pre-built binary with the same results. I pulled my backup from 1 Oct 2020 and it fired right up and I'm now in sync with the blockchain. We should really be able to fetch the blockchain from the genesis block.