Equim-chan / vanity-monero

:credit_card: Generate vanity address for CryptoNote currency (Monero etc.).
MIT License
67 stars 21 forks source link

Program Closes Unexpectedly #1

Closed MakisChristou closed 6 years ago

MakisChristou commented 6 years ago

My problem is when I use this combination of options: Standard mode, Monero main network, English, Match mode = 1. Even when I enter a valid prefix that is 1 character long, the program closes. If I put a prefix that needs more time to compute, the program tries for some amount of time and then closes instantly. Tried this on all the core options.

Equim-chan commented 6 years ago

Which OS are you using?

If a prefix has a lower difficulty, it will take shorter time to compute. When the computation is over, the result will be printed on the console. I think the problem here is that Windows (assuming you are using it) shutdown the console immediately after the result is printed.

However, this shouldn't happen since I already added a blocker for Windows at https://github.com/Equim-chan/vanity-monero/blob/b8e2c294e5c644689a91406de11f3eb5c87606c5/cmd/vanity-monero/main.go#L619-L622, which halt the program and waits until an Enter key input is triggered to exit. So I think it may be some other kind of problem.

A temporary solution is to run cmd.exe, use cd to change directory to the program's path, then run it there. This way, even if the program exits somehow instantly, the window won't disappear. Also, don't hesitate to paste the output here if any error is spotted.

fedpettinella commented 6 years ago

@MakisChristou you may be running the incorrect binary. If your CPU is 64-bit, make sure to choose the binary for your OS ending in amd64. If it's 32-bit, use the binary ending in 386. Another person on Reddit had a similar probelm to yours and I suggested the same fix to them. [reddit link]

MakisChristou commented 6 years ago

I was using the wrong binary thanks !!!