Commit graph

15236 commits

Author SHA1 Message Date
Jaynti Kanani
b2aca18608
fix: typo 2020-05-28 01:40:34 +05:30
Jaynti Kanani
1f6fd6de90
fix: make start.sh executable 2020-05-28 01:15:12 +05:30
Jaynti Kanani
c502bceb13
fix: typo 2020-05-28 00:31:05 +05:30
Jaynti Kanani
883aa5159f
fix: exec start command in bor service 2020-05-28 00:02:39 +05:30
Jaynti Kanani
48c93af208
fix: binary package for sentry node 2020-05-27 21:58:19 +05:30
gary rong
389da6aa48
trie: enforce monotonic range in prover and return end marker (#21130)
* trie: add hasRightElement indicator

* trie: ensure the range is monotonic increasing

* trie: address comment and fix lint

* trie: address comment

* trie: make linter happy

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-27 17:37:37 +03:00
sixdays
b2c59e297b
consensus/clique: make internal error private (#21132)
Co-authored-by: linjing <linjingjing@baidu.com>
2020-05-27 17:12:13 +03:00
Jaynti Kanani
555e67a551
Merge pull request #70 from maticnetwork/develop
Merge develop (Apr 20 - May 27) to master
2020-05-27 11:14:45 +05:30
Felix Lange
9219e0fba4
eth: interrupt chain insertion on shutdown (#21114)
This adds a new API method on core.BlockChain to allow interrupting
running data inserts, and calls the method before shutting down the
downloader.

The BlockChain interrupt checks are now done through a method instead
of inlining the atomic load everywhere. There is no loss of efficiency from
this and it makes the interrupt protocol a lot clearer because the check is
defined next to the method that sets the flag.
2020-05-26 21:37:37 +02:00
Felix Lange
4873a9d3c3
build: upgrade to golangci lint v1.27.0 (#21127)
* build: upgrade to golangci-lint v1.27.0

* build: raise lint timeout to 3 minutes
2020-05-26 14:24:22 +03:00
gary rong
070a5e1252
trie: fix for range proof (#21107)
* trie: fix for range proof

* trie: fix typo
2020-05-26 13:11:29 +03:00
Hao Duan
81e9caed7d
ethstats: avoid blocking chan when received invalid stats request (#21073)
* ethstats: avoid blocking chan when received invalid stats request

* ethstats: minor code polishes

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-26 13:09:00 +03:00
ucwong
7ddb40239b
ethdb/leveldb: use timer instead of time.After (#21066) 2020-05-26 11:03:37 +02:00
Richard Patel
2f66a8d614
metrics/prometheus: define TYPE once, add tests (#21068)
* metrics/prometheus: define type once for histograms

* metrics/prometheus: test collector
2020-05-26 12:00:09 +03:00
Felix Lange
dbf6b8a797
cmd/utils: fix default DNS discovery configuration (#21124) 2020-05-25 19:50:36 +02:00
meowsbits
befecc9fdf
consensus/ethash: fix flaky test by reading seal results (#21085) 2020-05-25 18:01:03 +02:00
Martin Holst Swende
e868adde30
core/vm: improve jumpdest lookup (#21123) 2020-05-25 16:12:48 +02:00
Anurag
42dc3f08da
Merge pull request #69 from maticnetwork/change-logs
chg: use default service logs instead of custom files
2020-05-25 17:40:52 +05:30
Jaynti Kanani
2cafa99b18
chg: use default service logs instead of custom files 2020-05-25 16:12:51 +05:30
yutianwu
25a661e0c2
consensus/clique: remove redundant pair of parentheses (#21104) 2020-05-25 12:00:18 +02:00
Martin Michlmayr
4f2784b38f
all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
ucwong
48e3b95e77
miner: replace use of 'self' as receiver name (#21113) 2020-05-25 10:20:09 +02:00
Jaynti Kanani
e5799ab1da
Merge pull request #68 from maticnetwork/jdkanani-patch-1
chg: change gas limit 20m for linux packages
2020-05-25 12:34:31 +05:30
Jaynti Kanani
1b50155c2a
chg: change gas limit 20m for linux packages 2020-05-25 12:27:09 +05:30
Felföldi Zsolt
b4a2681120
les, les/lespay: implement new server pool (#20758)
This PR reimplements the light client server pool. It is also a first step
to move certain logic into a new lespay package. This package will contain
the implementation of the lespay token sale functions, the token buying and
selling logic and other components related to peer selection/prioritization
and service quality evaluation. Over the long term this package will be
reusable for incentivizing future protocols.

Since the LES peer logic is now based on enode.Iterator, it can now use
DNS-based fallback discovery to find servers.

This document describes the function of the new components:
https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
2020-05-22 13:46:34 +02:00
gary rong
65ce550b37
trie: extend range proofs with non-existence (#21000)
* trie: implement range proof with non-existent edge proof

* trie: fix cornercase

* trie: consider empty range

* trie: add singleSide test

* trie: support all-elements range proof

* trie: fix typo

* trie: tiny typos and formulations

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-20 15:45:38 +03:00
Jaynti Kanani
7fd50a84e6
Merge pull request #66 from maticnetwork/mew-deposits
alter the fetch logic a bit
2020-05-20 16:30:29 +05:30
atvanguard
1651575805 remove page param 2020-05-20 14:15:41 +05:30
atvanguard
2675dc59e9 fetch state events with from_id/to_time 2020-05-20 13:43:40 +05:30
ucwong
0a99efa61f
whisper: use canonical import name of package go-ethereum (#21099) 2020-05-20 10:32:54 +03:00
atvanguard
2526aa8530 wip 2020-05-20 10:08:30 +05:30
atvanguard
200472dfdc update bytecode in genesis 2020-05-20 08:54:46 +05:30
atvanguard
3236e423d2 dont return a pointer from LastStateSyncTime 2020-05-19 21:42:32 +05:30
Arpit Agarwal
89248d7116
Update consensus/bor/bor.go
Co-authored-by: Jaynti Kanani <jdkanani@gmail.com>
2020-05-19 21:34:35 +05:30
atvanguard
742c2104af alter the fetch logic a bit 2020-05-19 21:16:37 +05:30
Jaynti Kanani
01c9c8b4e8
Merge pull request #64 from maticnetwork/mew-deposits
new: New fetch State sync logic
2020-05-19 18:23:08 +05:30
Boqin Qin
d5b7d1cc34
accounts: add blockByNumberNoLock() to avoid double-lock (#20983)
* abi/bind/backends: testcase for double-lock

* accounts: add blockByNumberNoLock to avoid double-lock

* backend/simulated: use stateroot, not blockhash for retrieveing state

Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-05-19 12:48:27 +02:00
Martin Holst Swende
e0987f67e0
cmd/clef, signer/core: password input fixes (#20960)
* cmd/clef, signer/core: use better terminal input for passwords, make it possible to avoid boot-up warning

* all: move commonly used prompter to isolated (small) package

* cmd/clef: Add new --acceptWarn to clef README

* cmd/clef: rename flag 'acceptWarn' to 'suppress-bootwarn'

Co-authored-by: ligi <ligi@ligi.de>
2020-05-19 10:44:46 +02:00
atvanguard
fa52ce61f7 sort state events acc to id 2020-05-19 12:05:29 +05:30
atvanguard
ba70b74fb7 fetch events from [lastSync, (block-sprint).Time) 2020-05-19 09:47:54 +05:30
atvanguard
0e8b5ca4b7 minor: separate path, query params with FetchWithRetry 2020-05-18 23:36:16 +05:30
atvanguard
e6c1cec452 merge develop 2020-05-18 19:37:42 +05:30
atvanguard
8f47b3945e test: Handle 204 and add test for new deposit mechanism 2020-05-18 19:26:42 +05:30
atvanguard
fa0266a347 merge develop into mew-deposits 2020-05-18 18:51:29 +05:30
Jaynti Kanani
cdf49567ee
Merge pull request #65 from maticnetwork/revert-active-seal
fix: revert cancel active seal / remove errRecentlySigned
2020-05-18 16:58:57 +05:30
atvanguard
1be0c4894a dev: provide previous block number to UnauthorizedSignerError 2020-05-18 14:17:13 +05:30
atvanguard
c7ea09a019 dev: Change wording for UnauthorizedSignerError, remove errRecentlySigned 2020-05-18 13:33:27 +05:30
atvanguard
767fe584b5 fix: revert cancel active seal logic 2020-05-18 12:37:20 +05:30
Jaynti Kanani
7ee88de5ab
Merge pull request #61 from maticnetwork/fix-heimdall-url
Use heimdall url flag while importing
2020-05-18 11:59:42 +05:30
atvanguard
bda638d974 Merge branch 'develop' into mew-deposits 2020-05-18 11:03:13 +05:30