This commit is contained in:
Nikola Bebić‮ 2024-04-09 13:36:48 +02:00
parent bb0c4dc818
commit ea8ada3431
792 changed files with 3592 additions and 3586 deletions

View file

@ -4,8 +4,8 @@ Official Golang execution layer implementation of the Ethereum protocol.
[![API Reference]( [![API Reference](
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667 https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
)](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc) )](https://pkg.go.dev/github.com/tenderly/binance-geth?tab=doc)
[![Go Report Card](https://goreportcard.com/badge/github.com/ethereum/go-ethereum)](https://goreportcard.com/report/github.com/ethereum/go-ethereum) [![Go Report Card](https://goreportcard.com/badge/github.com/tenderly/binance-geth)](https://goreportcard.com/report/github.com/tenderly/binance-geth)
[![Travis](https://travis-ci.com/ethereum/go-ethereum.svg?branch=master)](https://travis-ci.com/ethereum/go-ethereum) [![Travis](https://travis-ci.com/ethereum/go-ethereum.svg?branch=master)](https://travis-ci.com/ethereum/go-ethereum)
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv) [![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv)
@ -344,7 +344,7 @@ testing procedures.
### Contributing to geth.ethereum.org ### Contributing to geth.ethereum.org
For contributions to the [go-ethereum website](https://geth.ethereum.org), please checkout and raise pull requests against the `website` branch. For contributions to the [go-ethereum website](https://geth.ethereum.org), please checkout and raise pull requests against the `website` branch.
For more detailed instructions please see the `website` branch [README](https://github.com/ethereum/go-ethereum/tree/website#readme) or the For more detailed instructions please see the `website` branch [README](https://github.com/tenderly/binance-geth/tree/website#readme) or the
[contributing](https://geth.ethereum.org/docs/developers/geth-developer/contributing) page of the website. [contributing](https://geth.ethereum.org/docs/developers/geth-developer/contributing) page of the website.
## License ## License

View file

@ -2,24 +2,24 @@
## Supported Versions ## Supported Versions
Please see [Releases](https://github.com/ethereum/go-ethereum/releases). We recommend using the [most recently released version](https://github.com/ethereum/go-ethereum/releases/latest). Please see [Releases](https://github.com/tenderly/binance-geth/releases). We recommend using the [most recently released version](https://github.com/tenderly/binance-geth/releases/latest).
## Audit reports ## Audit reports
Audit reports are published in the `docs` folder: https://github.com/ethereum/go-ethereum/tree/master/docs/audits Audit reports are published in the `docs` folder: https://github.com/tenderly/binance-geth/tree/master/docs/audits
| Scope | Date | Report Link | | Scope | Date | Report Link |
| ------- | ------- | ----------- | | ------- | ------- | ----------- |
| `geth` | 20170425 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) | | `geth` | 20170425 | [pdf](https://github.com/tenderly/binance-geth/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) |
| `clef` | 20180914 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) | | `clef` | 20180914 | [pdf](https://github.com/tenderly/binance-geth/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) |
| `Discv5` | 20191015 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf) | | `Discv5` | 20191015 | [pdf](https://github.com/tenderly/binance-geth/blob/master/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf) |
| `Discv5` | 20200124 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf) | | `Discv5` | 20200124 | [pdf](https://github.com/tenderly/binance-geth/blob/master/docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf) |
## Reporting a Vulnerability ## Reporting a Vulnerability
**Please do not file a public ticket** mentioning the vulnerability. **Please do not file a public ticket** mentioning the vulnerability.
To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org. Please read the [disclosure page](https://github.com/ethereum/go-ethereum/security/advisories?state=published) for more information about publicly disclosed security vulnerabilities. To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org. Please read the [disclosure page](https://github.com/tenderly/binance-geth/security/advisories?state=published) for more information about publicly disclosed security vulnerabilities.
Use the built-in `geth version-check` feature to check whether the software is affected by any known vulnerability. This command will fetch the latest [`vulnerabilities.json`](https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json) file which contains known security vulnerabilities concerning `geth`, and cross-check the data against its own version number. Use the built-in `geth version-check` feature to check whether the software is affected by any known vulnerability. This command will fetch the latest [`vulnerabilities.json`](https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json) file which contains known security vulnerabilities concerning `geth`, and cross-check the data against its own version number.

View file

@ -24,8 +24,8 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
// The ABI holds information about a contract's context and available // The ABI holds information about a contract's context and available

View file

@ -26,9 +26,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/tenderly/binance-geth/common/math"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
const jsondata = ` const jsondata = `

View file

@ -23,13 +23,13 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/accounts/external" "github.com/tenderly/binance-geth/accounts/external"
"github.com/ethereum/go-ethereum/accounts/keystore" "github.com/tenderly/binance-geth/accounts/keystore"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
) )
// ErrNoChainID is returned whenever the user failed to specify a chain id. // ErrNoChainID is returned whenever the user failed to specify a chain id.

View file

@ -21,9 +21,9 @@ import (
"errors" "errors"
"math/big" "math/big"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
) )
var ( var (

View file

@ -19,13 +19,13 @@ package backends
import ( import (
"context" "context"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core" "github.com/tenderly/binance-geth/core"
"github.com/ethereum/go-ethereum/ethclient/simulated" "github.com/tenderly/binance-geth/ethclient/simulated"
) )
// SimulatedBackend is a simulated blockchain. // SimulatedBackend is a simulated blockchain.
// Deprecated: use package github.com/ethereum/go-ethereum/ethclient/simulated instead. // Deprecated: use package github.com/tenderly/binance-geth/ethclient/simulated instead.
type SimulatedBackend struct { type SimulatedBackend struct {
*simulated.Backend *simulated.Backend
simulated.Client simulated.Client
@ -42,7 +42,7 @@ func (b *SimulatedBackend) Fork(ctx context.Context, parentHash common.Hash) err
// A simulated backend always uses chainID 1337. // A simulated backend always uses chainID 1337.
// //
// Deprecated: please use simulated.Backend from package // Deprecated: please use simulated.Backend from package
// github.com/ethereum/go-ethereum/ethclient/simulated instead. // github.com/tenderly/binance-geth/ethclient/simulated instead.
func NewSimulatedBackend(alloc core.GenesisAlloc, gasLimit uint64) *SimulatedBackend { func NewSimulatedBackend(alloc core.GenesisAlloc, gasLimit uint64) *SimulatedBackend {
b := simulated.New(alloc, gasLimit) b := simulated.New(alloc, gasLimit)
return &SimulatedBackend{ return &SimulatedBackend{

View file

@ -24,12 +24,12 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/tenderly/binance-geth/accounts/abi"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
) )
const basefeeWiggleMultiplier = 2 const basefeeWiggleMultiplier = 2

View file

@ -24,14 +24,14 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/tenderly/binance-geth/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/tenderly/binance-geth/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings. // Package bind generates Ethereum contract Go bindings.
// //
// Detailed usage document and tutorial available on the go-ethereum Wiki page: // Detailed usage document and tutorial available on the go-ethereum Wiki page:
// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts // https://github.com/tenderly/binance-geth/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind package bind
import ( import (
@ -29,8 +29,8 @@ import (
"text/template" "text/template"
"unicode" "unicode"
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/tenderly/binance-geth/accounts/abi"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
) )
// Lang is a target programming language selector to generate bindings for. // Lang is a target programming language selector to generate bindings for.

File diff suppressed because one or more lines are too long

View file

@ -16,7 +16,7 @@
package bind package bind
import "github.com/ethereum/go-ethereum/accounts/abi" import "github.com/tenderly/binance-geth/accounts/abi"
// tmplData is the data structure required to fill the binding template. // tmplData is the data structure required to fill the binding template.
type tmplData struct { type tmplData struct {
@ -91,12 +91,12 @@ import (
"strings" "strings"
"errors" "errors"
ethereum "github.com/ethereum/go-ethereum" ethereum "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/tenderly/binance-geth/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/tenderly/binance-geth/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View file

@ -21,10 +21,10 @@ import (
"errors" "errors"
"time" "time"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
) )
// WaitMined waits for tx to be mined on the blockchain. // WaitMined waits for tx to be mined on the blockchain.

View file

@ -23,13 +23,13 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/tenderly/binance-geth/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core" "github.com/tenderly/binance-geth/core"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/ethclient/simulated" "github.com/tenderly/binance-geth/ethclient/simulated"
"github.com/ethereum/go-ethereum/params" "github.com/tenderly/binance-geth/params"
) )
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")

View file

@ -21,8 +21,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
type Error struct { type Error struct {

View file

@ -20,8 +20,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event // Event is an event potentially triggered by the EVM's LOG mechanism. The Event

View file

@ -25,8 +25,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
// FunctionType represents different types of functions a contract might have. // FunctionType represents different types of functions a contract might have.

View file

@ -22,8 +22,8 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/tenderly/binance-geth/common/math"
) )
// packBytesSlice packs the given bytes as [L, V] as the canonical representation // packBytesSlice packs the given bytes as [L, V] as the canonical representation

View file

@ -27,7 +27,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
// TestPack tests the general pack/unpack tests in packing_test.go // TestPack tests the general pack/unpack tests in packing_test.go

View file

@ -19,7 +19,7 @@ package abi
import ( import (
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
type packUnpackTest struct { type packUnpackTest struct {

View file

@ -23,9 +23,9 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/tenderly/binance-geth/common/math"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
// MakeTopics converts a filter query argument list into a filter topic set. // MakeTopics converts a filter query argument list into a filter topic set.

View file

@ -22,8 +22,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
func TestMakeTopics(t *testing.T) { func TestMakeTopics(t *testing.T) {

View file

@ -26,7 +26,7 @@ import (
"unicode" "unicode"
"unicode/utf8" "unicode/utf8"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
// Type enumerator // Type enumerator

View file

@ -22,7 +22,7 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
// typeWithoutStringer is a alias for the Type type which simply doesn't implement // typeWithoutStringer is a alias for the Type type which simply doesn't implement

View file

@ -24,7 +24,7 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
var ( var (

View file

@ -27,7 +27,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -21,10 +21,10 @@ import (
"fmt" "fmt"
"math/big" "math/big"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
"golang.org/x/crypto/sha3" "golang.org/x/crypto/sha3"
) )

View file

@ -20,7 +20,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
) )
func TestTextHash(t *testing.T) { func TestTextHash(t *testing.T) {

View file

@ -22,15 +22,15 @@ import (
"math/big" "math/big"
"sync" "sync"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/rpc" "github.com/tenderly/binance-geth/rpc"
"github.com/ethereum/go-ethereum/signer/core/apitypes" "github.com/tenderly/binance-geth/signer/core/apitypes"
) )
type ExternalBackend struct { type ExternalBackend struct {

View file

@ -28,9 +28,9 @@ import (
"time" "time"
mapset "github.com/deckarep/golang-set/v2" mapset "github.com/deckarep/golang-set/v2"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View file

@ -28,8 +28,8 @@ import (
"github.com/cespare/cp" "github.com/cespare/cp"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View file

@ -24,7 +24,7 @@ import (
"time" "time"
mapset "github.com/deckarep/golang-set/v2" mapset "github.com/deckarep/golang-set/v2"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
) )
// fileCache is a cache of files seen during scan of keystore. // fileCache is a cache of files seen during scan of keystore.

View file

@ -28,9 +28,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/google/uuid" "github.com/google/uuid"
) )

View file

@ -32,11 +32,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
) )
var ( var (

View file

@ -26,10 +26,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View file

@ -37,10 +37,10 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/tenderly/binance-geth/common/math"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/google/uuid" "github.com/google/uuid"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt" "golang.org/x/crypto/scrypt"
@ -120,7 +120,7 @@ func (ks keyStorePassphrase) StoreKey(filename string, key *Key, auth string) er
"This indicates that the keystore is corrupted. \n" + "This indicates that the keystore is corrupted. \n" +
"The corrupted file is stored at \n%v\n" + "The corrupted file is stored at \n%v\n" +
"Please file a ticket at:\n\n" + "Please file a ticket at:\n\n" +
"https://github.com/ethereum/go-ethereum/issues." + "https://github.com/tenderly/binance-geth/issues." +
"The error was : %s" "The error was : %s"
//lint:ignore ST1005 This is a message for the user //lint:ignore ST1005 This is a message for the user
return fmt.Errorf(msg, tmpName, err) return fmt.Errorf(msg, tmpName, err)

View file

@ -20,7 +20,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
const ( const (

View file

@ -22,7 +22,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
type keyStorePlain struct { type keyStorePlain struct {

View file

@ -25,8 +25,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) { func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {

View file

@ -25,8 +25,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/google/uuid" "github.com/google/uuid"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
) )

View file

@ -19,10 +19,10 @@ package keystore
import ( import (
"math/big" "math/big"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
) )
// keystoreWallet implements the accounts.Wallet interface for the original // keystoreWallet implements the accounts.Wallet interface for the original

View file

@ -23,7 +23,7 @@ import (
"os" "os"
"time" "time"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
) )

View file

@ -21,8 +21,8 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
) )
// managerSubBufferSize determines how many incoming wallet events // managerSubBufferSize determines how many incoming wallet events

View file

@ -41,10 +41,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
pcsc "github.com/gballet/go-libpcsclite" pcsc "github.com/gballet/go-libpcsclite"
) )

View file

@ -27,7 +27,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
pcsc "github.com/gballet/go-libpcsclite" pcsc "github.com/gballet/go-libpcsclite"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
"golang.org/x/text/unicode/norm" "golang.org/x/text/unicode/norm"

View file

@ -33,12 +33,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
pcsc "github.com/gballet/go-libpcsclite" pcsc "github.com/gballet/go-libpcsclite"
"github.com/status-im/keycard-go/derivationpath" "github.com/status-im/keycard-go/derivationpath"
) )

View file

@ -23,9 +23,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/event" "github.com/tenderly/binance-geth/event"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/karalabe/usb" "github.com/karalabe/usb"
) )

View file

@ -28,13 +28,13 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
) )
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes. // ledgerOpcode is an enumeration encoding the supported Ledger opcodes.

View file

@ -27,12 +27,12 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/accounts/usbwallet/trezor" "github.com/tenderly/binance-geth/accounts/usbwallet/trezor"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
) )

View file

@ -25,12 +25,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum" "github.com/tenderly/binance-geth"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/karalabe/usb" "github.com/karalabe/usb"
) )

View file

@ -17,8 +17,8 @@
package engine package engine
import ( import (
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/rpc" "github.com/tenderly/binance-geth/rpc"
) )
// EngineAPIError is a standardized error message between consensus and execution // EngineAPIError is a standardized error message between consensus and execution

View file

@ -6,9 +6,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
) )
var _ = (*payloadAttributesMarshaling)(nil) var _ = (*payloadAttributesMarshaling)(nil)

View file

@ -7,9 +7,9 @@ import (
"errors" "errors"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
) )
var _ = (*executableDataMarshaling)(nil) var _ = (*executableDataMarshaling)(nil)

View file

@ -7,7 +7,7 @@ import (
"errors" "errors"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
) )
var _ = (*executionPayloadEnvelopeMarshaling)(nil) var _ = (*executionPayloadEnvelopeMarshaling)(nil)

View file

@ -20,10 +20,10 @@ import (
"fmt" "fmt"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/trie" "github.com/tenderly/binance-geth/trie"
) )
//go:generate go run github.com/fjl/gencodec -type PayloadAttributes -field-override payloadAttributesMarshaling -out gen_blockparams.go //go:generate go run github.com/fjl/gencodec -type PayloadAttributes -field-override payloadAttributesMarshaling -out gen_blockparams.go

View file

@ -20,10 +20,10 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/common/lru" "github.com/tenderly/binance-geth/common/lru"
"github.com/ethereum/go-ethereum/ethdb" "github.com/tenderly/binance-geth/ethdb"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
) )
// canonicalStore stores instances of the given type in a database and caches // canonicalStore stores instances of the given type in a database and caches

View file

@ -23,14 +23,14 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/beacon/types" "github.com/tenderly/binance-geth/beacon/types"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/lru" "github.com/tenderly/binance-geth/common/lru"
"github.com/ethereum/go-ethereum/common/mclock" "github.com/tenderly/binance-geth/common/mclock"
"github.com/ethereum/go-ethereum/core/rawdb" "github.com/tenderly/binance-geth/core/rawdb"
"github.com/ethereum/go-ethereum/ethdb" "github.com/tenderly/binance-geth/ethdb"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
) )
var ( var (

View file

@ -21,10 +21,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/beacon/types" "github.com/tenderly/binance-geth/beacon/types"
"github.com/ethereum/go-ethereum/common/mclock" "github.com/tenderly/binance-geth/common/mclock"
"github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/tenderly/binance-geth/ethdb/memorydb"
) )
var ( var (

View file

@ -21,10 +21,10 @@ import (
"crypto/sha256" "crypto/sha256"
mrand "math/rand" mrand "math/rand"
"github.com/ethereum/go-ethereum/beacon/merkle" "github.com/tenderly/binance-geth/beacon/merkle"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/beacon/types" "github.com/tenderly/binance-geth/beacon/types"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
func GenerateTestCommittee() *types.SerializedSyncCommittee { func GenerateTestCommittee() *types.SerializedSyncCommittee {

View file

@ -22,8 +22,8 @@ import (
"errors" "errors"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
) )
// Value represents either a 32 byte leaf value or hash node in a binary merkle tree/partial proof. // Value represents either a 32 byte leaf value or hash node in a binary merkle tree/partial proof.

View file

@ -22,9 +22,9 @@ import (
"fmt" "fmt"
"math/bits" "math/bits"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
bls "github.com/protolambda/bls12-381-util" bls "github.com/protolambda/bls12-381-util"
) )

View file

@ -24,9 +24,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/beacon/merkle" "github.com/tenderly/binance-geth/beacon/merkle"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View file

@ -6,7 +6,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
var _ = (*headerMarshaling)(nil) var _ = (*headerMarshaling)(nil)

View file

@ -6,7 +6,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
) )
var _ = (*syncAggregateMarshaling)(nil) var _ = (*syncAggregateMarshaling)(nil)

View file

@ -21,9 +21,9 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/binary" "encoding/binary"
"github.com/ethereum/go-ethereum/beacon/merkle" "github.com/tenderly/binance-geth/beacon/merkle"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
//go:generate go run github.com/fjl/gencodec -type Header -field-override headerMarshaling -out gen_header_json.go //go:generate go run github.com/fjl/gencodec -type Header -field-override headerMarshaling -out gen_header_json.go

View file

@ -20,9 +20,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/beacon/merkle" "github.com/tenderly/binance-geth/beacon/merkle"
"github.com/ethereum/go-ethereum/beacon/params" "github.com/tenderly/binance-geth/beacon/params"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
) )
// BootstrapData contains a sync committee where light sync can be started, // BootstrapData contains a sync committee where light sync can be started,

