Skip to content

Commit

Permalink
Trivial: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
orogvany committed Feb 12, 2019
1 parent 6b7987f commit 8cc839f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/semux/consensus/SemuxSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ protected boolean validateBlock(Block block, AccountState asSnapshot, DelegateSt
BlockHeader header = block.getHeader();
List<Transaction> transactions = block.getTransactions();

// a workaround to ensure testnet clients ignore bad block, can remove at later date
// a workaround to ensure testnet clients ignore bad block, can remove at later
// date
if (config.network() == Network.TESTNET) {
String badBlock = "0x1a472841464b9bea9e530d73a95e1213f29adef11a3661f3e98df87a9a230b7d";
String blockHash = Hex.encode0x(block.getHash());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/semux/core/TransactionExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public List<TransactionResult> execute(List<Transaction> txs, AccountState as, D
result.setCode(Code.SUCCESS);
} else {
executeVmTransaction(result, tx, as, block, gasUsedInBlock);
if(result.getCode().isAccepted()) {
if (result.getCode().isAccepted()) {
gasUsedInBlock += result.getGasUsed();
}
}
Expand Down

0 comments on commit 8cc839f

Please sign in to comment.