Author

Topic: cpuminer requires at least two bitcoin nodes to run (Read 150 times)

jr. member
Activity: 113
Merit: 5
thanks for pointing out getblocktemplate.

In src/rpc/mining.cpp , i comment out these two lines:

Code:
   //if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
    //    throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!");

and run one node only.

and getblocktemplate can work. and also cpuminer can work. So it is not necessary to have at least two nodes for mining.
staff
Activity: 3458
Merit: 6793
Just writing some code
No, that is unrelated to the consensus algorithm. It is simply part of how the getblocktemplate RPC command works. It must be connected to the network before you can use the RPC call (and thus mine). So you must have at least one connection to another node.
jr. member
Activity: 113
Merit: 5
i download this cpuminer on a cusmotmised blockchain that has different genesis block. i notice it requires at least two bitcoin nodes to run.

Is it due to the consensus algo ?

this is the cpuminer link  https://github.com/pooler/cpuminer
Jump to: