Skip to content

Commit

Permalink
Merge pull request #2288 from greymistcube/merge/70-to-development
Browse files Browse the repository at this point in the history
🔀 Merge 70 to development
  • Loading branch information
riemannulus authored Nov 7, 2023
2 parents f211817 + 2f8768c commit ca1f7b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib9c
Submodule Lib9c updated 113 files
7 changes: 6 additions & 1 deletion NineChronicles.Headless/ActionEvaluationPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,15 @@ await _hub.BroadcastRenderBlockAsync(
IAccountState output = _blockChainStates.GetAccountState(ev.OutputState);
IAccountState input = _blockChainStates.GetAccountState(ev.PreviousState);
AccountDiff diff = AccountDiff.Create(input, output);
if (!TargetAddresses.Any(diff.StateDiffs.Keys.Append(ev.Signer).Contains))
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);
Expand Down

0 comments on commit ca1f7b8

Please sign in to comment.