Skip to content

Commit a929cb3

Browse files
darioushceyonur
andauthored
Code sync to go-ethereum v1.13.14 (#1152)
* all changes from v.13.2-x branch * squash initial changes * remove unneeded files * fix lint * gas estimation fix * accounts/keystore: fix test with sleep * rpc fixes * try with a smaller limit * logging * change the trim fn * remove main_test from rpc * txpool: remove unused "PendingFrom" * set local-txs-enabled in load tests * ready to format * format: remove upstream go-ethereum * format: rename packages as fork * Revert "format: remove avalanche header" This reverts commit 09d505bd5e906ac186643061437e665b116b5bf6. * fix logging * deadcode linting * more linting * fix mock * fix unused * expecteds * passing UTs * add comment * unused * resolve some open issues * undo script change * test resillience * fix compile * wip * test is fixed * fix expecteds * nits * fix merge * remove todos * try * try * try * docker stuff * fix * does this work * fix * hardcode for now * fix * hardcode for now * remove TODO comments * fix * make txindexer more similar to upstream * peer/network: move ctx check * enforce tips in miner * align nits with arr4n * remove use of deprecated type core.GenesisAccount * Revert "peer/network: move ctx check" This reverts commit 147da5f. * fix ctx check * fix ctx again * undo vm_test changes * reduce diffs with ARR4N's branch * update for enforcing gasTip * unbuffer chan * update to use commit(true) * use TestOnlyAllowDuplicateBlocks * Revert "update to use commit(true)" This reverts commit 71d949e. * overflow in state_transition err * add http body limit flag (#1327) * Tail lock revisited (#1328) * avoid modifying the pointer * improve readability * prevent race in tail reading * improve repairTxIndexTail readability * use shared func --------- Co-authored-by: Ceyhun Onur <[email protected]>
1 parent 252592a commit a929cb3

File tree

257 files changed

+5083
-4790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+5083
-4790
lines changed

.github/workflows/publish_docker.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
branches:
1616
- master
1717

18-
1918
jobs:
2019
publish_docker_image:
2120
name: Publish Docker Image

accounts/abi/abi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
)
4040

4141
// The ABI holds information about a contract's context and available
42-
// invokable methods. It will allow you to type check function calls and
42+
// invocable methods. It will allow you to type check function calls and
4343
// packs data accordingly.
4444
type ABI struct {
4545
Constructor Method

accounts/abi/bind/backend.go

+13-34
Original file line numberDiff line numberDiff line change
@@ -94,47 +94,20 @@ type BlockHashContractCaller interface {
9494
// used when the user does not provide some needed values, but rather leaves it up
9595
// to the transactor to decide.
9696
type ContractTransactor interface {
97+
interfaces.GasEstimator
98+
interfaces.GasPricer
99+
interfaces.GasPricer1559
100+
interfaces.TransactionSender
101+
97102
// HeaderByNumber returns a block header from the current canonical chain. If
98103
// number is nil, the latest known header is returned.
99104
HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
100105

101106
// AcceptedCodeAt returns the code of the given account in the accepted state.
102107
AcceptedCodeAt(ctx context.Context, account common.Address) ([]byte, error)
103108

104-
// AcceptedNonceAt retrieves the current accepted nonce associated with an account.
105-
AcceptedNonceAt(ctx context.Context, account common.Address) (uint64, error)
106-
107-
// SuggestGasPrice retrieves the currently suggested gas price to allow a timely
108-
// execution of a transaction.
109-
SuggestGasPrice(ctx context.Context) (*big.Int, error)
110-
111-
// SuggestGasTipCap retrieves the currently suggested 1559 priority fee to allow
112-
// a timely execution of a transaction.
113-
SuggestGasTipCap(ctx context.Context) (*big.Int, error)
114-
115-
// EstimateGas tries to estimate the gas needed to execute a specific
116-
// transaction based on the current pending state of the backend blockchain.
117-
// There is no guarantee that this is the true gas limit requirement as other
118-
// transactions may be added or removed by miners, but it should provide a basis
119-
// for setting a reasonable default.
120-
EstimateGas(ctx context.Context, call interfaces.CallMsg) (gas uint64, err error)
121-
122-
// SendTransaction injects the transaction into the pending pool for execution.
123-
SendTransaction(ctx context.Context, tx *types.Transaction) error
124-
}
125-
126-
// ContractFilterer defines the methods needed to access log events using one-off
127-
// queries or continuous event subscriptions.
128-
type ContractFilterer interface {
129-
// FilterLogs executes a log filter operation, blocking during execution and
130-
// returning all the results in one batch.
131-
//
132-
// TODO(karalabe): Deprecate when the subscription one can return past data too.
133-
FilterLogs(ctx context.Context, query interfaces.FilterQuery) ([]types.Log, error)
134-
135-
// SubscribeFilterLogs creates a background log filtering operation, returning
136-
// a subscription immediately, which can be used to stream the found events.
137-
SubscribeFilterLogs(ctx context.Context, query interfaces.FilterQuery, ch chan<- types.Log) (interfaces.Subscription, error)
109+
// NonceAt retrieves the nonce associated with an account.
110+
NonceAt(ctx context.Context, account common.Address, blockNum *big.Int) (uint64, error)
138111
}
139112

140113
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
@@ -143,6 +116,12 @@ type DeployBackend interface {
143116
CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
144117
}
145118

119+
// ContractFilterer defines the methods needed to access log events using one-off
120+
// queries or continuous event subscriptions.
121+
type ContractFilterer interface {
122+
interfaces.LogFilterer
123+
}
124+
146125
// ContractBackend defines the methods needed to work with contracts on a read-write basis.
147126
type ContractBackend interface {
148127
ContractCaller

0 commit comments

Comments
 (0)