private void SetupBlockRewards(params BlockReward[] rewards) { _transactionProcessor.When(x => x.Execute( Arg.Is <Transaction>(t => CheckTransaction(t, _rewardData)), _block.Header, Arg.Is <ITxTracer>(t => t is CallOutputTracer))) .Do(args => args.Arg <ITxTracer>().MarkAsSuccess( args.Arg <Transaction>().To, 0, SetupAbiAddresses(rewards), Array.Empty <LogEntry>())); }
private void SetupBlockRewards(IDictionary <Address, BlockReward[]> rewards) { _transactionProcessor.When(x => x.Execute( Arg.Is <Transaction>(t => CheckTransaction(t, rewards.Keys, _rewardData)), _block.Header, Arg.Is <ITxTracer>(t => t is CallOutputTracer))) .Do(args => { var recipient = args.Arg <Transaction>().To; args.Arg <ITxTracer>().MarkAsSuccess( recipient, 0, SetupAbiAddresses(rewards[recipient]), Array.Empty <LogEntry>()); }); }