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 /dex/app.go | |
parent | c03b1bb0f80cb1b2b2b2a1bd510b155462db2949 (diff) | |
download | dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.gz dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.tar.zst dexon-61bd9d4acef98adedc72543b40be8468d167f6c7.zip |
app: fixup message format
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dex/app.go b/dex/app.go index 9b13c32b8..317711e94 100644 --- a/dex/app.go +++ b/dex/app.go @@ -141,10 +141,10 @@ func (d *DexconApp) PreparePayload(position coreTypes.Position) (payload []byte, for _, tx := range txs { if tx.Nonce() != stateDB.GetNonce(addr) { - log.Debug("break transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "expect", stateDB.GetNonce(addr)) + log.Debug("Break transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "expect", stateDB.GetNonce(addr)) break } - log.Debug("receive transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "amount", tx.Value()) + log.Debug("Receive transaction", "tx.hash", tx.Hash(), "nonce", tx.Nonce(), "amount", tx.Value()) allTxs = append(allTxs, tx) } } @@ -200,25 +200,25 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F block := d.blockchain.GetConfirmedBlockByHash(blockHash) if block == nil { - log.Error("can not get confirmed block") + log.Error("Can not get confirmed block") return } var transactions types.Transactions err := rlp.Decode(bytes.NewReader(block.Payload), &transactions) if err != nil { - log.Error("payload rlp decode", "error", err) + log.Error("Payload rlp decode failed", "error", err) return } var witnessData witnessData err = rlp.Decode(bytes.NewReader(block.Witness.Data), &witnessData) if err != nil { - log.Error("witness rlp decode", "error", err) + log.Error("Witness rlp decode failed", "error", err) return } - log.Debug("block proposer id", "hash", block.ProposerID) + log.Debug("Block proposer id", "hash", block.ProposerID) newBlock := types.NewBlock(&types.Header{ Number: new(big.Int).SetUint64(result.Height), Time: big.NewInt(result.Timestamp.Unix()), @@ -233,11 +233,11 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F _, err = d.blockchain.InsertPendingBlock([]*types.Block{newBlock}) if err != nil { - log.Error("insert chain", "error", err) + log.Error("Insert chain", "error", err) return } - log.Debug("insert pending block success", "height", result.Height) + log.Debug("Insert pending block success", "height", result.Height) d.blockchain.RemoveConfirmedBlock(blockHash) d.notify(result.Height) |