From 54dbda6bc2294d1b3e97bf59eac07a3d8bc790fa Mon Sep 17 00:00:00 2001 From: AntiochP <30642645+antiochp@users.noreply.github.com> Date: Sun, 12 Nov 2017 13:58:51 -0500 Subject: [PATCH] advanced example wallet needs to point to node api --- doc/build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build.md b/doc/build.md index f1e490a8d..b58af4968 100644 --- a/doc/build.md +++ b/doc/build.md @@ -128,7 +128,7 @@ As before, node 1 will create the blockchain and begin mining. As we'll be runni First, we run a wallet server to receive rewards on port 15000 (we'll log in debug mode for more information about what's happening) - node1$ grin wallet -p "password" -r 15000 receive + node1$ grin wallet -p "password" -a "http://127.0.0.1:10001" -r 15000 receive Then we start node 1 mining with its P2P server bound to port 10000 and its api server at 10001. We also provide our wallet address where we'll receive mining rewards. In another terminal: @@ -152,7 +152,7 @@ Similar to Node 2, we'll set up node 3 as a non-mining node seeded with node 2 ( Node 3 is now running it's P2P service on port 30000 and its API server on 30001. You should be able to see it syncing its blockchain and peer data with nodes 1 and 2. Now start up a wallet listener. - node3$ grin wallet -p "password" -a "http://127.0.0.1:10001" -r 35000 receive + node3$ grin wallet -p "password" -a "http://127.0.0.1:30001" -r 35000 receive In contrast to other blockchains, a feature of a MimbleWimble is that a transaction cannot just be directly posted to the blockchain. It first needs to be sent from the sender to the receiver, who will add a blinding factor before posting it to the blockchain. The above command tells the wallet server to listen for transactions on port 35000, and, after applying it's own blinding factor to the transaction, forward them on to the listening API server on node 1. (NB: we should theoretically be able to post transactions to node 3 or 2, but for some reason transactions posted to peers don't seem to propagate properly at present)