Commit graph

13356 commits

Author SHA1 Message Date
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
Jaynti Kanani
c5a015a8a4 fix: make data fetch more robust 2020-05-18 11:02:43 +05:30
atvanguard
8dea9114e8 dev: update changes in StateReceiver contract 2020-05-17 17:44:44 +05:30
atvanguard
9a56de6d84 dev: cleanup isValidatorAction logic 2020-05-17 17:33:59 +05:30
atvanguard
4be5477f64 dev: cleanup comments 2020-05-17 17:28:55 +05:30
atvanguard
868dc81c8a new: New fetch State sync logic 2020-05-17 17:24:09 +05:30
Jaynti Kanani
9ad02c9a57
fix: heimdall url flag 2020-05-15 23:09:44 +05:30
dependabot[bot]
0f9e189a25 Bump https-proxy-agent from 2.2.1 to 2.2.4 in /dashboard/assets
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-05-14 22:52:14 +05:30
Felix Lange
3666da8a4b
console: fix unlockAccount argument count check (#21081) 2020-05-14 14:12:52 +03:00
atvanguard
71c3bf757c refactor: Tests + add test for OutOfTurnSign 2020-05-14 16:28:45 +05:30
atvanguard
c27b8b7801 new: Add wiggle to block time 2020-05-14 16:28:45 +05:30
Jaynti Kanani
4f850edec2
Merge pull request #58 from maticnetwork/bor-params
Change tx pool params and gaslimit
2020-05-14 13:13:19 +05:30
Jaynti Kanani
a2983189a9
chg: change tx pool params and gaslimit 2020-05-14 13:10:39 +05:30
Jaynti Kanani
f76491d53b
new: add new flags for bor service file 2020-05-14 12:03:33 +05:30
Marius van der Wijden
f3f1e59eea
accounts/abi: simplify reflection logic (#21058)
* accounts/abi: simplified reflection logic

* accounts/abi: simplified reflection logic

* accounts/abi: removed unpack

* accounts/abi: removed comments

* accounts/abi: removed uneccessary complications

* accounts/abi: minor changes in error messages

* accounts/abi: removed unnused code

* accounts/abi: fixed indexed argument unpacking

* accounts/abi: removed superfluous test cases

This commit removes two test cases. The first one is trivially invalid as we have the same
test cases as passing in packing_test.go L375. The second one passes now,
because we don't need the mapArgNamesToStructFields in unpack_atomic anymore.
Checking for purely underscored arg names generally should not be something we do
as the abi/contract is generally out of the control of the user.

* accounts/abi: removed comments, debug println

* accounts/abi: added commented out code

* accounts/abi: addressed comments

* accounts/abi: remove unnecessary dst.CanSet check

* accounts/abi: added dst.CanSet checks
2020-05-13 17:50:18 +02:00
Satpal
677724af0c
cmd: fix log contexts (#21077) 2020-05-13 18:34:24 +03:00
atvanguard
9f6df9ade0 dev: Remove concurrent seal check 2020-05-13 20:11:13 +05:30
Péter Szilágyi
46698d7931
params: begin v1.9.15 release cycle 2020-05-13 12:33:58 +03:00
Péter Szilágyi
6d74d1e5f7
params: release go-ethereum v1.9.14 2020-05-13 12:31:35 +03:00
Hao Duan
a188a1e150
ethstats: stop report ticker in each loop cycle #21070 (#21071)
Co-authored-by: Hao Duan <duan.hao@hyperchain.cn>
2020-05-13 12:06:19 +03:00
Arpit Agarwal
0f8d3b1006
fix: Check validator bytes at first block of sprint (MAT-1311) (#56)
* Check validator bytes at first block of sprint

* not required to get parent again

* fix tests

* fix build error
2020-05-13 14:08:21 +05:30
gary rong
d02301f758
core: fix missing receipt on Clique crashes (#21045)
* core: fix missing receipt

* core: address comment
2020-05-13 11:33:48 +03:00
Marius van der Wijden
0b63915430
accounts/abi: allow overloaded argument names (#21060)
* accounts/abi: allow overloaded argument names

In solidity it is possible to create the following contract:
```
contract Overloader {
    struct F { uint _f; uint __f; uint f; }
    function f(F memory f) public {}
}
```
This however resulted in a panic in the abi package.

* accounts/abi fixed error handling
2020-05-12 13:02:23 +02:00
Marius van der Wijden
b8ea9042e5
accounts/abi: accounts/abi/bind: Move topics to abi package (#21057)
* accounts/abi/bind: added test cases for waitDeployed

* accounts/abi/bind: added test case for boundContract

* accounts/abi/bind: removed unnecessary resolve methods

* accounts/abi: moved topics from /bind to /abi

* accounts/abi/bind: cleaned up format... functions

* accounts/abi: improved log message

* accounts/abi: added type tests

* accounts/abi/bind: remove superfluous template methods
2020-05-12 12:21:40 +02:00
gary rong
7b7e5921a4
miner: support disabling empty blockprecommits form the Go API (#20736)
* cmd, miner: add noempty-precommit flag

* cmd, miner: get rid of external flag

* miner: change bool to atomic int

* miner: fix tiny typo

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-12 13:11:34 +03:00
ucwong
7540c53e72
core/rawdb: remove unused math (#21065) 2020-05-12 12:19:15 +03:00
ucwong
aaede53738
core/rawdb : log format fix for Unindexing transaction (#21064)
* core/rawdb : log format fix for Unindexing transaction

* core/rawdb: tiny fixup

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-12 11:46:35 +03:00
gary rong
53cac027d0
les: drop the message if the entire p2p connection is stuck (#21033)
* les: drop the message if the entire p2p connection is stuck

* les: fix lint
2020-05-12 11:02:15 +03:00
Martin Holst Swende
7ace5a3a8b
core: fixup blockchain tests (#21062)
core: fixup blockchain tests
2020-05-12 08:46:10 +03:00
Péter Szilágyi
40859a2441
Merge pull request #21061 from karalabe/cht-1.9.14
params: bump CHTs for the v1.9.14 release
2020-05-11 19:05:47 +03:00
Martin Holst Swende
4535230059
cmd, core, eth: background transaction indexing (#20302)
* cmd, core, eth: init tx lookup in background

* core/rawdb: tiny log fixes to make it clearer what's happening

* core, eth: fix rebase errors

* core/rawdb: make reindexing less generic, but more optimal

* rlp: implement rlp list iterator

* core/rawdb: new implementation of tx indexing/unindex using generic tx iterator and hashing rlp-data

* core/rawdb, cmd/utils: fix review concerns

* cmd/utils: fix merge issue

* core/rawdb: add some log formatting polishes

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2020-05-11 18:58:43 +03:00