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

Loading…
Cancel
Save