Class: Api::V1::BlockConfirmationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/v1/block_confirmations_controller.rb

Instance Method Summary collapse

Instance Method Details

#confirm_blockObject



8
9
10
11
# File 'app/controllers/api/v1/block_confirmations_controller.rb', line 8

def confirm_block
  return not_valid_confirmation_hash_response unless hash_confirmed?
  assign_contract
end

#info_to_mineObject



13
14
15
# File 'app/controllers/api/v1/block_confirmations_controller.rb', line 13

def info_to_mine
  render json: { words: words, number_sequences: number_sequences, symbol_sequences: symbol_sequences }, status: :ok
end