Skip to content

Commit

Permalink
Bump headless
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Jul 16, 2024
1 parent ab589b9 commit 9c08b3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
29 changes: 0 additions & 29 deletions NineChronicles.DataProvider.Executable/Commands/MySqlMigration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -745,14 +745,6 @@ private void ProcessTasks(Task<List<ICommittedActionEvaluation>>[] taskArray, IB
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, Guid.Empty));
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 MigrateMonsterCollection migrateMonsterCollection)
{
var start = DateTimeOffset.UtcNow;
Expand Down Expand Up @@ -1104,27 +1096,6 @@ private void ProcessTasks(Task<List<ICommittedActionEvaluation>>[] taskArray, IB
Console.WriteLine("Stored TransferAsset action in block #{0}. Time Taken: {1} ms.", ae.InputContext.BlockIndex, (end - start).Milliseconds);
}

if (action is TransferAsset0 transferAsset0)
{
var start = DateTimeOffset.UtcNow;
var actionString = ae.InputContext.TxId.ToString();
var actionByteArray = Encoding.UTF8.GetBytes(actionString!).Take(16).ToArray();
var id = new Guid(actionByteArray);
_transferAssetList.Add(TransferAssetData.GetTransferAssetInfo(
id,
(TxId)ae.InputContext.TxId!,
ae.InputContext.BlockIndex,
_blockHash!.ToString(),
transferAsset0.Sender,
transferAsset0.Recipient,
transferAsset0.Amount.Currency.Ticker,
transferAsset0.Amount,
_blockTimeOffset));

var end = DateTimeOffset.UtcNow;
Console.WriteLine("Stored TransferAsset action in block #{0}. Time Taken: {1} ms.", ae.InputContext.BlockIndex, (end - start).Milliseconds);
}

if (action is RequestPledge requestPledge)
{
var start = DateTimeOffset.UtcNow;
Expand Down

0 comments on commit 9c08b3e

Please sign in to comment.