Péter Szilágyi
b1b75f0089
accounts/keystore, cmd/faucet: return old account to allow unlock
2020-06-04 10:57:21 +03:00
atvanguard
12ec1419cb
test: ♻️ segregate unit and e2e tests
2020-06-04 12:43:08 +05:30
Péter Szilágyi
201e345c65
Merge pull request #21172 from karalabe/faucet-twitter-mobile
...
acounts/keystore, cmd/faucet: fix faucet double import, fix twitter url
2020-06-04 09:30:40 +03:00
Péter Szilágyi
469b8739eb
acounts/keystore, cmd/faucet: fix faucet double import, fix twitter url
2020-06-04 08:59:26 +03:00
Hao Duan
8523ad450d
core: filter out txs with invalid signatures as soon as possible
...
Once we detect an invalid transaction during recovering signatures, we should
directly exclude this transaction to avoid validating the signatures hereafter.
This should optimize the validations times of transactions with invalid signatures
to only one time.
2020-06-04 10:37:21 +08:00
Péter Szilágyi
8b83125739
Merge pull request #21162 from karalabe/daofork-order-check-fix
...
cmd/geth: fix the fork orders for DAO tests
2020-06-03 12:20:57 +03:00
Péter Szilágyi
f52ff0f1e9
cmd/geth: fix the fork orders for DAO tests
2020-06-03 12:17:54 +03:00
Martin Holst Swende
890757f03a
cmd, core, params: inital support for yolo-v1 testnet ( #21154 )
...
* core,params,puppeth: inital support for yolo-v1 testnet
* cmd/geth, core: add yolov1 console flag
* cmd, core, params: YoloV1 bakein fixups
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-06-03 12:05:15 +03:00
kilic
4fc678542d
core/vm, crypto/bls12381, params: add bls12-381 elliptic curve precompiles ( #21018 )
...
* crypto: add bls12-381 elliptic curve wrapper
* params: add bls12-381 precompile gas parameters
* core/vm: add bls12-381 precompiles
* core/vm: add bls12-381 precompile tests
* go.mod, go.sum: use latest bls12381 lib
* core/vm: move point encode/decode functions to base library
* crypto/bls12381: introduce bls12-381 library init function
* crypto/bls12381: import bls12381 elliptic curve implementation
* go.mod, go.sum: remove bls12-381 library
* remove unsued frobenious coeffs
supress warning for inp that used in asm
* add mappings tests for zero inputs
fix swu g2 minus z inverse constant
* crypto/bls12381: fix typo
* crypto/bls12381: better comments for bls12381 constants
* crypto/bls12381: swu, use single conditional for e2
* crypto/bls12381: utils, delete empty line
* crypto/bls12381: utils, use FromHex for string to big
* crypto/bls12381: g1, g2, strict length check for FromBytes
* crypto/bls12381: field_element, comparision changes
* crypto/bls12381: change swu, isogeny constants with hex values
* core/vm: fix point multiplication comments
* core/vm: fix multiexp gas calculation and lookup for g1 and g2
* core/vm: simpler imput length check for multiexp and pairing precompiles
* core/vm: rm empty multiexp result declarations
* crypto/bls12381: remove modulus type definition
* crypto/bls12381: use proper init function
* crypto/bls12381: get rid of new lines at fatal desciprtions
* crypto/bls12-381: fix no-adx assembly multiplication
* crypto/bls12-381: remove old config function
* crypto/bls12381: update multiplication backend
this commit changes mul backend to 6limb eip1962 backend
mul assign operations are dropped
* core/vm/contracts_tests: externalize test vectors for precompiles
* core/vm/contracts_test: externalize failure-cases for precompiles
* core/vm: linting
* go.mod: tiny up sum file
* core/vm: fix goimports linter issues
* crypto/bls12381: build tags for plain ASM or ADX implementation
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-06-03 09:44:32 +03:00
chenglin
3f649d4852
core: collect NewTxsEvent items without holding reorg lock ( #21145 )
2020-06-02 18:52:20 +02:00
Guillaume Ballet
5f6f5e345e
console: handle undefined + null in console funcs ( #21160 )
2020-06-02 18:06:22 +02:00
Felix Lange
d98c42c0e3
rpc: send websocket ping when connection is idle ( #21142 )
...
* rpc: send websocket ping when connection is idle
* rpc: use non-blocking send for websocket pingReset
2020-06-02 15:04:44 +03:00
Felix Lange
723bd8c17f
p2p/discover: move discv4 encoding to new 'v4wire' package ( #21147 )
...
This moves all v4 protocol definitions to a new package, p2p/discover/v4wire.
The new package will be used for low-level protocol tests.
2020-06-02 13:20:19 +02:00
Greg Colvin
cd57d5cd38
core/vm: EIP-2315, JUMPSUB for the EVM ( #20619 )
...
* core/vm: implement EIP 2315, subroutines for the EVM
* core/vm: eip 2315 - lintfix + check jump dest validity + check ret stack size constraints
logger: markdown-friendly traces, validate jumpdest, more testcase, correct opcodes
* core/vm: update subroutines acc to eip: disallow walk-into
* core/vm/eips: gas cost changes for subroutines
* core/vm: update opcodes for EIP-2315
* core/vm: define RETURNSUB as a 'jumping' operation + review concerns
Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-06-02 13:30:16 +03:00
rene
a35382de94
metrics: replace gosigar with gopsutil ( #21041 )
...
* replace gosigar with gopsutil
* removed check for whether GOOS is openbsd
* removed accidental import of runtime
* potential fix for difference in units between gosig and gopsutil
* fixed lint error
* remove multiplication factor
* uses cpu.ClocksPerSec as the multiplication factor
* changed dependency from shirou to renaynay (#20 )
* updated dep
* switching back from using renaynay fork to using upstream as PRs were merged on upstream
* removed empty line
* optimized imports
* tidied go mod
2020-06-02 12:08:33 +03:00
Martin Holst Swende
a5eee8d1dc
eth/downloader: more context in errors ( #21067 )
...
This PR makes use of go 1.13 error handling, wrapping errors and using
errors.Is to check a wrapped root-cause. It also removes the travis
builders for go 1.11 and go 1.12.
2020-05-29 11:12:43 +02:00
Jaynti Kanani
187fc06fb5
Merge branch 'develop'
2020-05-28 14:15:42 +05:30
Jaynti Kanani
14eaf75f6a
Merge pull request #71 from maticnetwork/sentry-binary
...
new: add options to setup different node types
2020-05-28 14:13:58 +05:30
Jaynti Kanani
a418e6a6c0
chg: change gas target
2020-05-28 13:39:22 +05:30
Jaynti Kanani
55d85bd716
chg: make bootnode command available in linux package
2020-05-28 13:18:28 +05:30
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