Disable logging transactions

This commit is contained in:
Tornado Contrib 2024-11-02 09:13:30 +00:00
parent f3c696fa1d
commit dbcc35ff1c
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1

@ -1908,12 +1908,16 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
return common.Hash{}, err return common.Hash{}, err
} }
_ = from
/**
if tx.To() == nil { if tx.To() == nil {
addr := crypto.CreateAddress(from, tx.Nonce()) addr := crypto.CreateAddress(from, tx.Nonce())
log.Info("Submitted contract creation", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "contract", addr.Hex(), "value", tx.Value()) log.Info("Submitted contract creation", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "contract", addr.Hex(), "value", tx.Value())
} else { } else {
log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value()) log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value())
} }
**/
return tx.Hash(), nil return tx.Hash(), nil
} }