首页 > 解决方案 > Moonbeam(波卡平行链)交易错误

问题描述

我在设置本地节点时遇到问题。

有一个 docker-compose 启动 Kusama 网络,并进行了一些细微的更改(如纪元时间和提案投票/制定时间),并为 6 个验证者自定义了链规范,并且它与 moonbeam 的 2 个收集器节点一起运行(默认为 moonbeam-local chain-规范,其中 Alice 和 Bob 地址替换为自定义地址)。

我在中继链上成功启动了平行链,它产生了块(此外,它触发了“因为我们不符合条件而跳过”之类的东西,不确定是否可以,但仍然在产生块)。顺便说一句,我已经为验证器和收集器手动设置了所有会话密钥,发送了 RPC 调用(对于收集器来说,它只是 nmbs ???)。我可以连接到 metamask,

我可以通过 RPC 等查询一些信息。但问题是我无法发送任何交易,一切都失败并出现以下错误:

ValueError: {'code': -32603, 'message': 'submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Call))'}.

相同的转换适用于 moonbase 测试网,它也适用于 --dev collat​​or。可能是什么问题?先感谢您

这是我的码头工人撰写:

version: '3'
services:
  node_david:
    ports:
      - "30333:30333"
      - "9933:9933"
      - "9944:9944"
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_david --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeDavid --node-key 0000000000000000000000000000000000000000000000000000000000000001
    networks:
      testing_net:
        ipv4_address: 172.28.1.1

  node_daniel:
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_daniel --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeDaniel --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp'  -ldebug
    networks:
      testing_net:
        ipv4_address: 172.28.1.2

  node_jack:
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_jack --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeJack --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp'
    networks:
      testing_net:
        ipv4_address: 172.28.1.3

  node_john:
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_john --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeJohn --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp'
    networks:
      testing_net:
        ipv4_address: 172.28.1.4

  node_judy:
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_judy --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeJudy --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp'
    networks:
      testing_net:
        ipv4_address: 172.28.1.5

  node_max:
    image: kusama-custom:0.9.5
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
    command: polkadot --chain=/kusama-custom.json --base-path /tmp/node_max --validator --rpc-methods Unsafe --rpc-cors all --unsafe-ws-external --unsafe-rpc-external --name NodeMax --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp'
    networks:
      testing_net:
        ipv4_address: 172.28.1.6

  para_daniel:
    image: purestake/moonbeam:v0.11.2
    depends_on:
      - node_daniel
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
      - ../chain-specs/moonbeam.json:/moonbeam.json
    command: --collator --log debug --chain ./moonbeam.json --base-path /tmp/para_daniel --name "CollatorDaniel" --force-authoring --parachain-id 2000 --rpc-cors all --rpc-methods Unsafe --unsafe-ws-external --unsafe-rpc-external --node-key 0000000000000000000000000000000000000000000000000000000000000001 -- --execution wasm --chain /kusama-custom.json
    networks:
      testing_net:
        ipv4_address: 172.28.2.1

  para_david:
    image: purestake/moonbeam:v0.11.2
    depends_on:
      - node_david
    volumes:
      - ../chain-specs/kusama-custom.json:/kusama-custom.json
      - ../chain-specs/moonbeam.json:/moonbeam.json
    command: --collator --chain ./moonbeam.json --base-path /tmp/para_david --name "CollatorDavid" --force-authoring --parachain-id 2000 --rpc-cors all --rpc-methods Unsafe --unsafe-ws-external --unsafe-rpc-external --bootnodes /ip4/172.28.2.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp -- --execution wasm --chain /kusama-custom.json --bootnodes /ip4/172.28.1.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
    networks:
      testing_net:
        ipv4_address: 172.28.2.2

networks:
  testing_net:
    #    driver_opts:
    #      com.docker.network.bridge.host_binding_ipv4: 172.28.0.1
    ipam:
      driver: default
      config:
        - subnet: 172.28.0.0/16

标签: dockerdocker-composeblockchainpolkadot

解决方案


推荐阅读