Commit Graph

13751 Commits

Author SHA1 Message Date
Roshan
109a8e73f7
upgrade: update system contracts' code of testnet (#1328) 2023-03-01 20:17:18 +08:00
kyrie-yl
c8a1535c74
parlia: miner changes for BEP-188 of Early Broadcast (#1269) 2023-03-01 16:57:42 +08:00
Leon
2a76eb498d
consensus: fix slash bug when validator set changing (#1162) 2023-03-01 16:47:38 +08:00
yutianwu
d065c4859e
feats: add ics23 proof support for cross chain packages (#1149) 2023-03-01 15:49:05 +08:00
kyrie-yl
f5cb1378da
parlia: consensus changes according to BEP of Early Broadcast (#1268) 2023-02-28 19:53:17 +08:00
can
13fdb9b365
tracer: port call tracer withLog to bsc (#1261) 2023-02-28 11:16:17 +08:00
blxdyx
217e474cc6
cmd/utils/flags.go: --diffsync flag is deprecate. (#1322) 2023-02-28 09:47:51 +08:00
dylanhuang
6587671e74
fix: Dockerfile (#1312) v1.1.19 2023-02-13 14:13:00 +08:00
dylanhuang
5d696b940a
Merge pull request #1311 from bnb-chain/develop
release: draft release v1.1.19
2023-02-13 13:51:52 +08:00
dylanhuang
175db6b8d4
Merge pull request #1310 from j75689/p_v1.1.19
release: prepare for release v1.1.19
2023-02-13 11:40:48 +08:00
j75689
eafd33c387 fix: conflict with master branch 2023-02-13 10:49:07 +08:00
j75689
8192eafbf6 release: prepare for release v1.1.19 2023-02-13 10:38:13 +08:00
setunapo
b3a20c7611
fix: p2p sync with lagging peer (#1301)
* fix: p2p sync with lagging peer

no need to sync with lagging peer, which could make the local chain stalling as well.

* fix: do not drop lagging peer, will retry it later.

The lagging peer is probably already the best peer with largest total difficulty.
Shoule not remove it, since p2p is a bidirectional connection, drop it could make
the peer unable to sync with this peer as well.
And the lagging peer could catch up later, so keep it.

* p2p: add lagging field in Peer

lagging peer will be connected, but won't be used to sync.
the lagging flag can be clear once the Peer updates its latest block state.

* test: fix UT compile issue

* fix: lagging peer func rename

* test: fix a UT fail of download test

errStallingPeer is replaced by errLaggingPeer in this case

* fix: lagging issue in light mode

* test: add and resolve UT of lagging peer
2023-02-09 22:01:44 +08:00
GalaIO
e4575c52a9 eth/fetcher: fix re-queue failed issue; 2023-02-08 11:41:49 +08:00
dylanhuang
c9bd677b91
dep: update tendermint to v0.31.14 (#1298) 2023-02-03 17:38:20 +08:00
Andre Schreder
ad81821ad9
docker: update bind-tools version (#1271) 2023-02-03 15:53:57 +08:00
dylanhuang
e2e1147a41
mointor: implement double sign monitor (#1199) 2023-02-03 15:53:36 +08:00
Eric
7674814036
parlia : add a check for the length of extraData. (#1294)
* parlia : add a check for the length of extraData.
2023-02-02 19:48:47 +08:00
dylanhuang
bf68be2bd9
dep: bump the version of several important library (#1274)
* dep: upgrade secp256k1 to use btcec/v2 v2.3.2 and update insecurity pkg

* build ci: upgrade go to 1.19 and golangci-lint to 1.50.1

* docs: fix format that does not follow the goimports

* dep: redirect github.com/bnb-chain/tendermint to v0.31.13

* ci: disable GOPROXY
2023-02-02 19:36:37 +08:00
j75689
176ab95ee5 ci: disable CGO_ENABLED when building binary 2023-02-02 14:10:02 +08:00
Ng Wei Han
0f744c7f73
docs: minor fix on geth links (#1287) 2023-02-01 11:34:16 +08:00
zjubfd
d22153b9da
docs: minor fix about the readme (#1267) 2023-01-06 10:51:57 +08:00
zjubfd
b34453e3eb
docs: update the readme (#1266) 2023-01-05 18:41:46 +08:00
j75689
8362242de6 build: fix windows compilation failure 2022-12-22 20:09:47 +08:00
j75689
b37d44b289 ci: update unmaintained tools to use maintained tools 2022-12-22 20:09:47 +08:00
joeycli
30369897f2 fix comments: prune ancient compatibility, add prune ancient comments 2022-12-22 20:07:55 +08:00
WayToFuture
154f339ce3
comments: add comments to clarify flags and byte codes (#1245) 2022-12-22 12:39:36 +08:00
Seungbae Yu
e9a04cca30 core: preallocate batch size in bloomIndexer (#25289)
This change reduces allocations when committing bloombits indexes
by creating the database batch with a larger initial size.
2022-12-16 17:30:34 +08:00
rjl493456442
da977e9cdc core, ethdb, tests, trie: implement NewBatchWithSize API for batcher (#24392)
This PR adds an addtional API called `NewBatchWithSize` for db
batcher. It turns out that leveldb batch memory allocation is
super inefficient. The main reason is the allocation step of
leveldb Batch is too small when the batch size is large. It can
take a few second to build a leveldb batch with 100MB size.

Luckily, leveldb also offers another API called MakeBatch which can
pre-allocate the memory area. So if the approximate size of batch is
known in advance, this API can be used in this case.

It's needed in new state scheme PR which needs to commit a batch of
trie nodes in a single batch. Implement the feature in a seperate PR.
2022-12-16 17:30:34 +08:00
dylanhuang
cc17abfa17
metrics: add miner info into metrics server (#1212)
* metrics: add unlock address to metrics when miner module is enabled

* metrics: add miner config into metrics server

* metrics: add device-info into metrics server

* metrics: fix the format of device info

* metrics: remove device-info
2022-12-16 07:59:16 +08:00
kyrie-yl
c5b7d747f7
eth, trie: sync with upstream v1.10.26 to solve snap sync issues (#1226)
* eth: fix a rare datarace on CHT challenge reply / shutdown

* trie: check childrens' existence concurrently for snap heal

* eth/protocols/snap: fix problems due to idle-but-busy peers

* eth/filters: change filter block to be by-ref (#26054)

This PR changes the block field in the filter to be a pointer, to disambiguate between empty hash and no hash

* rpc: handle wrong HTTP batch response length (#26064)

* eth/protocols/snap: throttle trie heal requests when peers DoS us (#25666)

* eth/protocols/snap: throttle trie heal requests when peers DoS us

* eth/protocols/snap: lower heal throttle log to debug

Co-authored-by: Martin Holst Swende <martin@swende.se>

* eth/protocols/snap: fix comment

Co-authored-by: Martin Holst Swende <martin@swende.se>

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Jordan Krage <jmank88@gmail.com>
2022-12-13 17:16:14 +08:00
Eric
b4773e8b50
doc: update README (#1234) 2022-12-08 14:20:39 +08:00
setunapo
8894b65590
doc: update readme (#1233) 2022-12-07 14:59:37 +08:00
zjubfd
cb9e50bdf6
Merge pull request #1223 from bnb-chain/develop
hotfix: fix the incorrect format of prometheus label
v1.1.18_hf
2022-12-01 17:12:31 +08:00
zjubfd
cd0d177f57
Merge pull request #1222 from j75689/fix/build-info
metrics: fix the label format of prometheus server
2022-12-01 17:07:09 +08:00
j75689
ecc12f6493 metrics: fix the label format of prometheus server 2022-12-01 16:54:10 +08:00
nathanhopp
b6b274eba2
metrics fix: edit mutate key to replace - with _ (#1217) 2022-12-01 10:13:50 +08:00
zjubfd
03ff2992ab
Merge pull request #1211 from bnb-chain/develop
release: draft release v1.1.18
v1.1.18
2022-11-29 15:46:26 +08:00
zjubfd
d3873f4ccf
Merge pull request #1210 from guagualvcha/p_1.1.18
release: prepare for v1.1.18 release.
2022-11-29 15:07:01 +08:00
zjubfd
02f7ad74c6 release: prepare for release v1.1.18 2022-11-29 13:39:08 +08:00
dylanhuang
ef16f9efdb
Merge pull request #1209 from j75689/metrics/build-info
metrics: add build info into metrics server
2022-11-29 10:32:21 +08:00
j75689
fe5682c4e0 ci: fix build cmd of arm binary 2022-11-28 22:42:30 +08:00
j75689
d1c9262b12 ci: add git info to cross-compile 2022-11-28 22:42:30 +08:00
j75689
9023e42d0a metrics: add build info into metrics server 2022-11-28 22:42:30 +08:00
j75689
d77ebb8511 metrics: add label type in metrics package 2022-11-28 22:42:30 +08:00
setunapo
807d52e557 worker: some Subscribe NewTxsEvent changes of miner worker
1.remove the unnecessary NewTxsEvent subscriber, which was used for PoW resubmit check.
2.unsubscribe ASAP before another fillTransactions, to avoid block others.
2022-11-28 13:21:14 +08:00
setunapo
58644491ad worker: reused triePrefetch when multi-fillTransactions to mine a block.
avoid too much trie prefetch routines when several fillTransactions are called.
2022-11-28 13:21:14 +08:00
Larry
d87d697d92
worker: add double sign check for safety. (#1201)
* worker: add double sign check for safety.

And for corner cases, such as reorg after reorg...
use slice to record all broadcast blocks's parents to avoid overwritten.
2022-11-24 15:22:37 +08:00
Roshan
90a414ab7c
Merge pull request #1195 from Pythonberg1997/cross_stake
update Gibbs fork height and system contract code
2022-11-22 16:29:03 +08:00
Roshan
db4cb1df26 upgrade: update Gibbs fork height and system contract code 2022-11-21 19:42:35 +08:00