Ravencoin icon indicating copy to clipboard operation
Ravencoin copied to clipboard

Will it be fixed anytime soon so Mac can mine?

Open Patooshy opened this issue 8 years ago • 20 comments

Patooshy avatar Jan 04 '18 20:01 Patooshy

Macs can mine, just follow the instructions in the readme file :) Been mining for a day on a Macbook Pro 2017 with High Sierra.

hellobardgames avatar Jan 05 '18 11:01 hellobardgames

Followed the directions and it just doesn't want to open for me. No error, no message. Just bounces for a quick second and closes. 2015 MBP 2.8 i7, High Sierra 10.13.2

tap72 avatar Jan 05 '18 16:01 tap72

I have been able to mine, but a friend on a Mac cannot. it opens but never mines.

hallbeck avatar Jan 05 '18 16:01 hallbeck

@tap72 Can you post up the contents of ~/Library/Application Support/Raven/debug.log?

RavenCoinDev avatar Jan 06 '18 04:01 RavenCoinDev

@hallbeck We've noticed that the miniupnpc library doesn't play nice with all routers. Check your friend's Mac to see if he's connecting to any peers. If he isn't try running the addnode option using the debug menu. You can get a list of peers from your peers.dat file or use seed-raven.ravencoin.org. If that doesn't work he can open port 8767 to his IP address on his router and it should fix it.

RavenCoinDev avatar Jan 06 '18 04:01 RavenCoinDev

I'm pretty sure @hallbeck is talking about me :) Here's my port forwards image

The logs keep showing failed connections to peers as seen below: 2018-01-06 04:52:28 connect() to 66.244.245.67:8767 failed after select(): Connection refused (61) 2018-01-06 04:52:40 connect() to 207.246.112.37:8767 failed after select(): Connection refused (61) 2018-01-06 04:52:40 connect() to [2001::9d38:6ab8:30d8:21e:3f57:fd5a]:8767 failed: No route to host (65) 2018-01-06 04:52:41 connect() to [2600:1700:2c90:5f40:85af:b463:49e5:dd3c]:8767 failed: No route to host (65) 2018-01-06 04:52:47 connect() to [2601:196:201:6bc:854d:c248:9730:1d70]:8767 failed: No route to host (65) 2018-01-06 04:53:26 connect() to [2001::4137:9e76:1070:ce55:be8b:8bf9]:8767 failed: No route to host (65) 2018-01-06 04:53:36 connect() to [2001::4137:9e76:3c6e:1179:be8b:8bf9]:8767 failed: No route to host (65) 2018-01-06 04:53:47 connect() to [2002:4753:c58e::6844:7413:bd06:80a9]:8767 failed: No route to host (65) 2018-01-06 04:53:52 connect() to [2001::4137:9e76:2817:1095:83dc:4d5c]:8767 failed: No route to host (65) 2018-01-06 04:54:49 connect() to [2601:c2:c100:a372:c29:9f0a:ccdd:1cee]:8767 failed: No route to host (65) 2018-01-06 04:55:35 connect() to 66.31.226.92:8767 failed after select(): Connection refused (61) 2018-01-06 04:55:35 connect() to [2001::4137:9e76:2415:27db:b61b:9d98]:8767 failed: No route to host (65) 2018-01-06 04:55:41 connect() to [2601:194:4100:645a:f1e1:4349:615d:d2ed]:8767 failed: No route to host (65) 2018-01-06 04:55:47 connect() to [2601:281:201:1475::3833]:8767 failed: No route to host (65) 2018-01-06 04:55:48 connect() to [2601:681:8001:d161:2d8e:aef3:fb49:82c4]:8767 failed: No route to host (65)

Tried https://seed-raven.ravencoin.org but doesn't appear to exist. Not sure how to open the contents of peers.dat.

FWIW, when I go to the Peers tab of the Debug window I have typically anywhere from 3-8ish at any given time.

I'm on a 2016 Macbook Pro 2.6 GHz Intel Core i7

Besides creating the missing dylib file I manually installed the following: brew install boost qt openssl berkeley-db@4 protobuf libevent miniupnpc

itzjonas avatar Jan 06 '18 04:01 itzjonas

@lordvard I followed it but idk how to copy libboost_system.dylib to libboost_system-mt.dylib in the /Applications/Raven-Qt.app/Contents/Frameworks folder. I see libboost_system.dylib in the Frameworks folder, but idk what it means by copy it to libboost_system-mt.dylib... Help would be very appreciated.

Patooshy avatar Jan 06 '18 06:01 Patooshy

@Patooshy just duplicate and rename.

itzjonas avatar Jan 06 '18 06:01 itzjonas

@Patooshy just copy the file outside of the package, rename it and then add it back into the package.

hellobardgames avatar Jan 06 '18 09:01 hellobardgames

Got it running. Does this look right?

