Shane Bammel
160ef47ca1
Ignore base fee for system transactions
...
System transactions have a gas cap of zero which violates the
post-london consensus rules.
2022-01-05 16:59:04 -06:00
Shane Bammel
1926e96f78
Implemented fix for bad block sync bug
...
During mining, commit is called twice, to generate an empty block for
concurrent sealing. This resulted in inadvertent double-slashing of
out-of-turn validators during block creation leading to bad blocks.
2021-12-16 21:46:16 -06:00
Bret Palsson
f5f858da61
Remove unused variable
2021-11-03 13:47:57 -07:00
Bret Palsson
551df8feae
Resolve comments in code review
2021-11-03 12:04:30 -07:00
Bret Palsson
efb9ef83a3
Add PulseChain mainnet and testnet
...
Add bootnodes for PulseChain testnet
Fix devp2p dns normalization for comparing names
2021-11-01 12:52:22 -07:00
Shane Bammel
d951125c6c
Cleanup redundant initialization.
2021-09-25 17:09:42 -05:00
Shane Bammel
f79e32b68b
Fix nil API Backend
2021-09-25 17:09:37 -05:00
Shane Bammel
a2393a4453
Fix log args
2021-09-25 17:09:30 -05:00
Bret Palsson
f8bcf4eba5
Merge go-ethereum v1.10.8
...
Add debug build to make and docker
2021-09-25 07:30:37 -07:00
sjb933
9b402e6e02
Merge Upstream Changes
2021-08-17 16:11:50 +00:00
sjb933
2ee3be103f
PrimordialPulse Fork
2021-05-25 17:20:38 +00:00
fudongbai
8e40f21689
limit range get log
2021-03-09 16:38:22 +08:00
zjubfd
7f7d1bb027
add directbroadcast flag ( #99 )
2021-03-03 17:50:30 +08:00
zjubfd
9fedf1909d
Merge pull request #53 from binance-chain/elegant_upgrade
...
[R4R]support fork id in header; elegant upgrade
2021-01-11 14:54:20 +08:00
fudongbai
60606d3919
support fork id in header; elegant upgrade
2021-01-11 13:54:35 +08:00
fudongbai
3d3f9694a4
fix potential deadlock of pub/sub module
2020-12-30 15:13:11 +08:00
fudongbai
d52d8a5f05
use fixed gas price since bsc network is idle
2020-11-17 16:38:20 +08:00
libotony
f94b7de003
eth/tracers: revert reason in call_tracer + error for failed internal calls ( #21387 )
...
* tests: add testdata of call tracer
* eth/tracers: return revert reason in call_tracer
* eth/tracers: regenerate assets
* eth/tracers: add error message even if no exec occurrs, fixes #21438
Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-08-27 17:45:47 +08:00
zjubfd
a8c9e53eb0
enforce backoff time for out-turn validator ( #23 )
2020-08-07 17:06:29 +08:00
zjubfd
ce14f2cae5
Merge pull request #6 from guagualvcha/stale_depth
...
[R4R] modify params for Parlia consensus with 21 validators
2020-06-17 12:10:21 +08:00
fudongbai
2ff7a21d64
update stale depth
2020-06-15 17:31:40 +08:00
fudongbai
39c80ce175
more strick condition for system transaction
2020-05-22 10:21:57 +08:00
fudongbai
2ac4ae8395
add consensus engine Parlia implement
2020-05-20 12:19:24 +08:00
Martin Holst Swende
6402c42b67
all: simplify and fix database iteration with prefix/start ( #20808 )
...
* core/state/snapshot: start fixing disk iterator seek
* ethdb, rawdb, leveldb, memorydb: implement iterators with prefix and start
* les, core/state/snapshot: iterator fixes
* all: remove two iterator methods
* all: rename Iteratee.NewIteratorWith -> NewIterator
* ethdb: fix review concerns
2020-04-15 14:08:53 +03:00
Felix Lange
c8e9a91672
build: upgrade to golangci-lint 1.24.0 ( #20901 )
...
* accounts/scwallet: remove unnecessary uses of fmt.Sprintf
* cmd/puppeth: remove unnecessary uses of fmt.Sprintf
* p2p/discv5: remove unnecessary use of fmt.Sprintf
* whisper/mailserver: remove unnecessary uses of fmt.Sprintf
* core: goimports -w tx_pool_test.go
* eth/downloader: goimports -w downloader_test.go
* build: upgrade to golangci-lint 1.24.0
2020-04-08 11:07:29 +03:00
gary rong
f0b5eb09eb
eth, les: fix flaky tests ( #20897 )
...
* les: fix flaky test
* eth: fix flaky test
2020-04-07 09:16:21 +03:00
ucwong
66ed58bfcc
eth/fetcher: add missing timer.Stop calls ( #20861 )
2020-04-02 12:32:45 +02:00
ucwong
47f7c736cb
eth/filters: add missing Ticker.Stop call ( #20862 )
2020-04-02 12:31:50 +02:00
Wenbiao Zheng
03fe9de2cb
eth: add debug_accountRange API ( #19645 )
...
This new API allows reading accounts and their content by address range.
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2020-03-31 12:08:44 +02:00
Hanjiang Yu
8f05cfa122
cmd, consensus: add option to disable mmap for DAG caches/datasets ( #20484 )
...
* cmd, consensus: add option to disable mmap for DAG caches/datasets
* consensus: add benchmarks for mmap with/with lock
2020-03-31 11:44:04 +03:00
Ha ĐANG
5d7e5b00be
eth/filters: fix typo on unindexedLogs function's comment ( #20827 )
2020-03-27 16:33:14 +01:00
Felix Lange
d6c5f2417c
eth: improve shutdown synchronization ( #20695 )
...
* eth: improve shutdown synchronization
Most goroutines started by eth.Ethereum didn't have any shutdown sync at
all, which lead to weird error messages when quitting the client.
This change improves the clean shutdown path by stopping all internal
components in dependency order and waiting for them to actually be
stopped before shutdown is considered done. In particular, we now stop
everything related to peers before stopping 'resident' parts such as
core.BlockChain.
* eth: rewrite sync controller
* eth: remove sync start debug message
* eth: notify chainSyncer about new peers after handshake
* eth: move downloader.Cancel call into chainSyncer
* eth: make post-sync block broadcast synchronous
* eth: add comments
* core: change blockchain stop message
* eth: change closeBloomHandler channel type
2020-03-27 15:03:20 +02:00
Martin Holst Swende
39f502329f
internal/ethapi: don't set sender-balance to maxuint, fixes #16999 ( #20783 )
...
Prior to this change, eth_call changed the balance of the sender account in the
EVM environment to 2^256 wei to cover the gas cost of the call execution.
We've had this behavior for a long time even though it's super confusing.
This commit sets the default call gasprice to zero instead of updating the balance,
which is better because it makes eth_call semantics less surprising. Removing
the built-in balance assignment also makes balance overrides work as expected.
2020-03-23 18:21:23 +01:00
Péter Szilágyi
613af7ceea
Merge pull request #20152 from karalabe/snapshot-5
...
Dynamic state snapshots
2020-03-23 12:57:31 +02:00
Péter Szilágyi
dc6e98d2a8
eth: when triggering a sync, check the head header TD, not block
2020-03-18 14:33:06 +02:00
Péter Szilágyi
270fbfba4b
eth: fix transaction announce/broadcast goroutine leak
2020-03-13 23:47:15 +02:00
gary rong
92f3405dae
eth, les: fix time sensitive unit tests ( #20741 )
2020-03-12 11:25:52 +01:00
Péter Szilágyi
6e05ccd845
core/state/snapshot, tests: sync snap gen + snaps in consensus tests
2020-03-03 09:17:13 +02:00
Péter Szilágyi
351a5903b0
core/rawdb, core/state/snapshot: runtime snapshot generation
2020-02-25 12:51:08 +02:00
Péter Szilágyi
542df8898e
core: initial version of state snapshots
2020-02-25 12:51:04 +02:00
Boqin Qin
2a5ed1a1d3
eth/downloader: fix possible data race by inconsistent field protection ( #20690 )
2020-02-25 11:44:21 +02:00
Péter Szilágyi
c6be24c731
eth/fetcher: remove randomness from test data
2020-02-24 14:59:02 +02:00
Boqin Qin
1b9c5b393b
all: fix goroutine leaks in unit tests by adding 1-elem channel buffer ( #20666 )
...
This fixes a bunch of cases where a timeout in the test would leak
a goroutine.
2020-02-17 17:33:11 +01:00
Péter Szilágyi
36a1e0b67d
eth: don't enforce minimum broadcast, fix broadcast test
2020-02-17 12:01:03 +02:00
Felix Lange
38d1b0cba2
cmd/geth: enable DNS discovery by default ( #20660 )
...
* node: expose config in service context
* eth: integrate p2p/dnsdisc
* cmd/geth: add some DNS flags
* eth: remove DNS URLs
* cmd/utils: configure DNS names for testnets
* params: update DNS URLs
* cmd/geth: configure mainnet DNS
* cmd/utils: rename DNS flag and fix flag processing
* cmd/utils: remove debug print
* node: fix test
2020-02-13 15:38:30 +02:00
Péter Szilágyi
9938d954c8
eth: rework tx fetcher to use O(1) ops + manage network requests
2020-02-13 15:27:15 +02:00
rjl493456442
049e17116e
core, eth: implement eth/65 transaction fetcher
2020-02-11 13:56:36 +02:00
tintin
33791dbeb5
tracers: avoid panic on invalid arguments ( #20612 )
...
* add regression tests for #20611
* eth/tracers: fix panics occurring for invalid params in js-tracers
Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-02-04 09:55:07 +01:00
Guillaume Ballet
8a5c81349e
eth: fix comment typo in handler.go ( #20575 )
2020-01-23 16:08:06 +01:00
Martin Holst Swende
f20c8d495a
eth: increase timeout to fix a spurious travis test failure ( #20560 )
2020-01-15 15:30:50 +01:00