Last active
August 9, 2018 18:59
-
-
Save imylomylo/00f0dc2234d1a65860e0e4ccdd0298e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using docker-komodo-smartcontracts | |
git clone https://github.com/imylomylo/docker-komodo-smartcontracts | |
cd docker-komodo-smartcontracts | |
sudo docker build -t kmd-cc . | |
(wait a short while) | |
sudo docker run -it --mount src=/home/mylo/docker-komodod-smartcontracts/node,target=/root/.komodo,type=bind --mount src=/home/mylo/.zcash-params,target=/root/.zcash-params,type=bind kmd-cc | |
(get dropped into a shell) | |
############################################# | |
TEST KEY | |
privkey UqMgxk7ySPNQ4r9nKAFPjkXy6r5t898yhuNCjSZJLg3RAM4WW1m9 | |
pubkey 02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf | |
address RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D | |
################################################## | |
Start up | |
########## | |
/komodo/src/komodod -conf=/root/.komodo/komodo.conf -ac_cc=1 -ac_name=REGTEST -addressindex=1 -spentindex=1 -ac_supply=5555555 -ac_reward=10000000 -pubkey=02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf -regtest & | |
######################## | |
root@3b3f5bc8b655:/# /komodo/src/komodod -conf=/root/.komodo/komodo.conf -ac_cc=1 -ac_name=REGTEST -addressindex=1 -spentindex=1 -ac_supply=5555555 -ac_reward=10000000 -pubkey=02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf -regtest & | |
[1] 17 | |
root@3b3f5bc8b655:/# end.0 blocks, reward 0.10000000 halving.0 blocks, decay.0 perc 0.0000% ac_pub=[00...] | |
call komodo_args.(/komodo/src/komodod) NOTARY_PUBKEY.(02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf) | |
>>>>>>>>>> REGTEST: p2p.64367 rpc.64368 magic.340962df 873030367 5555555 coins | |
initialized REGTEST at 1533578350 | |
finished loading blocks REGTEST | |
################# | |
# IMPORT TEST KEY | |
################# | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest importprivkey UqMgxk7ySPNQ4r9nKAFPjkXy6r5t898yhuNCjSZJLg3RAM4WW1m9 | |
RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D | |
################ | |
# GENERATE 110 | |
################ | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest generate 110 | |
############# | |
# GETINFO | |
############# | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest getinfo | |
{ | |
"version": 1001550, | |
"protocolversion": 170003, | |
"KMDversion": "0.1.1", | |
"notarized": 0, | |
"prevMoMheight": 0, | |
"notarizedhash": "0000000000000000000000000000000000000000000000000000000000000000", | |
"notarizedtxid": "0000000000000000000000000000000000000000000000000000000000000000", | |
"notarizedtxid_height": "mempool", | |
"KMDnotarized_height": 0, | |
"notarized_confirms": 0, | |
"walletversion": 60000, | |
"balance": 5555564.80615135, | |
"blocks": 110, | |
"longestchain": 0, | |
"timeoffset": 0, | |
"tiptime": 1533578561, | |
"connections": 0, | |
"proxy": "", | |
"difficulty": 1.000006079711092, | |
"testnet": false, | |
"keypoololdest": 1533577632, | |
"keypoolsize": 101, | |
"paytxfee": 0.00000000, | |
"relayfee": 0.00000100, | |
"errors": "", | |
"CCid": 1, | |
"name": "REGTEST", | |
"p2pport": 64367, | |
"rpcport": 64368, | |
"magic": 873030367, | |
"premine": 5555555, | |
"reward": 10000000 | |
} | |
############## | |
# GETWALLETINFO | |
############### | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest getwalletinfo | |
{ | |
"walletversion": 60000, | |
"balance": 5555565.80615135, | |
"unconfirmed_balance": 0.00000000, | |
"immature_balance": 0.10000000, | |
"txcount": 115, | |
"keypoololdest": 1533577632, | |
"keypoolsize": 101, | |
"paytxfee": 0.00000000 | |
} | |
################# | |
# FAUCETINFO | |
################ | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest faucetinfo | |
{ | |
"result": "success", | |
"name": "Faucet", | |
"funding": "0.00000000" | |
} | |
############# | |
# VALIDATEADDRESS | |
################# | |
root@3b3f5bc8b655:/# /komodo/src/komodo-cli -regtest validateaddress RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D | |
{ | |
"isvalid": true, | |
"address": "RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D", | |
"scriptPubKey": "76a914e7948c7995f4347f31eb55c8ea77e8f6e97b372c88ac", | |
"segid": 32, | |
"ismine": true, | |
"iswatchonly": false, | |
"isscript": false, | |
"pubkey": "02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf", | |
"iscompressed": true, | |
"account": "" | |
} | |
################ | |
# CONF FILE | |
################ | |
root@3b3f5bc8b655:/# cat /root/.komodo/komodo.conf | |
rpcuser=rpcuser | |
rpcpassword=passworddrowssap | |
txindex=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this was helpful, thanks!!!