Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Sally MacFarlane 6 years ago committed by GitHub
parent b078310845
commit 8586357036
  1. 8
      ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetTransactionProcessor.java

@ -141,7 +141,7 @@ public class MainnetTransactionProcessor implements TransactionProcessor {
final WorldUpdater worldState,
final ProcessableBlockHeader blockHeader,
final Transaction transaction,
final Address miningBenficiary,
final Address miningBeneficiary,
final OperationTracer operationTracer,
final BlockHashLookup blockHashLookup) {
LOG.trace("Starting execution of {}", transaction);
@ -212,7 +212,7 @@ public class MainnetTransactionProcessor implements TransactionProcessor {
.blockHeader(blockHeader)
.depth(0)
.completer(c -> {})
.miningBeneficiary(miningBenficiary)
.miningBeneficiary(miningBeneficiary)
.blockHashLookup(blockHashLookup)
.build();
@ -239,7 +239,7 @@ public class MainnetTransactionProcessor implements TransactionProcessor {
.blockHeader(blockHeader)
.depth(0)
.completer(c -> {})
.miningBeneficiary(miningBenficiary)
.miningBeneficiary(miningBeneficiary)
.blockHashLookup(blockHashLookup)
.build();
}
@ -270,7 +270,7 @@ public class MainnetTransactionProcessor implements TransactionProcessor {
final Wei refundedWei = refunded.priceFor(transaction.getGasPrice());
sender.incrementBalance(refundedWei);
final MutableAccount coinbase = worldState.getOrCreate(miningBenficiary);
final MutableAccount coinbase = worldState.getOrCreate(miningBeneficiary);
final Gas coinbaseFee = Gas.of(transaction.getGasLimit()).minus(refunded);
final Wei coinbaseWei = coinbaseFee.priceFor(transaction.getGasPrice());
coinbase.incrementBalance(coinbaseWei);

Loading…
Cancel
Save