aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-18 20:41:39 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commitb0fd5da490e5141ca456f145a1fd1e7a55b33e1f (patch)
tree03cfe89a3e92370ff5db261a640ad5991293f169 /core
parent46100ae76f9fb81aaf267101c3801af1d7adcb88 (diff)
downloadgo-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar.gz
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar.bz2
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar.lz
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar.xz
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.tar.zst
go-tangerine-b0fd5da490e5141ca456f145a1fd1e7a55b33e1f.zip
app: fixup message format
Diffstat (limited to 'core')
-rw-r--r--core/blockchain.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 87e586d20..b66c0928f 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1554,7 +1554,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
@@ -1587,7 +1587,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
}
@@ -1597,7 +1597,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)