RPC Mining Impossible #8093

issue ghost opened this issue on May 24, 2016
  1. ghost commented at 5:53 AM on May 24, 2016: none

    I recently tried solo mining , with a dragon 1 TH miner, when that failed i tried a USB miner, cpuminer and an older cgminer.

    Also tried using latest minerd...

    ./minerd --algo=sha256d --url 127.0.0.1:8332 --user=blah --pass=blahblah

    following in bitcoin.conf: rpcuser=blah rpcpass=blahblah rpcallowip:127.0.0.1 server=1 rpcport=8332

    ...gives me 'connection refused'

    Does this have anything to do with the removal of Json in favour of Univalue?

  2. unknown renamed this:
    Solo mining impossible
    Solo Mining Impossible
    on May 24, 2016
  3. unknown renamed this:
    Solo Mining Impossible
    RPC Mining Impossible
    on May 24, 2016
  4. MarcoFalke commented at 2:16 PM on May 24, 2016: member

    I am not sure if anyone can help you here. We don't use the issue tracker to provide support for 3rd party software and/or hardware.

  5. jonasschnelli commented at 6:38 PM on May 24, 2016: contributor

    This seems to be unrelated to our codebase. Please open an issue at your miners software repository.

  6. jonasschnelli closed this on May 24, 2016

  7. luke-jr commented at 2:07 AM on May 25, 2016: member

    Those miners only support Stratum. Use BFGMiner to act as a proxy between bitcoind and stratum (see the --stratum-port option). Note that GBT is broken in 0.12.1, so you will need to downgrade to 0.12.0 temporarily for this to work.

  8. gmaxwell commented at 4:20 AM on May 25, 2016: contributor

    Note that GBT is broken in 0.12.1,

    WTF Luke, doesn't implement some corner case flags that are not required in any widely used situation does not mean "broken".

  9. luke-jr commented at 2:56 PM on May 25, 2016: member

    @gmaxwell Any GBT-compatible client will fail to work with 0.12.1 (the spec requires it), including the particular usage scenario that I was describing.

  10. sipa commented at 3:01 PM on May 25, 2016: member

    @luke-jr And in practice, hardly any mining follows that spec. The default behaviour may not be something we want for all future softforks (and I'm glad you're working on a fix for that), but it is exactly what we want here. Mining with 0.12.1 will work just fine, and downgrading because of it is inadvisable.

  11. ghost commented at 3:10 PM on May 25, 2016: none

    @MarcoFalke Well, seeing as someone had the bright idea to remove the internal miner.....

    Anyway i resolved the issue, thanks to all. On a side note, is Univalue, completely compatible with any app that used Json calls ?

  12. sipa commented at 3:17 PM on May 25, 2016: member

    @bitcreditscc UniValue should be completely compatible with the JSON-RPC spec. If it isn't, that would be a bug, but it wouldn't result in a "connection refused".

  13. luke-jr commented at 3:33 PM on May 25, 2016: member

    @sipa De facto, if he attempts to mine with 0.12.1 using BFGMiner, it will not work at all, as BFGMiner/libblkmaker correctly refuses to mine blocks with an unrecognised version. Downgrading is literally the only simple option people have right now (the alternatives being either: 1] they modify and recompile 0.12.1 by hand; or 2] setting up a full pool server that ignores the GBT spec, which is much more complicated than just running BFGMiner).

  14. sipa commented at 3:33 PM on May 25, 2016: member

    @luke-jr Not everyone uses BFGminer.

  15. luke-jr commented at 3:43 PM on May 25, 2016: member

    That is beside the point.

  16. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me