Class: TransactionToBlockWorker

Inherits:
ApplicationWorker show all
Defined in:
app/workers/transaction_to_block_worker.rb

Constant Summary

Constants inherited from ApplicationWorker

ApplicationWorker::ERRORS

Instance Method Summary collapse

Methods inherited from ApplicationWorker

#success?

Instance Method Details

#perform(receiver_key, sender_key, amount, block_id) ⇒ Object



6
7
8
9
10
11
12
# File 'app/workers/transaction_to_block_worker.rb', line 6

def perform(receiver_key, sender_key, amount, block_id)
  @receiver_key = receiver_key
  @sender_key = sender_key
  @amount = amount
  @block_id = block_id
  transaction_accepted?
end