Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objc error in send_money() method #39

Open
5anchezzz opened this issue Jun 9, 2020 · 2 comments
Open

objc error in send_money() method #39

5anchezzz opened this issue Jun 9, 2020 · 2 comments

Comments

@5anchezzz
Copy link

When I use send_money() method and pass all of required params (from_address as string, to_address as string, satoshi_amount as integer, private_key as string), then get an error:

objc[62090]: +[NSString initialize] may have been in progress in another thread when fork() was called.
objc[62090]: +[NSString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

It looks like the reason for the error is in the nested method signer(). The same error when I call it through the console

    def signer(private_key, tosign)
      key = Bitcoin::Key.new(private_key, nil, compressed = true)
      signatures = []
      tosign.each do |to_sign_hex|
        to_sign_binary = [to_sign_hex].pack('H*')
        sig_binary = key.sign(to_sign_binary)
        sig_hex = sig_binary.unpack1('H*')
        signatures << sig_hex
      end
      signatures
    end

photo_2020-06-09_21-47-17

@quentinlesceller
Copy link
Contributor

I'll have a look. Thank for notifying us.

@Demas2117
Copy link

⁹hg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@quentinlesceller @5anchezzz @Demas2117 and others