Closed sensecodevalue closed 1 year ago
This PR has 103
quantified lines of changes. In general, a change size of upto 200
lines is ideal for the best PR experience!
Was this comment helpful? :thumbsup: :ok_hand: :thumbsdown: (Email) Customize PullRequestQuantifier for this repository.
Good job!
communicate between multiple nodes
Check before you begin
Please check the store address of root and peer before starting. PN_StorePath is the address of the store.
1. Excute root peer node
2. Copy root chain for using same genesis block & Setting peer node chain
{
_ = swarm.WaitForRunningAsync().ContinueWith( =>
{
var peer = _swarm.AsPeer; var result = getPeerString(peer); Console.WriteLine("Genesis hash: {0}", _swarm.BlockChain.Genesis.Hash); // use Console.WriteLine });
await _swarm.AddPeersAsync(_peers, default, cancellationToken: stoppingToken).ConfigureAwait(false); await _swarm.PreloadAsync(cancellationToken: stoppingToken).ConfigureAwait(false); await _swarm.StartAsync(cancellationToken: stoppingToken).ConfigureAwait(false); }
When copying, exclude the last (
.
)X - 034f11693177d1a3d7a20c10cf064fd89f82592cd8fd2b25bc8af2855878e831b9,localhost,31234.
O - 034f11693177d1a3d7a20c10cf064fd89f82592cd8fd2b25bc8af2855878e831b9,localhost,31234
3. Excute peer node
4. Create transaction in peer node & Check at root node
closed #8