WorldLand Docs
WorldlandGithub
한국어
한국어
  • WorldLand
    • WorldLand 문서
    • Learn
      • What is WorldLand?
      • WorldLand Technology
      • Design Principles
      • How WorldLand Works
      • WorldLand Tokenomics
      • WorldLand Governance
      • Charter of WorldLand
      • Introduction
  • 🧑‍💻사용자
    • 지갑
    • 네트워크
    • 테스트용 WLC
    • 토큰 전송
    • 블록 탐색기
  • ⛏️채굴자
    • 노드 설치
    • 노드 실행
    • 채굴 시작
    • 지갑 확인
  • 💻노드 개발자
    • WorldLand
    • Command-line options
      • Node
      • Peer
      • Mining
    • Security
    • Account Mangement
    • JSON-RPC APIs
  • 📱dApp 개발자
    • Development Environment
      • Remix
      • Truffle
    • Web3 Libraries
    • Web3 API
  • ❓Q&A
    • Discord
  • ↗️Links
    • WorldLand
    • Seoul Block Explorer
    • Gwangju Block Explorer
Powered by GitBook
On this page
  • 계정 생성
  • 채굴
  1. 채굴자

채굴 시작

This document describes a quick running guide for Miner

Previous노드 실행Next지갑 확인

Last updated 1 year ago

계정 생성

외부 지갑에 사전 생성된 계정이 있는 경우 이 섹션을 건너뛰세요.

Metamask에서 계정을 만드는 방법은 를 참조하세요.

외부 계정 관리 도구인 Clef를 활용하여 계정 보안을 강화할 수 있습니다.

자세한 내용은 항목을 참조하세요.

새 계정 생성:

> personal.newAccount(YOUR_PASSWORD)

다음과 같은 데이터를 반환합니다.

INFO [08-06|21:33:36.241] Your new key was generated               address=0xb8C941069cC2B71B1a00dB15E6E00A200d387039
WARN [08-06|21:33:36.241] Please backup your key file!             path=/home/hskim/Documents/geth-test/keystore/UTC--2019-08-06T12-33-34.442823142Z--b8c941069cc2b71b1a00db15e6e00a200d387039
WARN [08-06|21:33:36.241] Please remember your password! 
"0xb8c941069cc2b71b1a00db15e6e00a200d387039"

비밀번호를 잊어버리지 않도록 주의하세요!

personal.newAccount("YOUR_PASSWORD") 는 지갑 주소를 반환합니다.

위의 예시는 지갑 주소"0xb8c941069cc2b71b1a00db15e6e00a200d387039"를 반환했습니다.

eth.accounts 명령을 통해 현재 추가된 지갑 주소 목록을 확인할 수 있습니다.

> eth.accounts
["0xb8c941069cc2b71b1a00db15e6e00a200d387039"]

채굴

지갑 계정 잔액 확인

채굴하기 전에 WLCs 채굴량을 계산하기 위해서는 채굴자 계정의 현재 잔액을 확인해야 합니다. eth.getBalance("YOUR_ADDRESS") 명령으로 잔액을 확인할 수 있습니다.

> eth.getBalance("0xb8c941069cc2b71b1a00db15e6e00a200d387039")
0

또는

> eth.getBalance(eth.accounts[0])
0

먼저 채굴자의 주소를 설정해야 합니다. 이를 위해 3가지 명령을 사용합니다.

  • miner.setEtherbase(주소)

    • 채굴자의 주소를 설정합니다. 채굴 보상이 이 계정으로 전송됩니다.

  • miner.start(스레드 수)

    • 채굴 시작. 사용할 스레드 수를 설정할 수 있습니다. 1스레드를 사용하겠습니다.

    • CPU에 충분한 코어가 있는 경우 더 높은 수를 사용할 수 있습니다. 더 빨리 작동합니다.

  • miner.stop()

    • 채굴 중지

GPU 마이닝은 아직 지원되지 않습니다.

채굴자 주소 설정:

> miner.setEtherbase("0xb8c941069cc2b71b1a00db15e6e00a200d387039")
true

채굴 시작:

> miner.start()
null
INFO [08-06|21:42:38.198] Updated mining threads                   threads=1
INFO [08-06|21:42:38.198] Transaction pool price threshold updated price=1000000000
null
> INFO [08-06|21:42:38.198] Commit new mining work                   number=1 sealhash=4bb421…3f463a uncles=0 txs=0 gas=0 fees=0 elapsed=325.066µs
INFO [08-06|21:42:40.752] Successfully sealed new block            number=1 sealhash=4bb421…3f463a hash=4b2b78…4808f6 elapsed=2.554s
INFO [08-06|21:42:40.752] 🔨 mined potential block                  number=1 hash=4b2b78…4808f6

.
.
.

INFO [08-06|21:42:56.174] 🔨 mined potential block                  number=9 hash=2faebb…8be693
INFO [08-06|21:42:56.174] Commit new mining work                   number=10 sealhash=384aa6…cb0596 uncles=0 txs=0 gas=0 fees=0 elapsed=179.463µs

채굴 중지:

> miner.stop()
null

채굴 후 채굴된 WLC 양을 확인하세요.

> eth.getBalance("0xb8c941069cc2b71b1a00db15e6e00a200d387039")
45000000000000000000

'10^18 wei'가 '1 WLC'와 같은 단위입니다. wei는 비트코인의 satoshi와 같은 WLC의 작은 단위입니다. 지갑의 잔액을 WLC 단위로 표시하려면 아래 명령을 사용하십시오.

> web3.fromWei(eth.getBalance("0xb8c941069cc2b71b1a00db15e6e00a200d387039"), "wlc")
45

⛏️
link
Security