'모네로'에 해당되는 글 3건

노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

모네로(XMR, monero) 채굴용 Pool 구축하기



- 모네로 채굴, 저렴한 수수료, 자체 구축


- 1 CPU로 시작해서, 4 CPU로 확장을 고려(방문자가 많아지면,)


- 채굴장에서 전용풀도 필요하다면, 원격 구축 대행 가능(?)




채굴 실행 / 채굴 접속 


- 이미지 : 채굴중 진행 표시

- Mining Program 마이닝 프로그램 : xmr-stak-cpu.exe


- 설정 : config.txt

-- "cpu_threads_conf":

-- "pool_address" : 

-- "wallet_address" :

-- "pool_password" :



사전 준비


1. VPS (가상 사설 서버, 최소 1CPU/1GB/20GB HDD, 권장 4 CPU/8GB/80GB HDD )


2. Ubuntu 14.04 x64 (최소)


3. Putty / Winscp등의 ssh /sftp 지원툴




Ubuntu 설정


1. Update Ubuntu


2. Setup SWAP


3. 필요한 패키지 설치




Monero 데몬 설정(Wallet)



1. 폴더 생성 : mkdir monero

2. 다운로드 & unzip : https://downloads.getmonero.org/monero.linux.x64.v0-10-1-0.tar.bz2

3. monerd실행 (동기화)




채굴풀 설정(Mining Pool )


1.git clone : git clone https://github.com/zone117x/node-cryptonote-pool.git pool

2. cd pool

3. npm update

4. cp config_example.json config.json

5. 수수료를 저렴하게 수정, 출금 금액도 낮게 설정





결과물 : 웹 메인 화면





원문 : 

http://betbybitcoin.com/setup-monero-mining-pool-using-node-cryptonote-pool/


참조 : https://github.com/teracycle/teracycle-pool

참조 : https://moneroeric.com/install-monero-wallet-address/

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

xmr-stak-cpu 빌드(컴파일) 하기



XMR(모네로, monero)를 위한 CPU채굴 프로그램




1. 폴더 생성


mkdir c:\xmr-stak-dep


2. Visual Studion 2017 Commnunity 다운로드 및 설치, 실행후에


1) Desktop development with C++(왼쪽에서 선택)

2) Toolset for Visual Studio C++ 2015... (오른쪽에서 선택)


3. Cmake for Win64 다운로드 ( 3.9 )


4. Dependencies ( OpenSSL/Hwloc and Microhttpd ) 다운로드


unzip c:\xmr-stap-dep

 


개발자 기부/수수료

4.1 on_switch_pool(size_t pool_id) : 

    if ( pool_id = dev_pool_id )

     donate.xmr-stak.net:6666 또는 donate.xmr-stak.net:3333

4.2 case EV_SWITCH_POOL:

    on_switch_pool(ev.iPoolId)


5. 컴파일


xmr-stak-cpu를 github에서 다운로드후 unzip c:\xmr-stak-cpu


아래 명령어를 실행




 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
msbuild xmr-stak-cpu.sln /p:Configuration=Release
cd bin\Release
copy ..\..\..\config.txt .


또는 c:\xmr-stak-cpu 아래에

_vs1SetEnv.bat


"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"

pause

_vs2Build.bat

:: should run after : setVs.bat

set CMAKE_PREFIX_PATH=d:\xmr-stak-dep\hwloc;d:\xmr-stak-dep\libmicrohttpd;d:\xmr-stak-dep\openssl
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
msbuild xmr-stak-cpu.sln /p:Configuration=Release
cd bin\Release
copy ..\..\..\config.txt .

pause



5.1 실행시 Error1 : msvcp140.dll, vcruntime140.dll not available erros 

--> 다운로드 from Microsoft



5.2 원본 : https://github.com/fireice-uk/xmr-stak-cpu


5.3 첨부 : 컴파일 버젼





* 개발자 기부 수수료 부분 (자세히)


https://github.com/fireice-uk/xmr-stak-cpu/blob/master/executor.cpp
// executor.cpp
void executor::ex_clock_thd()
{
	size_t iSwitchPeriod = sec_to_ticks(iDevDonatePeriod);	// 6000 -> 12000
	size_t iDevPortion = (size_t)floor(((double)iSwitchPeriod) * fDevDonationLevel); // 240

	//No point in bothering with less than 10 sec
	if(iDevPortion < sec_to_ticks(10))
		iDevPortion = 0;

	//Add 2 seconds to compensate for connect
	if(iDevPortion != 0)
		iDevPortion += sec_to_ticks(2);		// 244
	while (true)
	{
		std::this_thread::sleep_for(std::chrono::milliseconds(size_t(iTickTime)));

		push_event(ex_event(EV_PERF_TICK));

		// Service timed events
		std::unique_lock lck(timed_event_mutex);
		std::list::iterator ev = lTimedEvents.begin();
		while (ev != lTimedEvents.end())
		{
			ev->ticks_left--;
			if(ev->ticks_left == 0)
			{
				push_event(std::move(ev->event));
				ev = lTimedEvents.erase(ev);
			}
			else
				ev++;
		}
		lck.unlock();

		if(iDevPortion == 0)
			continue;

		iSwitchPeriod--;
		if(iSwitchPeriod == 0)
		{
			push_event(ex_event(EV_SWITCH_POOL, usr_pool_id));
			iSwitchPeriod = sec_to_ticks(iDevDonatePeriod);
		}
		else if(iSwitchPeriod == iDevPortion)	// 244
		{
			push_event(ex_event(EV_SWITCH_POOL, dev_pool_id));
		}
	}
}

// donate-level.h
// constexpr double fDevDonationLevel = 2.0 / 100.0;

// executor.h
constexpr static size_t iDevDonatePeriod = 100 * 60;



[실행]

[2017-11-14 11:53:29] : Starting single thread, affinity: 0.
[2017-11-14 11:53:29] : Starting single thread, affinity: 1.
[2017-11-14 11:53:29] : Starting single thread, affinity: 2.
[2017-11-14 11:53:29] : iDevDonatePeriod: 6000
[2017-11-14 11:53:29] : Connecting to pool xmr-eu.dwarfpool.com:8005 ...
[2017-11-14 11:53:29] : iSwitchPeriod: 12000
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : fDevDonationLevel: 1202590843
[2017-11-14 11:53:29] : iDevPortion: 240
[2017-11-14 11:53:29] : iDevPortion: 244
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : hwloc: memory pinned
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : MEMORY ALLOC FAILED: VirtualAlloc failed.
[2017-11-14 11:53:29] : Connected. Logging in...
[2017-11-14 11:53:30] : Difficulty changed. Now: 20000.
[2017-11-14 11:53:30] : New block detected.


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

CudaMiner 윈도우용 컴파일 하기



-- 비트코인/알트코인 마이닝 마이너 만들기



1. 사전 준비


1) Visual Studio 201x (c++설치)


2) Nvidia CUDA Toolkit 5.5 , https://developer.nvidia.com/cuda-downloads


3) OpenSource Package ( phthreads, OpenSSL, curl )


4) Download CudaMiner Source , https://github.com/cbuchner1/CudaMiner




원문 : http://cryptomining-blog.com/tag/compile-cudaminer-for-windows/

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,