Péter Szilágyi
39e9d8f94d
common/prque: generic priority queue ( #26290 )
2024-12-28 09:06:31 +08:00
Daniel Liu
89c51c5e69
common: improve documentation comments ( #16701 )
2024-12-28 09:06:30 +08:00
Daniel Liu
6beee27886
metrics, cmd/XDC: change init-process of metrics ( #30814 )
...
This PR modifies how the metrics library handles `Enabled`: previously,
the package `init` decided whether to serve real metrics or just
dummy-types.
This has several drawbacks:
- During pkg init, we need to determine whether metrics are enabled or
not. So we first hacked in a check if certain geth-specific
commandline-flags were enabled. Then we added a similar check for
geth-env-vars. Then we almost added a very elaborate check for
toml-config-file, plus toml parsing.
- Using "real" types and dummy types interchangeably means that
everything is hidden behind interfaces. This has a performance penalty,
and also it just adds a lot of code.
This PR removes the interface stuff, uses concrete types, and allows for
the setting of Enabled to happen later. It is still assumed that
`metrics.Enable()` is invoked early on.
The somewhat 'heavy' operations, such as ticking meters and exp-decay,
now checks the enable-flag to prevent resource leak.
The change may be large, but it's mostly pretty trivial, and from the
last time I gutted the metrics, I ensured that we have fairly good test
coverage.
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-12-13 14:00:14 +08:00
Daniel Liu
92fc843683
crypto: switch over to upstream sha3 package ( #18390 )
2024-12-09 17:48:59 +08:00
Daniel Liu
dbdca11501
accounts/abi/bind: fix bounded contracts and sim backend for 1559 ( #23038 )
2024-11-01 11:36:52 +08:00
Daniel Liu
af40f2e194
eth/downloader: fix staticcheck warning S1033: unnecessary guard for delete
2024-10-31 21:46:27 +08:00
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
wanwiset25
cb792ef34f
Revert EIP-2464
2024-08-24 02:31:27 +07:00
wanwiset25
4be4f2eeb1
fix tests
2024-06-28 18:35:47 +04:00
wanwiset25
b5c7bd5cba
enable bft and better protocol version check
2024-06-28 11:34:04 +04:00
wanwiset25
1b781530c6
add xdpos protocol test cases
2024-06-28 11:33:04 +04:00
Daniel Liu
76ab0b5115
eth/downloader: fix issue #277
2024-06-27 12:51:47 +08:00
Guillaume Ballet
b3e0f70a33
eth/downloader: minor typo fixes in comments ( #21035 )
2024-06-27 11:28:40 +08:00
Boqin Qin
0673fa1176
eth/downloader: fix possible data race by inconsistent field protection ( #20690 )
2024-06-27 11:23:49 +08:00
Daniel Liu
01e1728a94
all: add support for EIP-2718, EIP-2930 transactions ( #21502 )
2024-05-14 23:15:35 +08:00
Daniel Liu
ec50ca36d9
core, eth, trie: use common/prque ( #17508 )
2024-05-09 18:38:27 +08:00
Liam
c7a42fd7c9
resolve sync issue by passing right round number ( #384 )
2023-12-27 22:14:13 +11:00
Daniel Liu
bd3e2600fd
eth/downloader: make Broadcast run after Wait ( #264 )
2023-12-18 10:49:40 +08:00
Liam
75661b488b
add notification script ( #350 )
...
* add notification script
* skip always test
2023-11-06 20:54:16 +11:00
wgr523
8fde52c512
Xin 145 ( #82 )
...
* add HandleProposedBlock() in procFutureBlocks()
* add proposedBlockHandler for downloader
2022-04-22 00:12:44 +08:00
Liam
da336f53b1
xin-95 add xdpos2 protocol ( #47 )
...
* add xdpos2 protocol
* update xdpos2 command
2022-02-05 23:25:23 +03:00
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
0fdab2027c
add linting as the first CI task
2021-08-07 14:27:08 +10:00
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
parmarrushabh
3e5f4d54a8
Hot_Fix Bad block Error
2019-04-25 12:11:30 +05:30
Péter Szilágyi
d8787230fa
eth, les, light: enforce CHT checkpoints on fast-sync too
2019-04-17 14:56:58 +03:00
AnilChinchawale
00c46851a2
downloader error fix
2019-03-26 14:54:16 +05:30
parmarrushabh
b493f4b6ca
hot fix
2019-03-03 15:36:33 +05:30
AnilChinchawale
29cb1de084
backend added with latest code
2019-01-28 04:50:18 +05:30
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:26:07 +02:00
Wenbiao Zheng
81c3dc728f
eth/downloader: progress in stateSync not used anymore ( #17998 )
2018-12-21 23:36:14 +01:00
Martin Holst Swende
5f251a6448
downloader: fix edgecase where returned index is OOB for downloader ( #18335 )
...
* downloader: fix edgecase where returned index is OOB for downloader
* downloader: documentation
Co-Authored-By: holiman <martin@swende.se>
2018-12-20 10:46:08 +01:00
Péter Szilágyi
174083c3ae
eth/downloader: fix light client cht binary search issue
2018-11-28 13:46:13 +02:00
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +05:30
Rahulraj04
6c67be797b
update logging
2018-11-17 16:37:14 +05:30
Rahulraj04
9087c0852b
reduce timed out when sync block
2018-11-17 12:22:40 +05:30
Péter Szilágyi
accc0fab4f
core, eth/downloader: fix ancestor lookup for fast sync
2018-11-16 13:21:20 +02:00
Martin Holst Swende
51b2f1620c
downloader: different sync strategy
2018-11-16 11:54:36 +02:00
mr_franklin
b91766fe6d
eth: fix comment typo ( #18114 )
...
* consensus/clique: fix comment typo
* eth,eth/downloader: fix comment typo
2018-11-15 16:31:24 +02:00
parmarrushabh
abd494055b
fix err download block on masternode
2018-11-14 11:29:48 +05:30
parmarrushabh
3fc36efeb3
Fixed golint.
2018-11-09 10:49:11 +05:30
MestryOmkar
579adf1c8e
fix tiny error when full node import block
2018-11-09 17:23:18 +05:30
parmarrushabh
1396b1a10f
Fixed unit test for new m2 block header.
2018-11-09 16:29:54 +05:30
AnilChinchwale
8b92c4176c
move from SubscribeTx to Subscribe Special Tx in Double Validate
2018-11-09 15:00:22 +05:30
Felix Lange
0bcff8f525
eth/downloader: speed up tests by generating chain only once ( #17916 )
...
* core: speed up GenerateChain
Use a mock implementation of ChainReader instead of creating
and destroying a BlockChain object for each generated block.
* eth/downloader: speed up tests by generating chain only once
This change reworks the downloader tests so they share a common test
blockchain instead of generating a chain in every test. The tests are
roughly twice as fast now.
2018-11-07 15:07:43 +01:00
Wenbiao Zheng
b35165555d
eth/downloader: remove the expired id directly ( #17963 )
2018-11-07 15:30:19 +02:00
Martin Holst Swende
eea3ae42a3
core, eth/downloader: fix validation flaw, fix downloader printout flaw ( #17974 )
2018-11-07 14:47:11 +02:00
Martin Holst Swende
dc6648bb58
downloader: measure successfull deliveries, not failed ( #17983 )
...
* downloader: measure successfull deliveries, not failed
* downloader: fix typos
2018-11-07 14:18:07 +02:00