Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Created August 7, 2018 11:45
Show Gist options
  • Save imylomylo/e7c4395e328382ba3eccf8ab49191d32 to your computer and use it in GitHub Desktop.
Save imylomylo/e7c4395e328382ba3eccf8ab49191d32 to your computer and use it in GitHub Desktop.
Reason this doesn't work is txindex, addressindex and spentindex were not passed in at command line start or in the config file.
This was working yesterday, here: https://gist.github.com/imylomylo/00f0dc2234d1a65860e0e4ccdd0298e0
Today's komodo.conf is
########################
rpcuser=user
rpcpassword=pass
txindex=1
bind=0.0.0.0
rpcbind=127.0.0.1
rpcbind=172.17.0.2
rpcbind=172.17.0.1
rpcbind=XXX.XXX.XXX.XXX
rpcallowip=0.0.0.0/0
rpcport=7771
regtest=1
debug=rpc
pubkey=02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf
##########################
start komodod with pubkey (the privkey is UqMgxk7ySPNQ4r9nKAFPjkXy6r5t898yhuNCjSZJLg3RAM4WW1m9)
#########################
root@42c89ffb3431:~/.komodo# komodod -pubkey=02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf &
root@42c89ffb3431:~/.komodo# call komodo_args.(komodod) NOTARY_PUBKEY.(02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf)
initialized at 1533641920
finished loading blocks
OS_loadfile null size.(/root/.komodo/komodostate)
komodo_faststateinit retval.-1
READY for RPC calls at 1533641920! done PASSPORT refid.33
validateaddress in wallet
###########################
root@42c89ffb3431:~/.komodo# komodo-cli validateaddress RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D
{
"isvalid": true,
"address": "RWPg8B91kfK5UtUN7z6s6TeV9cHSGtVY8D",
"scriptPubKey": "76a914e7948c7995f4347f31eb55c8ea77e8f6e97b372c88ac",
"segid": 32,
"ismine": true,
"iswatchonly": false,
"isscript": false,
"pubkey": "02676d00110c2cd14ae24f95969e8598f7ccfaa675498b82654a5b5bd57fc1d8cf",
"iscompressed": true,
"account": ""
}
faucetinfo
###########################
root@42c89ffb3431:~/.komodo# komodo-cli faucetinfo
error code: -1
error message:
to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment