Sandeep Sreenath
a9c71eff57
Merge pull request #201 from maticnetwork/fix-memory-leak
...
Fix memory leak in txpool
2021-10-08 00:15:13 +05:30
Ferran Borreguero
1d2ebeb9a0
Fix memory leak in txpool
2021-10-07 09:13:01 +02:00
Krishna Upadhyaya
cf809b4a22
fix typo
2021-09-23 10:56:17 +05:30
Krishna Upadhyaya
00b5788793
change: mumbai to bor-mumbai
2021-09-21 14:58:11 +05:30
Uttam Singh
da11e05e45
minor changes
2021-09-19 21:23:01 +05:30
Uttam Singh
f088f1f24f
Added BorMainnet
2021-09-17 13:39:29 +05:30
Krishna Upadhyaya
2f40184dd1
cleanup: remove unused data
2021-09-01 15:15:34 +05:30
Krishna Upadhyaya
adbd18f42c
fix: genesis alloc issue
2021-09-01 15:04:25 +05:30
Krishna Upadhyaya
700d7bcdf4
add: mumbai network flag
2021-09-01 01:56:09 +05:30
Krishna Upadhyaya
a49bc2172a
Merge remote-tracking branch 'go-ethereum/master' into krishna/header-hash-fix
2021-08-28 12:50:40 +05:30
Felix Lange
8a134014b4
all: add go:build lines ( #23468 )
...
Generated by go1.17 fmt ./...
2021-08-25 18:46:29 +02:00
gary rong
a5a5237178
core, light, tests, trie: add state metrics ( #23433 )
2021-08-24 22:00:42 +03:00
Martin Holst Swende
d705f5a554
core: make txpool reject too sudden changes ( #23095 )
...
* core: make txpool reject too sudden changes
* core: add some metrics to txpool
2021-08-24 21:48:36 +03:00
Martin Holst Swende
a0a4a153e9
core/types: add benchmarks for rlp encoding/decoding ( #23190 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
2021-08-24 13:59:15 +02:00
Guillaume Ballet
0b40977480
core/vm: fix typo in comment ( #23450 )
2021-08-24 13:57:05 +02:00
Pedro Gomes
8e0771c218
core/bloombits: avoid crash when storing errors of different type ( #23437 )
...
This fixes a rare crash which could occur when two different errors happened
in the same bloombits.MatcherSession.
2021-08-24 13:32:19 +02:00
Arpit Temani
7e76e9f27c
Merge tag 'v1.10.8' of github.com:ethereum/go-ethereum into arpit/v1.10.8-upgrade
2021-08-24 12:56:59 +05:30
Martin Holst Swende
1d99573192
core/vm: faster code analysis ( #23381 )
...
* core/vm: more detailed benchmark for jumpdest analysis
* core/vm: make jd analysis benchmark alloc free
* core/vm: improve jumpdest analysis
* core/vm: improve worst-case
* core/vm: further improvements in analysis
* core/vm: improve jumpdest analysis >PUSH15
* core/vm: make jd analysis ref by value
* core/vm: fix misspell
* core/vm: improve set8 and set16 a bit
* core/vm: reduce amount of code
* core/vm: optimize byte copying
2021-08-24 10:00:10 +03:00
Marius van der Wijden
d02c605367
core: only check sendernoeoa in non fake mode ( #23424 )
2021-08-23 12:49:39 +03:00
Arpit Temani
b4ad712cd4
fee change
2021-08-19 18:40:18 +05:30
Arpit Temani
b27dca6bbf
merge v1.10.7
2021-08-19 15:56:13 +05:30
chuwt
5566e5d152
eth/downloader: fix typo in comment ( #23413 )
2021-08-18 13:03:41 +03:00
Zachinquarantine
85b9bdd641
cmd, core: remove calaveras testnet ( #23366 )
...
Removes references to the short-lived Calaveras testnet
2021-08-17 18:43:25 +02:00
Martin Holst Swende
5f98020a21
core/rawdb: implement sequential reads in freezer_table ( #23117 )
...
* core/rawdb: implement sequential reads in freezer_table
* core/rawdb, ethdb: add sequential reader to db interface
* core/rawdb: lint nitpicks
* core/rawdb: fix some nitpicks
* core/rawdb: fix flaw with deferred reads not being performed
* core/rawdb: better documentation
2021-08-13 11:51:01 +03:00
Péter Szilágyi
9d6480c3cd
core/state/snapshot: gofmt
2021-08-10 16:58:38 +03:00
Tyler Chambers
66948316f7
core/state/snapshot: clarify comment about snapshot repair ( #23305 )
...
Co-authored-by: Tyler Chambers <me@tylerchambers.net>
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-08-10 11:16:53 +02:00
Ziyuan Zhong
57d9e0ac75
core/state/snapshot: fix typo in comment ( #23219 )
2021-08-10 11:04:29 +02:00
gary rong
6d175460df
cmd, core, eth, miner: deprecate miner.gastarget flag ( #23213 )
2021-08-10 11:28:33 +03:00
Péter Szilágyi
3b38a83274
core/state/pruner: fix state bloom sync permission in Windows
2021-08-10 10:40:10 +03:00
shawn
d60cfd2604
core: fix london-check to avoid duplication ( #23333 )
...
Co-authored-by: lxex <liuxmzc1@163.com>
2021-08-09 16:34:20 +02:00
Shihao Xia
9e59474e46
core/rawdb: close database in test to avoid goroutine leak ( #23287 )
...
* add db close to avoid goroutine leak
* core/rawdb: move close to defer
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-08-08 15:44:42 +02:00
Martin Holst Swende
0658712f65
core: check if sender is EOA ( #23303 )
...
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
2021-08-07 19:38:18 +02:00
Patrick O'Grady
d3e3a460ec
core/rawdb: fix logs to print block number, not address ( #23328 )
2021-08-04 11:10:37 +03:00
Marius van der Wijden
28ba686cbf
core/state: add trie prefetcher tests ( #23216 )
...
* core/state: add trie prefetcher tests
* core/state: add missing license
2021-08-03 17:35:25 +02:00
Sina Mahmoodi
c38fab912b
core: get header from block cache ( #23299 )
2021-08-03 17:29:47 +02:00
aaronbuchwald
82c5085399
cre/state: fix outdated statedb Prepare comment ( #23320 )
2021-08-03 09:06:58 +03:00
baptiste-b-pegasys
3526f69047
all: remove term "whitelist" in comments and log messages ( #23294 )
2021-07-29 17:36:15 +02:00
Denis Ermolin
e25a5dfb8a
fix: use block hash from the query to get bor tx
2021-07-29 19:54:10 +07:00
baptiste-b-pegasys
523866c2cc
all: change blacklist terms
2021-07-29 11:17:40 +03:00
Marius van der Wijden
2faf796d2a
internal/ethapi: fix panic in accesslist creation ( #23225 )
...
* internal/ethapi: revert + fix properly in al tracer
* internal/ethapi: use toMessage instead of creating new message
* internal/ethapi: remove ineffassign
* core: fix invalid unmarshalling, fix test
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-07-28 14:21:35 +02:00
gary rong
370680a7a9
core/types: revert removal of legacy receipt support ( #23247 )
...
* Revert "core/types: go generate (#23177 )"
This reverts commit 00b922fc5d .
* Revert "core/types: remove LogForStorage type (#23173 )"
This reverts commit 7522642393 .
* Revert "core/types: remove support for legacy receipt/log storage encoding (#22852 )"
This reverts commit 643fd0efc6 .
2021-07-22 15:43:51 +02:00
Marius van der Wijden
97aacd9b35
core: fix pre-check for account balance under EIP-1559 ( #23244 )
...
When processing a transaction with London fork rules, EIP-1559 mandates
checking that the sender must have sufficient balance to cover gas * gasFeeCap.
In the EIP's pseudocode, this check happens after the value transferred by the
transaction has already been deducted. However, in go-ethereum, the balance
has not yet been updated when the check happens, and therefore needs to be
added explicitly.
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-07-22 15:39:40 +02:00
Mark
c49e065fea
internal: get pending and queued transaction by address ( #22992 )
...
* core, eth, internal, les, light: get pending and queued transaction by address
* core: tiny nitpick fixes
* light: tiny nitpick
Co-authored-by: mark <mark@amis.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-07-13 13:40:58 +03:00
Marius van der Wijden
8fe47b0a0d
core/state: avoid unnecessary alloc in trie prefetcher ( #23198 )
2021-07-12 21:34:20 +02:00
Martin Holst Swende
ff4ff30a68
core, params: define london block at 12965000 ( #23176 )
...
* core, params: define london block at 12965000
* core/forkid: fix test
2021-07-08 12:34:56 +03:00
ucwong
00b922fc5d
core/types: go generate ( #23177 )
2021-07-08 07:53:28 +02:00
Sina Mahmoodi
7522642393
core/types: remove LogForStorage type ( #23173 )
...
The encoding of Log and LogForStorage is exactly the same
now. After tracking it down it seems like #17106 changed the
storage schema of logs to be the same as the consensus
encoding.
Support for the legacy format was dropped in #22852 and if
I'm not wrong there's no reason anymore to have these two
equivalent types.
Since the RLP encoding simply contains the first three fields
of Log, we can also avoid creating a temporary struct for
encoding/decoding, and use the rlp:"-" tag in Log instead.
Note: this is an API change in core/types. We decided it's OK
to make this change because LogForStorage is an implementation
detail of go-ethereum and the type has zero uses outside of
package core/types.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-07-07 19:52:55 +02:00
Sina Mahmoodi
5441a8fa47
all: remove noop vm config flags ( #23111 )
...
* all: rm external interpreter and ewasm config
* core/vm: rm Interpreter interface
* cmd/geth: deprecate interpreter config fields
2021-07-06 22:03:09 +02:00
Péter Szilágyi
e13d14e6a3
core/types: sanity check the basefee length inside a header ( #23171 )
2021-07-06 22:02:38 +02:00
gary rong
bd566977e8
core: fix bad parent hash when jumping to genesis in setHead ( #23162 )
2021-07-06 10:32:26 +03:00