Disable logging transactions

This commit is contained in:
Tornado Contrib 2024-11-02 09:37:58 +00:00
parent ec318b9c97
commit 381f8f6e29
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1

@ -2239,12 +2239,17 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
}
xForward := ctx.Value("X-Forwarded-For")
_ = from
_ = xForward
/**
if tx.To() == nil {
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(), "x-forward-ip", xForward)
} else {
log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value(), "x-forward-ip", xForward)
}
**/
return tx.Hash(), nil
}