Skip to content

Instantly share code, notes, and snippets.

@wshino
Created November 22, 2017 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wshino/13eb3701bd56b3052cafc2bca64ce468 to your computer and use it in GitHub Desktop.
Save wshino/13eb3701bd56b3052cafc2bca64ce468 to your computer and use it in GitHub Desktop.
btcd を動かす
https://github.com/btcsuite/btcd
一回動かしたらディレクトリはできるから一度動かす
止める
sampleを拾ってきて所定の場所に置く
https://github.com/btcsuite/btcd/blob/master/sample-btcd.conf
/Users/shinohara-wataru/Library/Application Support/Btcd/btcd.conf
testnetを有効にする
; testnet=1
testnet=1
rpcuserを有効にする
; rpcuser=whatever_admin_username_you_want
; rpcpass=
rpcuser=myuser
rpcpass=SomeDecentp4ssw0rd
動かす。testnetの同期を待つ
btcctlコマンドを使う
btcctl -u myuser -P SomeDecentp4ssw0rd --testnet getbestblock
btcctl -u myuser -P SomeDecentp4ssw0rd --testnet getdifficulty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment