Skip to content

Commit

Permalink
DigixGlobal#70 model watching_transaction resend group_id assignment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bshevchenko committed Sep 9, 2019
1 parent cdf3451 commit 0222658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/watching_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def resend(user, watching_transaction, attrs)
transaction_object: transaction_object,
signed_transaction: attrs.fetch(:signed_transaction, nil),
txhash: transaction_object.fetch('transactionHash', nil),
group_id: watching_transaction.id
group_id: watching_transaction.group_id
)

return [:invalid_data, tx.errors] unless tx.valid?
Expand Down
2 changes: 2 additions & 0 deletions lib/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

scheduler = Rufus::Scheduler.new

scheduler.stderr = File.open('log/scheduler.log', 'ab')

scheduler.every '3s' do
puts 'Cleaning up old challenges'
nonce = SelfServer.increment_nonce
Expand Down

0 comments on commit 0222658

Please sign in to comment.