diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-18 20:41:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 61bd9d4acef98adedc72543b40be8468d167f6c7 (patch) | |
tree | 13244a15aa23af0cd96af231ec82d93126c07ca3 /core | |
parent | c03b1bb0f80cb1b2b2b2a1bd510b155462db2949 (diff) | |
download | dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.gz dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.bz2 dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.lz dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.xz dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.zst dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.zip |
app: fixup message format
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index c272cf211..9ddb8186f 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1548,7 +1548,7 @@ func (bc *BlockChain) insertPendingBlocks(chain types.Blocks) (int, []interface{ } receipts = append(receipts, receipt) allLogs = append(allLogs, receipt.Logs...) - log.Debug("apply transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "amount", tx.Value()) + log.Debug("Apply transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "amount", tx.Value()) } // Finalize the block, applying any consensus engine specific extras (e.g. block rewards) header.GasUsed = *usedGas @@ -1581,7 +1581,7 @@ func (bc *BlockChain) insertPendingBlocks(chain types.Blocks) (int, []interface{ for pendingHeight := bc.CurrentBlock().NumberU64() + 1; pendingHeight <= block.Header().WitnessHeight; pendingHeight++ { confirmedBlock, exist := bc.pendingBlocks[pendingHeight] if !exist { - log.Debug("block has already inserted", "height", pendingHeight) + log.Error("Block has already inserted", "height", pendingHeight) continue } @@ -1591,7 +1591,7 @@ func (bc *BlockChain) insertPendingBlocks(chain types.Blocks) (int, []interface{ } // Write the block to the chain and get the status. - log.Debug("insert pending block", "height", pendingHeight) + log.Debug("Insert pending block", "height", pendingHeight) status, err := bc.WriteBlockWithState(confirmedBlock.block, confirmedBlock.receipts, s) if err != nil { return i, events, coalescedLogs, fmt.Errorf("WriteBlockWithState error: %v", err) |