# \[ESPINS Fork\] I will share the multi-thread mining environment

**URL:** <https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375>\
**Category:** Mining\
**Created:** [August 10, 2021, 5:22am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375 "2021-08-10T05:22:18Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![dlwlalsggg](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dlwlalsggg](https://community.creditcoin.org/u/dlwlalsggg)\
**Post date:** [September 3, 2021, 5:54am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/21 "2021-09-03T05:54:30Z")

</div>

See this commit history.

> <https://github.com/ESPINS/CreditcoinDockerCompose-Mainnet/commit/aa05c960190a3449e76edab941b5387501cbb9f6#diff-40210598cd6deff19d71c3146889a0b58187ebbf72e97e6dfbe4b7d09ad7f9ab>

---

<div class="post-metadata">

**Author:** ![Doni](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Doni](https://community.creditcoin.org/u/Doni)\
**Post date:** [September 8, 2021, 1:52am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/22 "2021-09-08T01:52:50Z")

</div>

First of all, thank you for sharing.

i can’t use %Cpu( s )

1. build.sh
2. /script/configure\_creditcoin.sh
3. install\_apt\_packages.sh
4. Modify the contents of the file in Creditcoin/clientConfig.json to my mining key.
5. start\_creditcoin.sh
6. 

CREDITCOIN\_HOME is /root/Server  
Enter name of Docker compose file (docker-compose.yaml)  
just press ENTER  
7. done

And I succeeded in creating.  
Creating creditcoin-gateway … done  
Creating sawtooth-rest-api-default … done  
.  
.  
.

However, when I checked CPU occupancy through the “TOP” command, it was 4 to 8 us.

How can i try it?

---

<div class="post-metadata">

**Author:** ![dlwlalsggg](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dlwlalsggg](https://community.creditcoin.org/u/dlwlalsggg)\
**Post date:** [September 8, 2021, 8:37am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/23 "2021-09-08T08:37:03Z")

</div>

1. Is the hashServer process running?

2. Connect to hashServer with telnet and check the status.

```auto
1) Run the following command.
 telnet 172.17.0.1 10000

2) Type the letters below, then press Enter
 GET

3) Type the letters below, then press Enter
 CLOSE

```

1. Check the hashServer.log file.

---

<div class="post-metadata">

**Author:** ![Doni](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Doni](https://community.creditcoin.org/u/Doni)\
**Post date:** [September 8, 2021, 2:43pm UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/24 "2021-09-08T14:43:33Z")

</div>

Thank you for your answer.

What actions or instructions should be executed to drive the Hashserver?

in my hashServer.log

> /root/Server/hashServer: error while loading shared libraries: libboost\_systen.so.1.65.1: cannot open shared object file: No such file or directory

and

1. Run the following command.  
telnet 172.17.0.1 10000

> telnet: Unable to connect to remote host: Connection refused

😭

---

<div class="post-metadata">

**Author:** ![dlwlalsggg](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dlwlalsggg](https://community.creditcoin.org/u/dlwlalsggg)\
**Post date:** [September 8, 2021, 8:14pm UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/25 "2021-09-08T20:14:15Z")

</div>

I don’t think the “boost” library is installed.

1. Are you using Ubuntu OS?

2. Did you have any problems running the library installation command?

```auto
sudo apt-get update
sudo apt-get install build-essential libboost-all-dev libcrypto++-dev -y

```

1. Does the compile command work properly?  
(Running in a “Server” directory)

```auto
/usr/bin/g++-7 -O2 -Wall ./*.cpp -o ./hashServer -lboost_system -lpthread -lcryptopp

```

or

```auto
/usr/bin/g++-9 -O2 -Wall ./*.cpp -o ./hashServer -lboost_system -lpthread -lcryptopp

```

---

<div class="post-metadata">

**Author:** ![Doni](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Doni](https://community.creditcoin.org/u/Doni)\
**Post date:** [September 9, 2021, 4:42am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/26 "2021-09-09T04:42:32Z")

</div>

Thanks to you, I was able to solve the problem. Thank you for sharing your knowledge and effort. I hope you have a good day.

👍 👍 👍 👍 👍 👍 😀

---

<div class="post-metadata">

**Author:** ![dlwlalsggg](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dlwlalsggg](https://community.creditcoin.org/u/dlwlalsggg)\
**Post date:** [October 1, 2021, 7:44am UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/27 "2021-10-01T07:44:36Z")

</div>

Hardware acceleration is available. ([#support list](https://en.wikipedia.org/wiki/Intel_SHA_extensions))

[https://github.com/ESPINS/CreditcoinDockerCompose-Mainnet/tree/concurrent\_pow\_solvers\_host\_machine\_hw](https://github.com/ESPINS/CreditcoinDockerCompose-Mainnet/tree/concurrent_pow_solvers_host_machine_hw)

[https://github.com/ESPINS/CreditcoinDockerCompose-Mainnet/commit/65d02c77fb72b1768958fc777ac5ca697a22765f](https://github.com/ESPINS/CreditcoinDockerCompose-Mainnet/commit/65d02c77fb72b1768958fc777ac5ca697a22765f)

---

<div class="post-metadata">

**Author:** ![odeothx](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.creditcoin.org/odeothx/32/546_2.png) [@odeothx](https://community.creditcoin.org/u/odeothx)\
**Post date:** [October 1, 2021, 9:46pm UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/29 "2021-10-01T21:46:20Z")

</div>

I applied your patch and it’s working well.  
I haven’t checked how much the performance has improved, but I think it’s probably better than before.  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![jenn22](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jenn22](https://community.creditcoin.org/u/jenn22)\
**Post date:** [July 8, 2023, 2:30pm UTC](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375/30 "2023-07-08T14:30:10Z")

</div>

wow thank yo for the information we are waiting

[Previous page](https://community.creditcoin.org/t/espins-fork-i-will-share-the-multi-thread-mining-environment/375.md?page=1)