View file

@ -53,10 +53,10 @@ import (
"time" "time"
"github.com/cespare/cp" "github.com/cespare/cp"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto/signify" "github.com/tenderly/binance-geth/crypto/signify"
"github.com/ethereum/go-ethereum/internal/build" "github.com/tenderly/binance-geth/internal/build"
"github.com/ethereum/go-ethereum/params" "github.com/tenderly/binance-geth/params"
) )
var ( var (
@ -245,8 +245,8 @@ func doInstall(cmdline []string) {
func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (flags []string) { func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (flags []string) {
var ld []string var ld []string
if env.Commit != "" { if env.Commit != "" {
ld = append(ld, "-X", "github.com/ethereum/go-ethereum/internal/version.gitCommit="+env.Commit) ld = append(ld, "-X", "github.com/tenderly/binance-geth/internal/version.gitCommit="+env.Commit)
ld = append(ld, "-X", "github.com/ethereum/go-ethereum/internal/version.gitDate="+env.Date) ld = append(ld, "-X", "github.com/tenderly/binance-geth/internal/version.gitDate="+env.Date)
} }
// Strip DWARF on darwin. This used to be required for certain things, // Strip DWARF on darwin. This used to be required for certain things,
// and there is no downside to this, so we just keep doing it. // and there is no downside to this, so we just keep doing it.

View file

@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), {{.GoBootPackage}} Build-Depends: debhelper (>= 8.0.0), {{.GoBootPackage}}
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Homepage: https://ethereum.org Homepage: https://ethereum.org
Vcs-Git: https://github.com/ethereum/go-ethereum.git Vcs-Git: https://github.com/tenderly/binance-geth.git
Vcs-Browser: https://github.com/ethereum/go-ethereum Vcs-Browser: https://github.com/tenderly/binance-geth
Package: {{.Name}} Package: {{.Name}}
Architecture: any Architecture: any

View file

@ -3,9 +3,9 @@ InstallDir "$InstDir"
OutFile "${OUTPUTFILE}" # set through command line arguments OutFile "${OUTPUTFILE}" # set through command line arguments
# Links for "Add/Remove Programs" # Links for "Add/Remove Programs"
!define HELPURL "https://github.com/ethereum/go-ethereum/issues" !define HELPURL "https://github.com/tenderly/binance-geth/issues"
!define UPDATEURL "https://github.com/ethereum/go-ethereum/releases" !define UPDATEURL "https://github.com/tenderly/binance-geth/releases"
!define ABOUTURL "https://github.com/ethereum/go-ethereum#ethereum-go" !define ABOUTURL "https://github.com/tenderly/binance-geth#ethereum-go"
!define /date NOW "%Y%m%d" !define /date NOW "%Y%m%d"
PageEx license PageEx license

View file

@ -79,7 +79,7 @@ var (
"internal/reexec", "internal/reexec",
// skip special licenses // skip special licenses
"crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/ethereum/go-ethereum/pull/17225 "crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/tenderly/binance-geth/pull/17225
} }
// paths with this prefix are licensed as GPL. all other files are LGPL. // paths with this prefix are licensed as GPL. all other files are LGPL.

View file

@ -23,8 +23,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/ethereum/go-ethereum/signer/core/apitypes" "github.com/tenderly/binance-geth/signer/core/apitypes"
"github.com/ethereum/go-ethereum/signer/fourbyte" "github.com/tenderly/binance-geth/signer/fourbyte"
) )
func init() { func init() {

View file

@ -24,12 +24,12 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/tenderly/binance-geth/accounts/abi/bind"
"github.com/ethereum/go-ethereum/cmd/utils" "github.com/tenderly/binance-geth/cmd/utils"
"github.com/ethereum/go-ethereum/common/compiler" "github.com/tenderly/binance-geth/common/compiler"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/internal/flags" "github.com/tenderly/binance-geth/internal/flags"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -25,13 +25,13 @@ import (
"os" "os"
"time" "time"
"github.com/ethereum/go-ethereum/cmd/utils" "github.com/tenderly/binance-geth/cmd/utils"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/p2p/discover" "github.com/tenderly/binance-geth/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/nat" "github.com/tenderly/binance-geth/p2p/nat"
"github.com/ethereum/go-ethereum/p2p/netutil" "github.com/tenderly/binance-geth/p2p/netutil"
) )
func main() { func main() {

View file

@ -35,25 +35,25 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "github.com/tenderly/binance-geth/accounts"
"github.com/ethereum/go-ethereum/accounts/keystore" "github.com/tenderly/binance-geth/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "github.com/tenderly/binance-geth/cmd/utils"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/internal/ethapi" "github.com/tenderly/binance-geth/internal/ethapi"
"github.com/ethereum/go-ethereum/internal/flags" "github.com/tenderly/binance-geth/internal/flags"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/node" "github.com/tenderly/binance-geth/node"
"github.com/ethereum/go-ethereum/params" "github.com/tenderly/binance-geth/params"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
"github.com/ethereum/go-ethereum/rpc" "github.com/tenderly/binance-geth/rpc"
"github.com/ethereum/go-ethereum/signer/core" "github.com/tenderly/binance-geth/signer/core"
"github.com/ethereum/go-ethereum/signer/core/apitypes" "github.com/tenderly/binance-geth/signer/core/apitypes"
"github.com/ethereum/go-ethereum/signer/fourbyte" "github.com/tenderly/binance-geth/signer/fourbyte"
"github.com/ethereum/go-ethereum/signer/rules" "github.com/tenderly/binance-geth/signer/rules"
"github.com/ethereum/go-ethereum/signer/storage" "github.com/tenderly/binance-geth/signer/storage"
"github.com/mattn/go-colorable" "github.com/mattn/go-colorable"
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
@ -873,7 +873,7 @@ func checkFile(filename string) error {
} }
// Check the unix permission bits // Check the unix permission bits
// However, on windows, we cannot use the unix perm-bits, see // However, on windows, we cannot use the unix perm-bits, see
// https://github.com/ethereum/go-ethereum/issues/20123 // https://github.com/tenderly/binance-geth/issues/20123
if runtime.GOOS != "windows" && info.Mode().Perm()&0377 != 0 { if runtime.GOOS != "windows" && info.Mode().Perm()&0377 != 0 {
return fmt.Errorf("file (%v) has insecure file permissions (%v)", filename, info.Mode().String()) return fmt.Errorf("file (%v) has insecure file permissions (%v)", filename, info.Mode().String())
} }

View file

@ -21,8 +21,8 @@ import (
"os" "os"
"testing" "testing"
"github.com/ethereum/go-ethereum/internal/cmdtest" "github.com/tenderly/binance-geth/internal/cmdtest"
"github.com/ethereum/go-ethereum/internal/reexec" "github.com/tenderly/binance-geth/internal/reexec"
) )
const registeredName = "clef-test" const registeredName = "clef-test"

View file

@ -100,9 +100,9 @@ or
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"Request denied"}} {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"Request denied"}}
``` ```
Apart from listing accounts, you can also *request* creating a new account; signing transactions and data; and recovering signatures. You can find the available methods in the Clef [External API Spec](https://github.com/ethereum/go-ethereum/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/ethereum/go-ethereum/blob/master/cmd/clef/extapi_changelog.md). Apart from listing accounts, you can also *request* creating a new account; signing transactions and data; and recovering signatures. You can find the available methods in the Clef [External API Spec](https://github.com/tenderly/binance-geth/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/tenderly/binance-geth/blob/master/cmd/clef/extapi_changelog.md).
*Note, the number of things you can do from the External API is deliberately small, since we want to limit the power of remote calls by as much as possible! Clef has an [Internal API](https://github.com/ethereum/go-ethereum/tree/master/cmd/clef#ui-api-1) too for the UI (User Interface) which is much richer and can support custom interfaces on top. But that's out of scope here.* *Note, the number of things you can do from the External API is deliberately small, since we want to limit the power of remote calls by as much as possible! Clef has an [Internal API](https://github.com/tenderly/binance-geth/tree/master/cmd/clef#ui-api-1) too for the UI (User Interface) which is much richer and can support custom interfaces on top. But that's out of scope here.*
## Automatic rules ## Automatic rules
@ -288,7 +288,7 @@ t=2019-07-01T15:52:23+0300 lvl=info msg=SignData api=signer type=request meta
t=2019-07-01T15:52:23+0300 lvl=info msg=SignData api=signer type=response data= error="Request denied" t=2019-07-01T15:52:23+0300 lvl=info msg=SignData api=signer type=response data= error="Request denied"
``` ```
For more details on writing automatic rules, please see the [rules spec](https://github.com/ethereum/go-ethereum/blob/master/cmd/clef/rules.md). For more details on writing automatic rules, please see the [rules spec](https://github.com/tenderly/binance-geth/blob/master/cmd/clef/rules.md).
## Geth integration ## Geth integration

View file

@ -22,8 +22,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
) )
type crawler struct { type crawler struct {

View file

@ -24,13 +24,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test" "github.com/tenderly/binance-geth/cmd/devp2p/internal/v4test"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/internal/flags" "github.com/tenderly/binance-geth/internal/flags"
"github.com/ethereum/go-ethereum/p2p/discover" "github.com/tenderly/binance-geth/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/params" "github.com/tenderly/binance-geth/params"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -21,10 +21,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/ethereum/go-ethereum/cmd/devp2p/internal/v5test" "github.com/tenderly/binance-geth/cmd/devp2p/internal/v5test"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/internal/flags" "github.com/tenderly/binance-geth/internal/flags"
"github.com/ethereum/go-ethereum/p2p/discover" "github.com/tenderly/binance-geth/p2p/discover"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -23,8 +23,8 @@ import (
"strings" "strings"
"github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/p2p/dnsdisc" "github.com/tenderly/binance-geth/p2p/dnsdisc"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -29,8 +29,8 @@ import (
"github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/route53" "github.com/aws/aws-sdk-go-v2/service/route53"
"github.com/aws/aws-sdk-go-v2/service/route53/types" "github.com/aws/aws-sdk-go-v2/service/route53/types"
"github.com/ethereum/go-ethereum/log" "github.com/tenderly/binance-geth/log"
"github.com/ethereum/go-ethereum/p2p/dnsdisc" "github.com/tenderly/binance-geth/p2p/dnsdisc"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View file

@ -25,11 +25,11 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/ethereum/go-ethereum/accounts/keystore" "github.com/tenderly/binance-geth/accounts/keystore"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/console/prompt" "github.com/tenderly/binance-geth/console/prompt"
"github.com/ethereum/go-ethereum/p2p/dnsdisc" "github.com/tenderly/binance-geth/p2p/dnsdisc"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -28,9 +28,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr" "github.com/tenderly/binance-geth/p2p/enr"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -30,16 +30,16 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/core" "github.com/tenderly/binance-geth/core"
"github.com/ethereum/go-ethereum/core/forkid" "github.com/tenderly/binance-geth/core/forkid"
"github.com/ethereum/go-ethereum/core/state" "github.com/tenderly/binance-geth/core/state"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/eth/protocols/eth" "github.com/tenderly/binance-geth/eth/protocols/eth"
"github.com/ethereum/go-ethereum/params" "github.com/tenderly/binance-geth/params"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View file

@ -21,9 +21,9 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/eth/protocols/eth" "github.com/tenderly/binance-geth/eth/protocols/eth"
"github.com/ethereum/go-ethereum/p2p" "github.com/tenderly/binance-geth/p2p"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -25,12 +25,12 @@ import (
"time" "time"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/eth/protocols/eth" "github.com/tenderly/binance-geth/eth/protocols/eth"
"github.com/ethereum/go-ethereum/eth/protocols/snap" "github.com/tenderly/binance-geth/eth/protocols/snap"
"github.com/ethereum/go-ethereum/p2p" "github.com/tenderly/binance-geth/p2p"
"github.com/ethereum/go-ethereum/p2p/rlpx" "github.com/tenderly/binance-geth/p2p/rlpx"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
) )
var ( var (

View file

@ -25,7 +25,7 @@ import (
"path" "path"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
) )

View file

@ -16,8 +16,8 @@
package ethtest package ethtest
import ( import (
"github.com/ethereum/go-ethereum/p2p" "github.com/tenderly/binance-geth/p2p"
"github.com/ethereum/go-ethereum/rlp" "github.com/tenderly/binance-geth/rlp"
) )
// Unexported devp2p message codes from p2p/peer.go. // Unexported devp2p message codes from p2p/peer.go.

View file

@ -24,14 +24,14 @@ import (
"math/rand" "math/rand"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/state" "github.com/tenderly/binance-geth/core/state"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/eth/protocols/snap" "github.com/tenderly/binance-geth/eth/protocols/snap"
"github.com/ethereum/go-ethereum/internal/utesting" "github.com/tenderly/binance-geth/internal/utesting"
"github.com/ethereum/go-ethereum/trie" "github.com/tenderly/binance-geth/trie"
"github.com/ethereum/go-ethereum/trie/trienode" "github.com/tenderly/binance-geth/trie/trienode"
"golang.org/x/crypto/sha3" "golang.org/x/crypto/sha3"
) )

View file

@ -21,15 +21,15 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/consensus/misc/eip4844" "github.com/tenderly/binance-geth/consensus/misc/eip4844"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/crypto/kzg4844" "github.com/tenderly/binance-geth/crypto/kzg4844"
"github.com/ethereum/go-ethereum/eth/protocols/eth" "github.com/tenderly/binance-geth/eth/protocols/eth"
"github.com/ethereum/go-ethereum/internal/utesting" "github.com/tenderly/binance-geth/internal/utesting"
"github.com/ethereum/go-ethereum/p2p" "github.com/tenderly/binance-geth/p2p"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/holiman/uint256" "github.com/holiman/uint256"
) )

View file

@ -24,14 +24,14 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/tenderly/binance-geth/common/hexutil"
"github.com/ethereum/go-ethereum/eth" "github.com/tenderly/binance-geth/eth"
"github.com/ethereum/go-ethereum/eth/catalyst" "github.com/tenderly/binance-geth/eth/catalyst"
"github.com/ethereum/go-ethereum/eth/ethconfig" "github.com/tenderly/binance-geth/eth/ethconfig"
"github.com/ethereum/go-ethereum/internal/utesting" "github.com/tenderly/binance-geth/internal/utesting"
"github.com/ethereum/go-ethereum/node" "github.com/tenderly/binance-geth/node"
"github.com/ethereum/go-ethereum/p2p" "github.com/tenderly/binance-geth/p2p"
) )
func makeJWTSecret() (string, [32]byte, error) { func makeJWTSecret() (string, [32]byte, error) {

View file

@ -22,9 +22,9 @@ import (
"os" "os"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/tenderly/binance-geth/core/types"
"github.com/ethereum/go-ethereum/eth/protocols/eth" "github.com/tenderly/binance-geth/eth/protocols/eth"
) )
// sendTxs sends the given transactions to the node and // sendTxs sends the given transactions to the node and

View file

@ -24,9 +24,9 @@ import (
"net" "net"
"time" "time"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/internal/utesting" "github.com/tenderly/binance-geth/internal/utesting"
"github.com/ethereum/go-ethereum/p2p/discover/v4wire" "github.com/tenderly/binance-geth/p2p/discover/v4wire"
) )
const ( const (

View file

@ -22,9 +22,9 @@ import (
"net" "net"
"time" "time"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/p2p/discover/v4wire" "github.com/tenderly/binance-geth/p2p/discover/v4wire"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
) )
const waitTime = 300 * time.Millisecond const waitTime = 300 * time.Millisecond

View file

@ -22,10 +22,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/internal/utesting" "github.com/tenderly/binance-geth/internal/utesting"
"github.com/ethereum/go-ethereum/p2p/discover/v5wire" "github.com/tenderly/binance-geth/p2p/discover/v5wire"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/netutil" "github.com/tenderly/binance-geth/p2p/netutil"
) )
// Suite is the discv5 test suite. // Suite is the discv5 test suite.

View file

@ -24,11 +24,11 @@ import (
"net" "net"
"time" "time"
"github.com/ethereum/go-ethereum/common/mclock" "github.com/tenderly/binance-geth/common/mclock"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/p2p/discover/v5wire" "github.com/tenderly/binance-geth/p2p/discover/v5wire"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr" "github.com/tenderly/binance-geth/p2p/enr"
) )
// readError represents an error during packet reading. // readError represents an error during packet reading.

View file

@ -21,9 +21,9 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/ethereum/go-ethereum/crypto" "github.com/tenderly/binance-geth/crypto"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr" "github.com/tenderly/binance-geth/p2p/enr"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -20,9 +20,9 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ethereum/go-ethereum/internal/debug" "github.com/tenderly/binance-geth/internal/debug"
"github.com/ethereum/go-ethereum/internal/flags" "github.com/tenderly/binance-geth/internal/flags"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -23,8 +23,8 @@ import (
"os" "os"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/tenderly/binance-geth/common"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/tenderly/binance-geth/p2p/enode"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

Some files were not shown because too many files have changed in this diff Show more