Bitcoinj

無法建構電路,因為我們沒有足夠的目錄資訊

  • March 13, 2018

我正在使用BitcoinJ框架開發一個比特幣錢包應用程序。使用 部署應用程序Tomcat 8時,出現以下錯誤堆棧,

12-Jun-2017 14:18:12.511 INFO [PeerGroup Thread] com.subgraph.orchid.TorClient.start Starting Orchid (version: 1.0.0)

12-Jun-2017 14:18:12.514 INFO [Thread-12] com.subgraph.orchid.directory.DirectoryImpl.loadFromStore
Loading cached network information from disk

12-Jun-2017 14:18:12.516 INFO [Thread-12] com.subgraph.orchid.directory.DirectoryImpl.loadFromStore Loading certificates

12-Jun-2017 14:18:12.518 INFO [CircuitManager worker-0] com.subgraph.orchid.circuits.CircuitCreationTask.checkCircuitsForCreation
Cannot build circuits because we don't have enough directory information

12-Jun-2017 14:18:12.601 INFO [Thread-12] com.subgraph.orchid.directory.DirectoryImpl.loadFromStore Loading consensus

12-Jun-2017 14:18:12.917 WARNING [Thread-12] com.subgraph.orchid.directory.consensus.ConsensusDocumentImpl.verifySingleAuthority
Consensus signed by unrecognized directory authority: 0232af901c31a04ee9848595af9bb7620d4c5b2e

12-Jun-2017 14:18:12.943 INFO [Thread-12] com.subgraph.orchid.directory.DirectoryImpl.loadFromStore Loading
microdescriptor cache

12-Jun-2017 14:18:13.160 INFO [Thread-12] com.subgraph.orchid.directory.DirectoryImpl.loadFromStore loading state file

12-Jun-2017 14:18:15.662 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying
web application directory [/Applications/Tomcat-8.5.15/webapps/manager]

堆棧的最後兩行,

org.bitcoinj.core.PeerGroup: 06/12/2017 14:53:36 - Tor ready
org.bitcoinj.core.PeerGroup: 06/12/2017 14:53:36 - Localhost peer not detected.

我相信Tomcat部署很好,其中一個錯誤是至關重要的通知 -com.subgraph.orchid.circuits.CircuitCreationTask.checkCircuitsForCreation Cannot build circuits because we don't have enough directory information

我使用 maven 作為建構工具,並BitcoinJ在項目中獲取了 as 依賴項的 RELEASE 版本。

<dependency>
   <groupId>org.bitcoinj</groupId>
   <artifactId>bitcoinj-core</artifactId>
   <version>RELEASE</version>
</dependency>

我最近在系統中載入RAM併升級到OS Sierra. 我很驚訝,之後我無法從終端使用 maven 並手動設置它。目前的 Maven 資訊,

$ mvn -version

Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T01:39:06+06:00)
Maven home: /Users/Chaklader/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.4", arch: "x86_64", family: "mac"

如何正確處理問題?

無法建構電路,因為我們沒有足夠的目錄資訊

這是標準 Tor 錯誤消息的完全相同的副本,通常只在 Tor 節點啟動後的短時間內看到。

自行解決。我猜這個資訊Localhost peer not detected是在幕後。現在,在找到peers我已將應用程序同步到blockchain

在此處輸入圖像描述

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