Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge/v1.10.16 #44

Merged
merged 66 commits into from
Apr 13, 2022
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
893502e
trie, core, eth: use db.has over db.get where possible
holiman Dec 15, 2021
062d910
go.mod : go-nat-pmp v1.0.2
ucwong Dec 30, 2021
4bd2d0e
core: periodically flush the transaction indexes
rjl493456442 Jan 5, 2022
0f89310
params: begin v1.10.16 release cycle
fjl Jan 5, 2022
af2ca5a
Merge pull request #24117 from holiman/db_has
karalabe Jan 6, 2022
7403a38
core: fix a typo (#24198)
Xia-Sam Jan 6, 2022
9aa2e98
README: fix a typo (#24196)
fishmandev Jan 6, 2022
127ce93
accounts: corrected spelling mistakes (#24194)
sanskarkhare Jan 6, 2022
0dec47b
eth: continue after whitelist check
holiman Jan 7, 2022
adc0a6a
Merge pull request #24210 from holiman/whitelist_investigate
karalabe Jan 7, 2022
2347128
accouts/scwallet: typo fix (#24207)
ucwong Jan 7, 2022
1884f37
cmd/ethkey: fix comment typo (#24205)
aaronbuchwald Jan 7, 2022
b1e72f7
core/evm: RANDOM opcode (EIP-4399) (#24141)
MariusVanDerWijden Jan 10, 2022
acd7b36
Merge pull request #24197 from rjl493456442/periodically-flush-batch
karalabe Jan 11, 2022
e6b61ed
Merge pull request #24171 from ucwong/pmp
karalabe Jan 11, 2022
c006261
cmd/geth: add tests for version_check (#24169)
rangzen Jan 11, 2022
52448e9
cmd/geth: update copyright year (#24224)
vieyang Jan 11, 2022
2c58e6b
trie: use keyvalue reader for non-mutating methods (#24221)
darioush Jan 11, 2022
045e90c
crypto/ecies: use AES-192 for curve P384 (#24139)
xq840622 Jan 12, 2022
b1f0959
SECURITY.md: fix typo (#24244)
myersg86 Jan 15, 2022
f80ce14
accounts/abi/bind/backends: return errors instead of panic (#24242)
pespantelis Jan 18, 2022
4aab440
core/rawdb: enforce readonly in freezer instantiation (#24119)
s1na Jan 18, 2022
51eb5f8
cmd/geth: add db cmd to show metadata (#23900)
holiman Jan 18, 2022
7dec26d
signer, core: support chainId for GnosisSafeTx (#24231)
mmv08 Jan 18, 2022
03aaea1
internal/ethapi: use same receiver names (#24252)
aeharvlee Jan 20, 2022
514ae7c
eth/catalyst: evict old payloads, type PayloadID (#24236)
protolambda Jan 20, 2022
5bcbb29
rpc: add PeerInfo (#24255)
fjl Jan 20, 2022
c029cdc
core: fix typo in blockchain test (#24263)
Codier Jan 21, 2022
ae45c97
trie: fix range prover (#24266)
rjl493456442 Jan 21, 2022
eef7a33
core, miner, rpc, eth: fix goroutine leaks in tests (#24211)
charlesxsh Jan 21, 2022
2dfa4bc
trie: test for edgecase in VerifyRangeProof (#24257)
darioush Jan 21, 2022
06e16de
internal/ethapi: remove unnecessary comment (#24271)
aeharvlee Jan 24, 2022
6838542
accounts: fix typo in errors.go (#24270)
DavidCai1111 Jan 24, 2022
bd615e0
go.mod : golang-set 1.8.0 go.mod added & cardinality check for subset…
ucwong Jan 24, 2022
78636ee
eth, miner: use miner for post-merge block production (#23256)
rjl493456442 Jan 24, 2022
4230f5f
cmd/utils: fix regression placing dev mode datadir readonly
karalabe Jan 24, 2022
f9ce40b
Merge pull request #24281 from karalabe/dev-read-write
karalabe Jan 24, 2022
f39f068
accounts/abi: simplify Arguments.Unpack (#24277)
zhiqiangxu Jan 24, 2022
0e35192
core/rawdb: do prefixed lookup first
holiman Jan 25, 2022
78f13a3
Merge pull request #24288 from holiman/prefer_prefixed
karalabe Jan 25, 2022
29cb5de
core/rawdb: fix typo (#24289)
MariusVanDerWijden Jan 25, 2022
015fde9
eth/tracers: avoid using blockCtx concurrently (#24286)
holiman Jan 25, 2022
e282246
cmd/utils: open db in readonly when dev datadir exists (#24298)
s1na Jan 27, 2022
a988550
internal/web3ext: add eth.getLogs wrapper (#24297)
s1na Jan 27, 2022
abd49a6
rpc: set Request.GetBody for client requests (#24292)
ValentinTrinque Jan 27, 2022
64c53ed
tests: external evm benchmarks (#24050)
chfast Jan 28, 2022
0c1bd22
cmd/geth: make test pass on a pi4 by using lightkdf (#24314)
ligi Jan 31, 2022
cac09a3
eth/tracers: native prestate tracer (#24268)
s1na Jan 31, 2022
a5c0cfb
build: fix lint on ARM (#24311)
ligi Jan 31, 2022
9da25c5
all: separate catalyst package (#24280)
rjl493456442 Jan 31, 2022
b868ca1
accounts: correct spelling mistake (#24323)
B-Harden Feb 1, 2022
c5436c8
eth/tracers: clean-up tracer collection (#24320)
s1na Feb 1, 2022
afe344b
accounts/abi/bind: improve WaitMined error handling (#24321)
komkom Feb 1, 2022
d99e759
cmd: auto-enable beacon APIs if TTD is defined
karalabe Feb 2, 2022
1a7e345
Merge pull request #24328 from karalabe/uke-catalyst
karalabe Feb 2, 2022
aaca58a
go.mode: bump graphql-go dependency to v1.3.0 (#24324)
aaronbuchwald Feb 2, 2022
6ce4670
cmd/devp2p: implement snap protocol testing (#24276)
holiman Feb 4, 2022
2d20fed
miner: avoid data race in miner (#24349)
rjl493456442 Feb 7, 2022
5a0d487
signer/core: fix complex typed data sign (EIP712) (#24220)
holiman Feb 8, 2022
fb3a652
go.mod: upgrade to github.com/karalabe/usb v0.0.2 (#24356)
fjl Feb 8, 2022
51e7968
core/state: fix read-meters + simplify code (#24304)
holiman Feb 14, 2022
6c3513c
p2p: reduce the scope of variable dialPubkey (#24385)
zhiqiangxu Feb 14, 2022
f01e2fa
internal/ethapi: fix incorrect type on empty slice (#24372)
rodneyosodo Feb 15, 2022
e98114d
ethclient: add CallContractAtHash (#24355)
zhiqiangxu Feb 15, 2022
20356e5
params: go-ethereum v1.10.16 stable
holiman Feb 15, 2022
7094c47
Merge tag 'v1.10.16' into merge/v1.10.16
Feb 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
accounts/abi/bind/backends: return errors instead of panic (ethereum#…
  • Loading branch information
pespantelis authored Jan 18, 2022
commit f80ce141a1455031043e87ba6da36b753f9f1f01
7 changes: 3 additions & 4 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,25 +639,24 @@ func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallM
}

// SendTransaction updates the pending block to include the given transaction.
// It panics if the transaction is invalid.
func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error {
b.mu.Lock()
defer b.mu.Unlock()

// Get the last block
block, err := b.blockByHash(ctx, b.pendingBlock.ParentHash())
if err != nil {
panic("could not fetch parent")
return fmt.Errorf("could not fetch parent")
}
// Check transaction validity
signer := types.MakeSigner(b.blockchain.Config(), block.Number())
sender, err := types.Sender(signer, tx)
if err != nil {
panic(fmt.Errorf("invalid transaction: %v", err))
return fmt.Errorf("invalid transaction: %v", err)
}
nonce := b.pendingState.GetNonce(sender)
if tx.Nonce() != nonce {
panic(fmt.Errorf("invalid transaction nonce: got %d, want %d", tx.Nonce(), nonce))
return fmt.Errorf("invalid transaction nonce: got %d, want %d", tx.Nonce(), nonce)
}
// Include tx in chain
blocks, _ := core.GenerateChain(b.config, block, ethash.NewFaker(), b.database, 1, func(number int, block *core.BlockGen) {
Expand Down