Assertion failed: (pkey)
I successfully built ripplegen. However, every time I run it I get an assertion failed: (pkey) message. It doesn't matter what pattern I'm using. Is there any other bit of setup I missed? I'm compiling with clang on a mac. The only changes I made were to add boost include and lib paths to the makefile.
MacBook:RippleGen bway$ ./ripplegen r
CPUs detected: 4
Running 4 threads.
Generating seed for pattern "r"...
Assertion failed: (pkey), functiAssertion failed: (pkey), functiAssertion failed: (pkey), function CKey, file ./key.h, line 32. on CKey, file ./key.h, line 32. Abort trap: 6
So it turns out, the assertion only fails most of the time. If I repeat the command over and over, eventually it works. I guess I should debug why myself. :-) Anyway, thanks for the code. I successfully generated some vanity addresses.
A good place to start is probably to figure out which condition caused GenerateRootDeterministicKey to return NULL. I refactored all that key code from the original rippled project but didn't get around to thoroughly testing it nor adding more detailed error messages. But chances are good OpenSSL isn't liking something.
Any luck finding out why this happens. I am getting this issue still. on centos 7.
./ripplegen rCat
CPUs detected: 32
Running 32 threads.
Generating seed for pattern "rCat"...
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed.
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed.
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion `pkey' failed.
Aborted
I haven’t run that code in several years. But I remember that I had an issue running it in multi-threaded mode. Running in single threaded mode stopped the issue for me.
Not sure if that is exactly what you are seeing, but it might be worth a try just-in-case. Bob Way Ripple [email protected] mailto:[email protected] | ripple.com http://ripple.com/
On Jul 9, 2017, at 7:22 PM, bharath-g [email protected] wrote:
Any luck finding out why this happens. I am getting this issue still. on centos 7.
./ripplegen rCat
CPUs detected: 32
Running 32 threads.
Generating seed for pattern "rCat"...
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertionpkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertionpkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion `pkey' failed. Aborted
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CodeShark/RippleGen/issues/1#issuecomment-313975391, or mute the thread https://github.com/notifications/unsubscribe-auth/AEFag-VOXxVT4V0iPLXKS1GsT3OFD8ijks5sMW67gaJpZM4An8F-.
Thanks. Strange. I did run it in single threaded mode and still got the error. this is how I ran
./ripplegen rCat 1
# CPUs detected: 32
#
# Running 1 thread.
#
# Generating seed for pattern "rCat"...
#
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion `pkey' failed.
Aborted
Here is the thing. I know someone who runs it without issues. I am running on centos 7. Strange!