2018-01-06 15:46:14 CreateNewBlock(): block weight: 944 txs: 0 fees: 0 sigops 400 2018-01-06 15:46:14 RavenMiner -- Running miner with 1 transactions in block (264 bytes) 2018-01-06 15:46:51 UpdateTip: new best=0000000183203a109286f1cb785366b84847ce61b722a9d6e15d84c8e44e25e1 height=10687 version=0x20000000 log2_work=42.810237 tx=11034 date='2018-01-06 15:46:50' progress=0.999719 cache=2.0MiB(11080txo) 2018-01-06 15:46:51 CreateNewBlock(): block weight: 944 txs: 0 fees: 0 sigops 400 2018-01-06 15:46:51 RavenMiner -- Running miner with 1 transactions in block (264 bytes) 2018-01-06 15:47:01 UpdateTip: new best=00000000c71f8240b882c6105dad6d288748bb7417a234fd92cdf8c3ae9a8e4a height=10688 version=0x20000000 log2_work=42.810703 tx=11035 date='2018-01-06 15:46:57' progress=0.998878 cache=2.0MiB(11081txo) 2018-01-06 15:47:01 CreateNewBlock(): block weight: 944 txs: 0 fees: 0 sigops 400 2018-01-06 15:47:01 RavenMiner -- Running miner with 1 transactions in block (264 bytes) 2018-01-06 15:47:03 UpdateTip: new best=000000012a7b4be1d57945a31a9772583314940db7b08de5391af8efe5460ccc height=10689 version=0x20000000 log2_work=42.811169 tx=11036 date='2018-01-06 15:43:06' progress=0.937582 cache=2.0MiB(11082txo) 2018-01-06 15:47:03 CreateNewBlock(): block weight: 944 txs: 0 fees: 0 sigops 400 2018-01-06 15:47:03 RavenMiner -- Running miner with 1 transactions in block (264 bytes) 2018-01-06 15:47:04 receive version message: /Satoshi:0.15.99/: version 70015, blocks=10689, us=75.67.159.204:50764, peer=15 2018-01-06 15:47:50 connect() to 66.31.226.92:8767 failed after select(): Connection refused (61) 2018-01-06 15:48:49 receive version message: /Satoshi:0.15.99/: version 70015, blocks=10689, us=75.67.159.204:50777, peer=16 2018-01-06 15:49:01 UpdateTip: new best=000000000cf8021330acafbfcd052eaa78d27d70b17c2343f2e33f5260054fe9 height=10690 version=0x20000000 log2_work=42.811635 tx=11037 date='2018-01-06 15:48:58' progress=0.999158 cache=2.0MiB(11083txo) 2018-01-06 15:49:01 CreateNewBlock(): block weight: 944 txs: 0 fees: 0 sigops 400 2018-01-06 15:49:01 RavenMiner -- Running miner with 1 transactions in block (264 bytes) 2018-01-06 15:49:24 UpdateTip: new best=000000014a8461cfdad8447fd84fd18052ae545cb2b0dc450d72d30ce4883e87 height=10691 version=0x20000000 log2_work=42.8121 tx=11038 date='2018-01-06 15:49:22' progress=0.999439 cache=2.0MiB(11084txo)

tap72 avatar Jan 06 '18 15:01 tap72

@itzjonas Your ports look fine, although you should only need 8767 and not the others open to the world. If you run getmininginfo from the debug console are you seeing any hashespersec?

You can also try running the ravend binary and see if you get the same results. Package wise you should only need to run

brew install boost berkeley-db4 libevent miniupnpc libzmq5

RavenCoinDev avatar Jan 06 '18 19:01 RavenCoinDev

@tap72 That does look right. Way to go!

RavenCoinDev avatar Jan 06 '18 19:01 RavenCoinDev

Thank you @RavenCoinDev got it running as well!

Patooshy avatar Jan 06 '18 19:01 Patooshy

Thanks for the help @RavenCoinDev Now just have to get it on a more powerful box and not just messing around on my MBP! Looking forward to the future of Raven!!!

tap72 avatar Jan 06 '18 20:01 tap72

@RavenCoinDev With getmininginfo I see "hashespersec": 28169. I initially ran ravend all night a couple nights ago and killed the process in the morning. And then tried viewing things with raven-qt. I've also had raven-qt running all night too on a separate night. No transactions every show up.

So I had someone send me 1 RVN to test that I'm getting proper communication with the network and it did show up. So for whatever reason the mining part just never seems to result in anything.

Just tried to install libzmq5 but brew can't find it. EDIT: looks like I can get with brew install zeromq.

getmininginfo:

{
  "blocks": 11192,
  "currentblockweight": 4000,
  "currentblocktx": 0,
  "difficulty": 0.5801405757586487,
  "networkhashps": 52429727.93266702,
  "hashespersec": 28955,
  "pooledtx": 0,
  "chain": "main",
  "warnings": ""
}

itzjonas avatar Jan 06 '18 22:01 itzjonas

with only ~29k hashes per second, you aren't likely to mine any blocks (except perhaps once per couple days maybe?). You need a much higher hash rate at this point.

karloskalcium avatar Jan 07 '18 04:01 karloskalcium

Thanks @karlwbrown. Do you know what factors might be limiting it? And what kind of number it should be ?

itzjonas avatar Jan 07 '18 04:01 itzjonas

You can try to increase # of cpus used, by typing setgenerate true -1 I think. Otherwise, stop everything else running on the system. Only other way to increase mining power is maybe GPU mining but I don't know if anyone has figured out how to do that yet.

karloskalcium avatar Jan 07 '18 04:01 karloskalcium

@itzjonas The number of hashes per second are limited by the age and speed of the cpu core, you can increase it as @karlwbrown said by utilizing more cores. In our testing a 2017 15" macbook pro will average about 75,000 hps when all 4 cores are being used. We have had quite a few guys, myself included that have been successful in getting blocks on older slower processors. I've mined 2-3 blocks per night on a 3 year old Intel NUC with a core i3 running at ~44k hps. It can be done but just like the lottery the more tickets (hashes per second) you have the higher the chances are that you'll get a block.

RavenCoinDev avatar Jan 07 '18 04:01 RavenCoinDev

@RavenCoinDev @karlwbrown thanks for all the support. Going to try out all cores for the night and see if anything comes to fruition. Looks like I'm around 108k now.

EDIT: finally got a block! Thanks

itzjonas avatar Jan 07 '18 04:01 itzjonas