From de91b635bc2b71f7fb4e2a56ca63046fe56647ec Mon Sep 17 00:00:00 2001 From: Suho Lee Date: Wed, 8 Nov 2023 11:35:14 +0900 Subject: [PATCH] fix: remove diff --- NineChronicles.Headless/ActionEvaluationPublisher.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/NineChronicles.Headless/ActionEvaluationPublisher.cs b/NineChronicles.Headless/ActionEvaluationPublisher.cs index 623da1aa9..6cff1146e 100644 --- a/NineChronicles.Headless/ActionEvaluationPublisher.cs +++ b/NineChronicles.Headless/ActionEvaluationPublisher.cs @@ -462,18 +462,6 @@ await _hub.BroadcastRenderBlockAsync( ? null : ev.Action; var extra = new Dictionary(); - IAccountState output = _blockChainStates.GetAccountState(ev.OutputState); - IAccountState input = _blockChainStates.GetAccountState(ev.PreviousState); - AccountDiff diff = AccountDiff.Create(input, output); - var updatedAddresses = diff.StateDiffs.Keys - .Union(diff.FungibleAssetValueDiffs.Select(kv => kv.Key.Item1)) - .Append(ev.Signer) - .ToHashSet(); - if (!TargetAddresses.Any(updatedAddresses.Contains)) - { - return; - } - var encodeElapsedMilliseconds = stopwatch.ElapsedMilliseconds; var eval = new NCActionEvaluation(pa, ev.Signer, ev.BlockIndex, ev.OutputState, ev.Exception, ev.PreviousState, ev.RandomSeed, extra);