Skip to content

Commit

Permalink
fix stake logging
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Nov 30, 2023
1 parent b68ef66 commit 25824b2
Show file tree
Hide file tree
Showing 8 changed files with 3,640 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3685,15 +3685,15 @@ private void ProcessTasks(Task<List<ICommittedActionEvaluation>>[] taskArray, IB
if (action is Stake stake)
{
var start = DateTimeOffset.UtcNow;
_stakeList.Add(StakeData.GetStakeInfo(inputState, outputState, ae.InputContext.Signer, ae.InputContext.BlockIndex, _blockTimeOffset));
_stakeList.Add(StakeData.GetStakeInfo(inputState, outputState, ae.InputContext.Signer, ae.InputContext.BlockIndex, _blockTimeOffset, stake.Id));
var end = DateTimeOffset.UtcNow;
Console.WriteLine("Writing Stake action in block #{0}. Time Taken: {1} ms.", ae.InputContext.BlockIndex, (end - start).Milliseconds);
}

if (action is Stake0 stake0)
{
var start = DateTimeOffset.UtcNow;
_stakeList.Add(StakeData.GetStakeInfo(inputState, outputState, ae.InputContext.Signer, ae.InputContext.BlockIndex, _blockTimeOffset));
_stakeList.Add(StakeData.GetStakeInfo(inputState, outputState, ae.InputContext.Signer, ae.InputContext.BlockIndex, _blockTimeOffset, Guid.Empty));
var end = DateTimeOffset.UtcNow;
Console.WriteLine("Writing Stake action in block #{0}. Time Taken: {1} ms.", ae.InputContext.BlockIndex, (end - start).Milliseconds);
}
Expand Down
Loading

0 comments on commit 25824b2

Please sign in to comment.