eth/fetcher, eth/gasestimator: fix typos in comments (#28675)
This commit is contained in:
parent
81fd1b3cf9
commit
b2ced97ac4
@ -186,7 +186,7 @@ func TestTransactionFetcherWaiting(t *testing.T) {
|
|||||||
// waitlist, and none of them are scheduled for retrieval until the wait expires.
|
// waitlist, and none of them are scheduled for retrieval until the wait expires.
|
||||||
//
|
//
|
||||||
// This test is an extended version of TestTransactionFetcherWaiting. It's mostly
|
// This test is an extended version of TestTransactionFetcherWaiting. It's mostly
|
||||||
// to cover the metadata checkes without bloating up the basic behavioral tests
|
// to cover the metadata checks without bloating up the basic behavioral tests
|
||||||
// with all the useless extra fields.
|
// with all the useless extra fields.
|
||||||
func TestTransactionFetcherWaitingWithMeta(t *testing.T) {
|
func TestTransactionFetcherWaitingWithMeta(t *testing.T) {
|
||||||
testTransactionFetcherParallel(t, txFetcherTest{
|
testTransactionFetcherParallel(t, txFetcherTest{
|
||||||
@ -1030,7 +1030,7 @@ func TestTransactionFetcherRateLimiting(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Tests that if huge transactions are announced, only a small number of them will
|
// Tests that if huge transactions are announced, only a small number of them will
|
||||||
// be requested at a time, to keep the responses below a resonable level.
|
// be requested at a time, to keep the responses below a reasonable level.
|
||||||
func TestTransactionFetcherBandwidthLimiting(t *testing.T) {
|
func TestTransactionFetcherBandwidthLimiting(t *testing.T) {
|
||||||
testTransactionFetcherParallel(t, txFetcherTest{
|
testTransactionFetcherParallel(t, txFetcherTest{
|
||||||
init: func() *TxFetcher {
|
init: func() *TxFetcher {
|
||||||
|
@ -47,7 +47,7 @@ type Options struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Estimate returns the lowest possible gas limit that allows the transaction to
|
// Estimate returns the lowest possible gas limit that allows the transaction to
|
||||||
// run successfully with the provided context optons. It returns an error if the
|
// run successfully with the provided context options. It returns an error if the
|
||||||
// transaction would always revert, or if there are unexpected failures.
|
// transaction would always revert, or if there are unexpected failures.
|
||||||
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) {
|
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) {
|
||||||
// Binary search the gas limit, as it may need to be higher than the amount used
|
// Binary search the gas limit, as it may need to be higher than the amount used
|
||||||
|
Loading…
Reference in New Issue
Block a user