You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用Hyperledger Sawtooth应用在网络中发布节点

Hey there! Since you're new to Hyperledger Sawtooth and working with the tuna supply chain repository, let's walk through how to publish nodes to your network using the resources you've already gathered as a starting point.

1. Prep Your Local Environment First
  • Make sure you've installed all required dependencies (like Docker, Docker Compose, and core Sawtooth components) as outlined in the Sawtooth course guide you mentioned.
  • Clone the tuna supply chain repo to your local machine and navigate into the project directory:
    git clone https://github.com/hyperledger/education/tree/master/LFS171x/sawtooth-material/sawtooth-tuna
    cd sawtooth-tuna
    
2. Configure Your Node Network Settings
  • This repo likely includes a docker-compose.yaml file with preconfigured services. You can use the node configuration details from the Hyperledger mailing list discussion you found to adjust key parameters:
    • Modify the VALIDATOR_OPTS in the compose file to set your node's unique identifier and peer node addresses.
    • If you're joining an existing network, ensure the --peering flag points to the reachable address of an existing validator node.
  • Don't forget: Each node in the network needs its own unique key pair. Generate one using Sawtooth's built-in tool:
    sawtooth keygen my-node-validator-key
    
3. Launch and Publish Your Node
  • Start the node services using Docker Compose (the -d flag runs them in the background):
    docker-compose up -d
    
    This will spin up the validator, settings transaction processor, and the tuna-specific transaction processor.
  • Verify your node has successfully joined the network by checking the peer list:
    docker exec -it sawtooth-validator-default sawtooth peer list
    
    If you see other peer nodes listed, your node is published and connected.
  • You can also confirm node status via the Sawtooth REST API:
    curl http://localhost:8008/peers
    
4. Leverage Your Existing Resources for Troubleshooting
  • The Sawtooth course guide should have a dedicated section on multi-node network setup—focus on that for step-by-step context tailored to beginners.
  • The mailing list discussion you referenced covers common peering issues (like connectivity or key mismatches). If your node isn't showing up in the network, check firewall settings, peer address reachability, and key configuration first.
  • The issue you submitted on GitHub is a great way to get targeted help from the Hyperledger community. If you hit specific errors (like failed peer connections or rejected transactions), add detailed logs to your issue to speed up troubleshooting.

内容的提问来源于stack exchange,提问作者Ahmed Anees

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:49:21