Mining seems to have stopped

+1 vote
Hey folks, I've been running two nodes for about 4 months, I've checked again now and the mining seems to have stopped about 70 days ago - I just transferred some assets around and they aren't confirming - here is getinfo:

{
    "version" : "1.0 alpha 21",
    "protocolversion" : 10005,
    "chainname" : "chain1",
    "description" : "MultiChain chain1",
    "protocol" : "multichain",
    "port" : 8349,
    "setupblocks" : 60,
    "nodeaddress" : "chain1@khkjhkj",
    "burnaddress" : "1XXXXXXWRrXXXXXXDEXXXXXXN2XXXXXXViJphd",
    "incomingpaused" : false,
    "miningpaused" : false,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 225847,
    "timeoffset" : 0,
    "connections" : 0,
    "proxy" : "",
    "difficulty" : 0.00535456,
    "testnet" : false,
    "keypoololdest" : 1468239808,
    "keypoolsize" : 2,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00000000,
    "errors" : ""
}

any ideas? Asset Transfer just sitting in mempool
asked Sep 27, 2016 by bloqlink

1 Answer

+1 vote

First run listpermissions mine to see which addresses have mining permission.

Then use getaddresses on each node to see who has an address with mining permission.

Then check getpeerinfo to see if the nodes can see each other (since, depending on parameters, mining can stop if a node is not connected to another.)

answered Sep 27, 2016 by MultiChain
Hmmm - ok looks like my one miner died - multi@web2$ multichain-cli chain1

chain1: listpermissions mine
error: couldn't connect to server
chain1: getaddresses
error: couldn't connect to server
chain1:

Does the original miner stop mining as well? All seems fine there:
chain1: listpermissions mine
{"method":"listpermissions","params":["mine"],"id":1,"chain_name":"chain1"}

[
    {
        "address" : "1CBJSmVPsCEMdMUWCrExFTZH5zhCXAADSVfgRv",
        "type" : "mine",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1LyZEtqiqwaKwLJPDTv2EFoLSwR3ZXvXsARZnw",
        "type" : "mine",
        "startblock" : 0,
        "endblock" : 4294967295
    }
]
By default a node doesn't mine if it does not have another node connected. See the mining-requires-peers blockchain parameter and miningrequirespeers runtime parameter to control this on the chain or node level.
...