0

我无法使用 com.wavesplatform.dex.Matcher 扩展运行 Fullnode Waves

Git:https ://github.com/wavesplatform/dex#7-configuration

配置文件waves.conf

waves{
  extensions = ["com.wavesplatform.dex.Matcher"]

  dex {
    # Matcher's account address
    # account = ""

    # Matcher REST API bind address
    bind-address = "127.0.0.1"

    # Matcher REST API port
    port = 6886
  }
}

F:\DMX\Compilados\waves>java -cp "F:\ZZZ\Compilados\waves\waves-all-1.1.5.jar;F:\ZZZ\Compilados\waves\lib\*" com.wavesplatform.Application waves.conf
2019-11-14 15:44:34,305 INFO  [main] c.w.Application$ - Starting...
2019-11-14 15:44:35,213 INFO  [ctor.default-dispatcher-3] a.event.slf4j.Slf4jLogger - Slf4jLogger started
2019-11-14 15:44:35,395 INFO  [main] c.w.Application$ - Waves v1.1.5 Blockchain Id: L
2019-11-14 15:44:38,473 INFO  [main] c.w.n.PeerDatabaseImpl - Loaded 0 known peer(s) from peers.dat
2019-11-14 15:44:39,026 INFO  [main] com.wavesplatform.package$ - Genesis block Block(5VRm8QtPbZ11SZfdkUKUZGSKbACyyhFuKUAzKLxpNQowhxbHbSx1wsS3jf3cM3WMa5x8XdmoLcRr2JrsHNmMpXkv -> 67rpwLC..., txs=2, features=Set()) has been added to the state
2019-11-14 15:44:39,497 INFO  [main] c.w.Application - Enable extension: com.wavesplatform.dex.Matcher
2019-11-14 15:44:39,566 ERROR [main] c.w.actor.RootActorSystem$ - Error while initializing actor system wavesplatform
java.lang.reflect.InvocationTargetException: null
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.wavesplatform.Application.$anonfun$run$15(Application.scala:248)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
        at scala.collection.Iterator.foreach(Iterator.scala:941)
        at scala.collection.Iterator.foreach$(Iterator.scala:941)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
        at scala.collection.IterableLike.foreach(IterableLike.scala:74)
        at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
        at scala.collection.TraversableLike.map(TraversableLike.scala:238)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:231)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at com.wavesplatform.Application.run(Application.scala:244)
        at com.wavesplatform.Application$.$anonfun$startNode$4(Application.scala:495)
        at com.wavesplatform.Application$.$anonfun$startNode$4$adapted(Application.scala:475)
        at com.wavesplatform.actor.RootActorSystem$.start(RootActorSystem.scala:25)
        at com.wavesplatform.Application$.startNode(Application.scala:475)
        at com.wavesplatform.Application$.main(Application.scala:458)
        at com.wavesplatform.Application.main(Application.scala)
Caused by: java.lang.RuntimeException: InvalidAddress(Wrong addressBytes length: expected: 26, actual: 0)
        at com.wavesplatform.common.utils.package$EitherExt2.explicitGet(package.scala:20)
        at com.wavesplatform.dex.Matcher.<init>(Matcher.scala:48)
        ... 22 common frames omitted

F:\DMX\Compilados\waves>

谁能帮我解决这个问题?

2019-11-14 15:44:39,566 错误 [main] cwactor.RootActorSystem$ - 初始化演员系统 waveplatform java.lang.reflect.InvocationTargetException 时出错:null

4

1 回答 1

1

原因是:

InvalidAddress(Wrong addressBytes length: expected: 26, actual: 0)

因为在旧版本的 Matcher 中,您已经指定了将用于 Matcher 的节点地址:

dex {
  account = "" # must be specified!

但是现在 Matcher 配置被简化了:

waves.extensions += "com.wavesplatform.dex.grpc.integration.DEXExtension"
waves.dex {
  grpc.integration {
    host = "127.0.0.1"
    port = 6887
  }
}

详情请查看官方 GitHub 仓库: https ://github.com/wavesplatform/dex#-configration-of-dex-extension

于 2020-02-07T15:17:33.650 回答