Skip to content

Instantly share code, notes, and snippets.

@gak
Last active August 29, 2015 14:00
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 gak/11030541 to your computer and use it in GitHub Desktop.
Save gak/11030541 to your computer and use it in GitHub Desktop.
root@alice:/# setgenerate true 6
root@bob:/# rt addnode 172.17.0.2 onetry
root@bob:/# rt getnewaddress
keypool added key 104, size=101
keypool reserve 4
keypool keep 4
mm47sczsEDYAGF2fp7xHSRpWQzCvpE1eZt
root@alice:/# rt setgenerate true 101
...
root@alice:/# rt getbalance
50.00000000
root@alice:/# rt getpeerinfo
[
{
"addr" : "172.17.0.3:57631",
"services" : "00000001",
"lastsend" : 1397794619,
"lastrecv" : 1397794619,
"bytessent" : 297,
"bytesrecv" : 321,
"conntime" : 1397794619,
"pingtime" : 0.00000000,
"version" : 70002,
"subver" : "/Satoshi:0.9.0/",
"inbound" : true,
"startingheight" : 0,
"banscore" : 0,
"syncnode" : true
}
]
root@alice:/# rt getinfo
keypool reserve 2
keypool return 2
{
“version” : 90000,
“protocolversion” : 70002,
“walletversion” : 60000,
“balance” : 0.00000000,
“blocks” : 0,
“timeoffset” : 0,
“connections” : 0,
“proxy” : “”,
“difficulty” : 0.00000000,
“testnet” : false,
“keypoololdest” : 1397794246,
“keypoolsize” : 101,
“paytxfee” : 0.00000000,
“errors” : “”
}
root@alice:/# rt getpeerinfo
[
]
root@alice:/# rt getblockhash 0
0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
# make build
# make alice_shell
# make bob_shell
receive version message: /Satoshi:0.9.0/: version 70002, blocks=0, us=0.0.0.0:0, them=127.10.32.128:18444, peer=172.17.0.2:18444
root@alice:/# rt -daemon -printtoconsole
root@alice:/# bitcoind -regtest -daemon -printtoconsole
root@alice:/# rt sendtoaddress mm47sczsEDYAGF2fp7xHSRpWQzCvpE1eZt 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment