Skip to content

Commit cb1afd2

Browse files
author
Hyunsik Lee
committed
Hide some smart contract tracing logs from parlia consensus engine
1 parent 7bd1c1f commit cb1afd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

consensus/parlia/parlia.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ func (p *Parlia) Finalize(chain consensus.ChainReader, header *types.Header, sta
680680
}
681681
}
682682
if !signedRecently {
683-
log.Info("slash validator", "block hash", header.Hash(), "address", spoiledVal)
683+
log.Trace("slash validator", "block hash", header.Hash(), "address", spoiledVal)
684684
err = p.slash(spoiledVal, state, header, cx, txs, receipts, systemTxs, usedGas, false)
685685
if err != nil {
686686
// it is possible that slash validator failed because of the slash channel is disabled.
@@ -947,11 +947,11 @@ func (p *Parlia) distributeIncoming(val common.Address, state *state.StateDB, he
947947
if err != nil {
948948
return err
949949
}
950-
// log.Info("distribute to system reward pool", "block hash", header.Hash(), "amount", rewards)
950+
log.Trace("distribute to system reward pool", "block hash", header.Hash(), "amount", rewards)
951951
balance = balance.Sub(balance, rewards)
952952
}
953953
}
954-
/// log.Info("distribute to validator contract", "block hash", header.Hash(), "amount", balance)
954+
log.Trace("distribute to validator contract", "block hash", header.Hash(), "amount", balance)
955955
return p.distributeToValidator(balance, val, state, header, chain, txs, receipts, receivedTxs, usedGas, mining)
956956
}
957957

@@ -999,7 +999,7 @@ func (p *Parlia) initContract(state *state.StateDB, header *types.Header, chain
999999
for _, c := range contracts {
10001000
msg := p.getSystemMessage(header.Coinbase, common.HexToAddress(c), data, common.Big0)
10011001
// apply message
1002-
log.Info("init contract", "block hash", header.Hash(), "contract", c)
1002+
log.Trace("init contract", "block hash", header.Hash(), "contract", c)
10031003
err = p.applyTransaction(msg, state, header, chain, txs, receipts, receivedTxs, usedGas, mining)
10041004
if err != nil {
10051005
return err

0 commit comments

Comments
 (0)