Skip to content

Commit fa66ad0

Browse files
committed
Merge tag 'v1.13.15' of https://github.com/ethereum/go-ethereum into feat/v1.13.15
2 parents 1097101 + c5ba367 commit fa66ad0

File tree

347 files changed

+9365
-6167
lines changed

Some content is hidden

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

347 files changed

+9365
-6167
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
go-version: 1.21.4
1919
- name: Run tests
20-
run: go test ./...
20+
run: go test -short ./...
2121
env:
2222
GOOS: linux
2323
GOARCH: 386

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,49 @@ GOBIN = ./build/bin
88
GO ?= latest
99
GORUN = go run
1010

11+
#? geth: Build geth
1112
geth:
1213
$(GORUN) build/ci.go install ./cmd/geth
1314
@echo "Done building."
1415
@echo "Run \"$(GOBIN)/geth\" to launch geth."
1516

17+
#? all: Build all packages and executables
1618
all:
1719
$(GORUN) build/ci.go install
1820

21+
#? test: Run the tests
1922
test: all
2023
$(GORUN) build/ci.go test
2124

25+
<<<<<<< HEAD
2226
test-oasys:
2327
go test -v ./consensus/oasys/...
2428

29+
=======
30+
#? lint: Run certain pre-selected linters
31+
>>>>>>> c5ba367eb6232e3eddd7d6226bfd374449c63164
2532
lint: ## Run linters.
2633
$(GORUN) build/ci.go lint
2734

35+
#? clean: Clean go cache, built executables, and the auto generated folder
2836
clean:
2937
go clean -cache
3038
rm -fr build/_workspace/pkg/ $(GOBIN)/*
3139

3240
# The devtools target installs tools required for 'go generate'.
3341
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
3442

43+
#? devtools: Install recommended developer tools
3544
devtools:
3645
env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
3746
env GOBIN= go install github.com/fjl/gencodec@latest
3847
env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
3948
env GOBIN= go install ./cmd/abigen
4049
@type "solc" 2> /dev/null || echo 'Please install solc'
4150
@type "protoc" 2> /dev/null || echo 'Please install protoc'
51+
52+
#? help: Get more info on make commands.
53+
help: Makefile
54+
@echo " Choose a command run in go-ethereum:"
55+
@sed -n 's/^#?//p' $< | column -t -s ':' | sort | sed -e 's/^/ /'
56+
.PHONY: help

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1+
<<<<<<< HEAD
12
![logo1](https://user-images.githubusercontent.com/107421475/227834490-3a3a9834-21a8-4079-8166-f6fe571d6b8d.png)
23
# Oasys Validator
34
Validator client for Oasys. Forked from go ethereum.
5+
=======
6+
## Go Ethereum
7+
8+
Golang execution layer implementation of the Ethereum protocol.
9+
>>>>>>> c5ba367eb6232e3eddd7d6226bfd374449c63164
410
511
[![API Reference](
6-
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
12+
https://pkg.go.dev/badge/github.com/ethereum/go-ethereum
713
)](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
814
[![Go Report Card](https://goreportcard.com/badge/github.com/ethereum/go-ethereum)](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
15+
<<<<<<< HEAD
916
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/oasysgames)
17+
=======
18+
[![Travis](https://app.travis-ci.com/ethereum/go-ethereum.svg?branch=master)](https://app.travis-ci.com/github/ethereum/go-ethereum)
19+
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv)
20+
>>>>>>> c5ba367eb6232e3eddd7d6226bfd374449c63164
1021
1122
Automated builds are available for stable releases and the unstable master branch. Binary
1223
archives are published at https://github.com/oasysgames/oasys-validator/releases.

accounts/abi/abi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
)
3030

3131
// The ABI holds information about a contract's context and available
32-
// invokable methods. It will allow you to type check function calls and
32+
// invocable methods. It will allow you to type check function calls and
3333
// packs data accordingly.
3434
type ABI struct {
3535
Constructor Method

accounts/abi/bind/backend.go

+11-32
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ type BlockHashContractCaller interface {
8484
// used when the user does not provide some needed values, but rather leaves it up
8585
// to the transactor to decide.
8686
type ContractTransactor interface {
87+
ethereum.GasEstimator
88+
ethereum.GasPricer
89+
ethereum.GasPricer1559
90+
ethereum.TransactionSender
91+
8792
// HeaderByNumber returns a block header from the current canonical chain. If
8893
// number is nil, the latest known header is returned.
8994
HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
@@ -93,38 +98,6 @@ type ContractTransactor interface {
9398

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

130103
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
@@ -133,6 +106,12 @@ type DeployBackend interface {
133106
CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
134107
}
135108

109+
// ContractFilterer defines the methods needed to access log events using one-off
110+
// queries or continuous event subscriptions.
111+
type ContractFilterer interface {
112+
ethereum.LogFilterer
113+
}
114+
136115
// ContractBackend defines the methods needed to work with contracts on a read-write basis.
137116
type ContractBackend interface {
138117
ContractCaller

0 commit comments

Comments
 (0)