|
|
@ -201,10 +201,16 @@ public class StateTestSubCommand implements Runnable { |
|
|
|
TransactionValidationParams.processingBlock(), |
|
|
|
TransactionValidationParams.processingBlock(), |
|
|
|
tracer); |
|
|
|
tracer); |
|
|
|
timer.stop(); |
|
|
|
timer.stop(); |
|
|
|
|
|
|
|
if (shouldClearEmptyAccounts(spec.getFork())) { |
|
|
|
final Account coinbase = worldStateUpdater.getOrCreate(spec.getBlockHeader().getCoinbase()); |
|
|
|
final Account coinbase = worldStateUpdater.getOrCreate(spec.getBlockHeader().getCoinbase()); |
|
|
|
if (coinbase != null && coinbase.isEmpty() && shouldClearEmptyAccounts(spec.getFork())) { |
|
|
|
if (coinbase != null && coinbase.isEmpty()) { |
|
|
|
worldStateUpdater.deleteAccount(coinbase.getAddress()); |
|
|
|
worldStateUpdater.deleteAccount(coinbase.getAddress()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
final Account sender = worldStateUpdater.getOrCreateSenderAccount(transaction.getSender()); |
|
|
|
|
|
|
|
if (sender != null && sender.isEmpty()) { |
|
|
|
|
|
|
|
worldStateUpdater.deleteAccount(sender.getAddress()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
worldStateUpdater.commit(); |
|
|
|
worldStateUpdater.commit(); |
|
|
|
|
|
|
|
|
|
|
|
final ObjectNode summaryLine = objectMapper.createObjectNode(); |
|
|
|
final ObjectNode summaryLine = objectMapper.createObjectNode(); |
|
|
|