cryptiumlabs / backerei

Automated reward payment & account management for Tezos bakers.
https://cryptium.ch/networks/tezos
GNU General Public License v3.0
49 stars 11 forks source link

Backerei fails sending transactions #16

Closed chiptus closed 5 years ago

chiptus commented 5 years ago

When running bakcerei --no-dry-run I get the following error. I put the right password, and while host-ip/chains/main/blocks/head/helpers/scripts/run_operation returns 500, http://host-ip:8732/chains/main/blocks/genesis returns a valid answer. I've changed the node ip and payout address for privacy reasons

backerei: VanillaHttpException (HttpExceptionRequest Request {
  host                 = "host-ip"
  port                 = 8732
  secure               = False
  requestHeaders       = [("Content-Type","application/json")]
  path                 = "/chains/main/blocks/head/helpers/scripts/run_operation"
  queryString          = ""
  method               = "POST"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutMicro 600000000
  requestVersion       = HTTP/1.1
}

 (StatusCodeException (Response {responseStatus = Status {statusCode = 500, statusMessage = "Internal Server Error"}, responseVersion = HTTP/1.1, responseHeaders = [("content-length","120"),("content-type","application/json")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) "[{\"kind\":\"branch\",\"id\":\"proto.003-PsddFKi3.contract.unrevealed_key\",\"contract\":\"payout-address\"}]\n"))
cwgoes commented 5 years ago

That error is thrown by your Tezos node, looks like you haven't revealed the key for your payout address.

chiptus commented 5 years ago

That's right, thanks! For future readers, you need to reveal even if you have tzx in your account. the command to reveal is: ./tezos-client reveal key for <tz1....>