Disable logging transactions
This commit is contained in:
parent
ec318b9c97
commit
381f8f6e29
@ -2239,12 +2239,17 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
|
|||||||
}
|
}
|
||||||
xForward := ctx.Value("X-Forwarded-For")
|
xForward := ctx.Value("X-Forwarded-For")
|
||||||
|
|
||||||
|
_ = from
|
||||||
|
_ = xForward
|
||||||
|
|
||||||
|
/**
|
||||||
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(), "x-forward-ip", xForward)
|
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 {
|
} else {
|
||||||
log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value(), "x-forward-ip", xForward)
|
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
|
return tx.Hash(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user