Synchronization

無法連接到對等點,也無法同步網路

  • January 2, 2020

我既無法連接到我的同行,也無法在我的網路中同步我的比特幣核心。

當我將筆記型電腦連接到我的移動熱點時,同步工作正常並顯示進度。這是此會話的 debug.log。

2017-04-22 02:16:35 Bitcoin version v0.14.0
2017-04-22 02:16:35 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-04-22 02:16:35 Assuming ancestors of block 00000000000000000013176bf8d7dfeab4e1db31dc93bc311b436e82ab226b90 have valid signatures.
2017-04-22 02:16:35 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2017-04-22 02:16:36 Default data directory C:\Users\rewanth\AppData\Roaming\Bitcoin
2017-04-22 02:16:36 Using data directory C:\Users\rewanth\AppData\Roaming\Bitcoin
2017-04-22 02:16:36 Using config file C:\Users\rewanth\AppData\Roaming\Bitcoin\bitcoin.conf
2017-04-22 02:16:36 Using at most 125 automatic connections (2048 file descriptors available)
2017-04-22 02:16:36 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2017-04-22 02:16:36 Using 4 threads for script verification
2017-04-22 02:16:36 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2017-04-22 02:16:36 Using wallet wallet.dat
2017-04-22 02:16:36 scheduler thread start
2017-04-22 02:16:36 init message: Verifying wallet...
2017-04-22 02:16:36 CDBEnv::Open: LogDir=C:\Users\rewanth\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\rewanth\AppData\Roaming\Bitcoin\db.log
2017-04-22 02:16:36 Bound to [::]:8333
2017-04-22 02:16:36 Bound to 0.0.0.0:8333
2017-04-22 02:16:36 Cache configuration:
2017-04-22 02:16:36 * Using 2.0MiB for block index database
2017-04-22 02:16:36 * Using 8.0MiB for chain state database
2017-04-22 02:16:36 * Using 290.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2017-04-22 02:16:36 init message: Loading block index...
2017-04-22 02:16:36 Opening LevelDB in C:\Users\rewanth\AppData\Roaming\Bitcoin\blocks\index
2017-04-22 02:16:36 Opened LevelDB successfully
2017-04-22 02:16:36 Using obfuscation key for C:\Users\rewanth\AppData\Roaming\Bitcoin\blocks\index: 0000000000000000
2017-04-22 02:16:36 Opening LevelDB in C:\Users\rewanth\AppData\Roaming\Bitcoin\chainstate
2017-04-22 02:16:36 Opened LevelDB successfully
2017-04-22 02:16:36 Using obfuscation key for C:\Users\rewanth\AppData\Roaming\Bitcoin\chainstate: 60c31a5357347687
2017-04-22 02:16:41 LoadBlockIndexDB: last block file = 6
2017-04-22 02:16:41 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=5029, size=87792634, heights=156435...161579, time=2011-12-07...2012-01-10)
2017-04-22 02:16:41 Checking all blk files are present...
2017-04-22 02:16:41 LoadBlockIndexDB: transaction index disabled
2017-04-22 02:16:41 LoadBlockIndexDB: hashBestChain=00000000000000c60ea90c44bc166bb558633110631b4674d6e909e7ff5fb510 height=161480 date=2012-01-10 01:03:18 progress=0.010138
2017-04-22 02:16:41 init message: Rewinding blocks...
2017-04-22 02:16:41 init message: Verifying blocks...
2017-04-22 02:16:41 Verifying last 6 blocks at level 3
2017-04-22 02:16:41 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-04-22 02:16:42 No coin database inconsistencies in last 7 blocks (294 transactions)
2017-04-22 02:16:42  block index            5693ms
2017-04-22 02:16:42 init message: Loading wallet...
2017-04-22 02:16:42 nFileVersion = 140000
2017-04-22 02:16:42 Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
2017-04-22 02:16:42  wallet                   27ms
2017-04-22 02:16:42 setKeyPool.size() = 100
2017-04-22 02:16:42 mapWallet.size() = 0
2017-04-22 02:16:42 mapAddressBook.size() = 1
2017-04-22 02:16:42 mapBlockIndex.size() = 462900
2017-04-22 02:16:42 nBestHeight = 161480
2017-04-22 02:16:42 Imported mempool transactions from disk: 0 successes, 0 failed, 0 expired
2017-04-22 02:16:42 torcontrol thread start
2017-04-22 02:16:42 init message: Loading addresses...
2017-04-22 02:16:42 Loaded 31871 addresses from peers.dat  152ms
2017-04-22 02:16:42 init message: Loading banlist...
2017-04-22 02:16:42 init message: Starting network threads...
2017-04-22 02:16:42 net thread start
2017-04-22 02:16:42 init message: Done loading
2017-04-22 02:16:42 opencon thread start
2017-04-22 02:16:42 addcon thread start
2017-04-22 02:16:42 dnsseed thread start
2017-04-22 02:16:42 msghand thread start
2017-04-22 02:16:42 GUI: Platform customization: "windows"
2017-04-22 02:16:42 GUI: PaymentServer::LoadRootCAs: Loaded  46  root certificates
2017-04-22 02:16:46 GUI:   OpenType support missing for script 11
2017-04-22 02:16:46 GUI:   OpenType support missing for script 11
2017-04-22 02:16:46 GUI:   OpenType support missing for script 11
2017-04-22 02:16:46 GUI:   OpenType support missing for script 11
2017-04-22 02:16:46 GUI:   OpenType support missing for script 16
2017-04-22 02:16:46 GUI:   OpenType support missing for script 16
2017-04-22 02:16:46 GUI:   OpenType support missing for script 16
2017-04-22 02:16:46 GUI:   OpenType support missing for script 16
2017-04-22 02:16:53 Loading addresses from DNS seeds (could take a while)
2017-04-22 02:17:00 112 addresses found from DNS seeds
2017-04-22 02:17:00 dnsseed thread exit
2017-04-22 02:28:44 receive version message: /Satoshi:0.13.1/: version 70014, blocks=462955, us=49.15.64.2:36345, peer=0
2017-04-22 02:28:45 UpdateTip: new best=00000000000003f2ccb5a19f40f6b5802ff07719ba10fc7e99d9bcd44de94a68 height=161481 version=0x00000001 log2_work=67.487095 tx=2174008 date='2012-01-10 01:08:08' progress=0.010138 cache=0.2MiB(234tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000b8e36b81ce65b918438ac8a83d5e0d3122f7602edc5d452b35c height=161482 version=0x00000001 log2_work=67.487133 tx=2174082 date='2012-01-10 01:26:49' progress=0.010139 cache=0.5MiB(511tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000284fe62694cbf9642e37098529a198593cde9c2cec802d176bc height=161483 version=0x00000001 log2_work=67.48717 tx=2174103 date='2012-01-10 01:37:45' progress=0.010139 cache=0.5MiB(564tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000895acb623071d6f327633577ec0b241c16d94c05c4a5e76284b height=161484 version=0x00000001 log2_work=67.487208 tx=2174142 date='2012-01-10 01:39:38' progress=0.010139 cache=0.6MiB(661tx)
2017-04-22 02:28:45 UpdateTip: new best=000000000000041cc6c4728ae6cb6a75360c8e1e686a77e08ebd63e439e3931c height=161485 version=0x00000001 log2_work=67.487245 tx=2174296 date='2012-01-10 01:42:40' progress=0.010140 cache=0.6MiB(826tx)
2017-04-22 02:28:45 UpdateTip: new best=00000000000007e320dcb7e350eca2deb12ef4d37968c082124e82c455d1b391 height=161486 version=0x00000001 log2_work=67.487283 tx=2174302 date='2012-01-10 01:44:13' progress=0.010140 cache=0.7MiB(841tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000258cf7d2142a5deae114cb0c23849c3633ab1f984ae0904520f height=161487 version=0x00000001 log2_work=67.48732 tx=2174316 date='2012-01-10 01:47:50' progress=0.010140 cache=0.7MiB(900tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000b9636a1f36bd4ae07e2fae5711924cfe1343e19a156d4ca1fae height=161488 version=0x00000001 log2_work=67.487358 tx=2174325 date='2012-01-10 01:47:54' progress=0.010140 cache=0.7MiB(924tx)
2017-04-22 02:28:45 UpdateTip: new best=0000000000000a499dc3ddf037c5b3064c9f20388eef354ee71de37603134cf9 height=161489 version=0x00000001 log2_work=67.487395 tx=2174359 date='2012-01-10 01:50:52' progress=0.010140 cache=0.7MiB(1007tx)

但是當我將它連接到我的大學網路時,比特幣核心無法與網路同步,甚至沒有顯示任何對等點。我也可以在我的大學網路上執行 TOR。我嘗試通過更改比特幣核心中的代理地址,但仍然沒有用。錯誤的 debug.log 如下。

2017-04-22 01:51:17 Bitcoin version v0.14.0
2017-04-22 01:51:17 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-04-22 01:51:17 Assuming ancestors of block 00000000000000000013176bf8d7dfeab4e1db31dc93bc311b436e82ab226b90 have valid signatures.
2017-04-22 01:51:17 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2017-04-22 01:51:17 Default data directory C:\Users\rewanth\AppData\Roaming\Bitcoin
2017-04-22 01:51:17 Using data directory C:\Users\rewanth\AppData\Roaming\Bitcoin
2017-04-22 01:51:17 Using config file C:\Users\rewanth\AppData\Roaming\Bitcoin\bitcoin.conf
2017-04-22 01:51:17 Using at most 125 automatic connections (2048 file descriptors available)
2017-04-22 01:51:17 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2017-04-22 01:51:17 Using 4 threads for script verification
2017-04-22 01:51:17 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2017-04-22 01:51:17 scheduler thread start
2017-04-22 01:51:17 Using wallet wallet.dat
2017-04-22 01:51:17 init message: Verifying wallet...
2017-04-22 01:51:17 CDBEnv::Open: LogDir=C:\Users\rewanth\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\rewanth\AppData\Roaming\Bitcoin\db.log
2017-04-22 01:51:17 Bound to [::]:8333
2017-04-22 01:51:17 Bound to 0.0.0.0:8333
2017-04-22 01:51:17 Cache configuration:
2017-04-22 01:51:17 * Using 2.0MiB for block index database
2017-04-22 01:51:17 * Using 8.0MiB for chain state database
2017-04-22 01:51:17 * Using 290.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2017-04-22 01:51:17 init message: Loading block index...
2017-04-22 01:51:17 Opening LevelDB in C:\Users\rewanth\AppData\Roaming\Bitcoin\blocks\index
2017-04-22 01:51:17 Opened LevelDB successfully
2017-04-22 01:51:17 Using obfuscation key for C:\Users\rewanth\AppData\Roaming\Bitcoin\blocks\index: 0000000000000000
2017-04-22 01:51:17 Opening LevelDB in C:\Users\rewanth\AppData\Roaming\Bitcoin\chainstate
2017-04-22 01:51:17 Opened LevelDB successfully
2017-04-22 01:51:17 Using obfuscation key for C:\Users\rewanth\AppData\Roaming\Bitcoin\chainstate: 60c31a5357347687
2017-04-22 01:51:22 LoadBlockIndexDB: last block file = 6
2017-04-22 01:51:22 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=5029, size=87792634, heights=156435...161579, time=2011-12-07...2012-01-10)
2017-04-22 01:51:22 Checking all blk files are present...
2017-04-22 01:51:22 LoadBlockIndexDB: transaction index disabled
2017-04-22 01:51:22 LoadBlockIndexDB: hashBestChain=00000000000000c60ea90c44bc166bb558633110631b4674d6e909e7ff5fb510 height=161480 date=2012-01-10 01:03:18 progress=0.010138
2017-04-22 01:51:22 init message: Rewinding blocks...
2017-04-22 01:51:23 init message: Verifying blocks...
2017-04-22 01:51:23 Verifying last 6 blocks at level 3
2017-04-22 01:51:23 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-04-22 01:51:23 No coin database inconsistencies in last 7 blocks (294 transactions)
2017-04-22 01:51:23  block index            5741ms
2017-04-22 01:51:23 init message: Loading wallet...
2017-04-22 01:51:23 nFileVersion = 140000
2017-04-22 01:51:23 Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
2017-04-22 01:51:23  wallet                   29ms
2017-04-22 01:51:23 setKeyPool.size() = 100
2017-04-22 01:51:23 mapWallet.size() = 0
2017-04-22 01:51:23 mapAddressBook.size() = 1
2017-04-22 01:51:23 mapBlockIndex.size() = 462900
2017-04-22 01:51:23 nBestHeight = 161480
2017-04-22 01:51:23 Imported mempool transactions from disk: 0 successes, 0 failed, 0 expired
2017-04-22 01:51:23 torcontrol thread start
2017-04-22 01:51:23 init message: Loading addresses...
2017-04-22 01:51:23 Loaded 31862 addresses from peers.dat  154ms
2017-04-22 01:51:23 init message: Loading banlist...
2017-04-22 01:51:23 init message: Starting network threads...
2017-04-22 01:51:23 net thread start
2017-04-22 01:51:23 opencon thread start
2017-04-22 01:51:23 init message: Done loading
2017-04-22 01:51:23 dnsseed thread start
2017-04-22 01:51:23 msghand thread start
2017-04-22 01:51:23 addcon thread start
2017-04-22 01:51:23 GUI: Platform customization: "windows"
2017-04-22 01:51:23 GUI: PaymentServer::LoadRootCAs: Loaded  46  root certificates
2017-04-22 01:51:34 Loading addresses from DNS seeds (could take a while)
2017-04-22 01:51:41 113 addresses found from DNS seeds
2017-04-22 01:51:41 dnsseed thread exit
2017-04-22 01:58:34 GUI:   OpenType support missing for script 11
2017-04-22 01:58:34 GUI:   OpenType support missing for script 11
2017-04-22 01:58:34 GUI:   OpenType support missing for script 11
2017-04-22 01:58:34 GUI:   OpenType support missing for script 11
2017-04-22 01:58:34 GUI:   OpenType support missing for script 16
2017-04-22 01:58:34 GUI:   OpenType support missing for script 16
2017-04-22 01:58:34 GUI:   OpenType support missing for script 16
2017-04-22 01:58:34 GUI:   OpenType support missing for script 16

在此處輸入圖像描述

但是當我使用我的移動熱點執行它時,它會在剩餘塊數、每小時進度增加和同步前的估計剩餘時間中顯示一些值。

我嘗試使用上述錯誤消息解決此問題,但它們超出了我的範圍。

這種行為的原因是什麼?如果我想使用我的大學網路將比特幣核心與網路同步,應該怎麼做?

提前致謝。

看起來你的大學網路不允許比特幣連接。從技術上講,應該可以使用 Tor 讓它工作,但我沒有這方面的經驗。您寫道 Tor 適合您,並且您已嘗試設置代理,但有些不清楚您實際嘗試了什麼以及它在您的環境中是否正確。另一件需要考慮的事情:根據你大學網路的政策,使用它來訪問比特幣節點可能會有問題。您是否可以改用 Electrum 錢包?可能值得一試。

但是當我將它連接到我的大學網路時,比特幣核心無法與網路同步,甚至沒有顯示任何對等點。我也可以在我的大學網路上執行 TOR。我嘗試通過更改比特幣核心中的代理地址,但仍然沒有用。錯誤的 debug.log 如下。

在您的第二個日誌文件中,Bitcoin Core 似乎沒有使用代理。檢查您的代理設置,保存它們,安全退出並重新啟動 Bitcoin Core。

比特幣核心網路選項

或者,您可以在這裡查看一些比特幣核心和 Tor 配置——您可以只使用部分配置或全部配置。請注意,只有在您不希望任何傳入的非匿名連接時才需要綁定到 127.0.0.1(如果您的大學無論如何都會阻止比特幣流量,以防他們有嗅探器,這可能是一個好主意)。另外,檢查您的代理埠,我聽說某些 Windows 安裝的 Tor 的代理埠是 9150 而不是 9050。

引用自:https://bitcoin.stackexchange.com/questions/52906