# Can someone update the mining tutorial please!

**URL:** <https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459>\
**Category:** Mining\
**Created:** [January 17, 2019, 5:13am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459 "2019-01-17T05:13:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonevays](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bonevays](https://forum.grin.mw/u/bonevays)\
**Post date:** [January 17, 2019, 5:13am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459/1 "2019-01-17T05:13:49Z")

</div>

Hi,

I came late to the party and just don’t seem to find the definitive info for the miner+wallet+server configuration. I saw a couple of people, like Vosk, posted tutorials that depend on third parties.

So far I figured oout I may have to create `grin-server.toml` instead of grin.toml, but somehow have not come across the correct wallet command, even though I saw it somewhere yesterday. I looked at the pinned FAQ, but the FAQ should start with the definitive URL of the current mining info.

Thanks!

Edit": I pasted a server.toml from github in the .grin directory, which however does not show Mining Enabled in the TUI, despite me enabling it in the .toml. Is it a case of missing sections for CPU and CUDA?

Also looks like “grin wallet listen” was the command I needed, after the init, but see next message.

---

<div class="post-metadata">

**Author:** ![bonevays](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bonevays](https://forum.grin.mw/u/bonevays)\
**Post date:** [January 17, 2019, 5:33am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459/2 "2019-01-17T05:33:53Z")

</div>

My current (first) problem seems to be as follows. I have the executables in a grin directory, as suggested in some tutorial, and I have identical grin-wallet.toml files in grin and .grin, just in case.

The wallet reports

grin wallet listen  
Password:  
20190117 06:30:27.055 WARN grin\_wallet::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.  
20190117 06:30:27.055 WARN grin\_wallet::controller - HTTP Foreign listener started.

I have no idea where that port 3415 comes from, my grin-wallet.toml is

cat .grin/grin-wallet.toml  
check\_node\_api\_http\_addr = “[http://127.0.0.1:13413](http://127.0.0.1:13413)  
api\_listen\_interface = “0.0.0.0”  
api\_listen\_port = 13415

Needless to say, [http://127.0.0.1:13413/](http://127.0.0.1:13413/) refuses to connect. Aha, port 3413 connected to something that needs username and password, looks like it is my plain “grin”. Again, I have no idea why that port 3413 comes up, or what the username and password should be. High time for a current tutorial!

---

<div class="post-metadata">

**Author:** ![bonevays](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bonevays](https://forum.grin.mw/u/bonevays)\
**Post date:** [January 17, 2019, 5:54am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459/3 "2019-01-17T05:54:53Z")

</div>

More aha moments, apparently the .toml I found in github is not entirely adequate

grin-server.toml - missing field `max_stempool_size` for key `server.pool_config`', src/bin/grin.rs:152:6

Basically, I still have not run the wallet properly, which means I could perhaps go back to the forum and solve wallet problems, but the complete mining tutorial is most welcome!

---

<div class="post-metadata">

**Author:** ![bonevays](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bonevays](https://forum.grin.mw/u/bonevays)\
**Post date:** [January 17, 2019, 6:24am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459/4 "2019-01-17T06:24:20Z")

</div>

Got everything working, using the snippets from previous tutorials was misleading and just plain wrong, here is the whole process from scratch;

1. download grin and grin-miner latest release and unpack in .grin, all future commands I ran from .grin

2. ./grin server config to get the grin-server.toml file with working parameters except one, you have to edit it to set mining to true.

3. start ./grin

4. in new window, create a wallet with ./grin wallet init, and run it with ./grin wallet listen . I did not need to do anything with grin-wallet.toml

5. in new window, edit grin-miner.toml and uncomment the Cuda or the OpenCL miner sections (I uncommented all lines in the Cuda block, but just uncommenting one or two would be enough I guess)

6. ./grin-miner and voila, the miner will show it is connected and start mining on both CPU and GPU. Of course CPU could have been commented out or deleted from grin-miner.toml

---

<div class="post-metadata">

**Author:** ![nordmann666](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nordmann666](https://forum.grin.mw/u/nordmann666)\
**Post date:** [January 18, 2019, 11:16am UTC](https://forum.grin.mw/t/can-someone-update-the-mining-tutorial-please/2459/5 "2019-01-18T11:16:12Z")

</div>

but did your wallet listen correctly?

i also got:  
WARN grin\_wallet::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.  
WARN grin\_wallet::controller - HTTP Foreign listener started.

in some tutorials there stand, that you should HTTP Foreign listener API Server at port 13415. but change that and forward all ports to this address - getting WARN message

here no body can say how to check if wallet can get transactions or cant
