Commit graph

13167 commits

Author SHA1 Message Date
Jaynti Kanani
056aebd376
fix go mod for make all 2020-03-19 15:17:48 +05:30
Jaynti Kanani
9e2f108071
Merge pull request #31 from maticnetwork/abi-fix
fix abigen to create pure/view methods
2020-03-19 14:26:29 +05:30
Jaynti Kanani
474824841f
Merge pull request #32 from maticnetwork/docker-fix
fix docker files to use bor instead of geth
2020-03-19 14:25:58 +05:30
Jaynti Kanani
0e4aa14eaa
fix docker file 2020-03-19 14:23:11 +05:30
Jaynti Kanani
4e6427d076
fix abigen to create pure/view methods 2020-03-19 14:20:02 +05:30
Jaynti Kanani
175f236016
remove env.sh 2020-03-19 14:18:51 +05:30
Péter Szilágyi
0e6ea9199c
Merge pull request #20781 from karalabe/fix-clique-console-apis
internal/web3ext: fix clique console apis to work on missing arguments
2020-03-19 10:06:44 +02:00
Péter Szilágyi
36e93d2dd8
Merge pull request #20779 from meowsbits/patch-3
core/rawdb: fix freezer table test error check
2020-03-18 16:30:58 +02:00
Péter Szilágyi
e6ca1958d3
internal/web3ext: fix clique console apis to work on missing arguments 2020-03-18 15:23:16 +02:00
Péter Szilágyi
4655b60999
Merge pull request #20780 from karalabe/fix-eth-mine-sync-race
eth: when triggering a sync, check the head header TD, not block
2020-03-18 15:08:06 +02:00
Péter Szilágyi
dc6e98d2a8
eth: when triggering a sync, check the head header TD, not block 2020-03-18 14:33:06 +02:00
gary rong
6283391c99
core/rawdb: improve table database (#20703)
This PR fixes issues in TableDatabase.

TableDatabase is a wrapper of underlying ethdb.Database with an additional prefix.
The prefix is applied to all entries it maintains. However when we try to retrieve entries
from it we don't handle the key properly. In theory the prefix should be truncated and
only user key is returned. But we don't do it in some cases, e.g. the iterator and batch
replayer created from it. So this PR is the fix to these issues.
2020-03-18 13:15:49 +01:00
meowsbits
20a092fb9f
core/rawdb: fix freezer table test error check
Fixes: Condition is always 'false' because 'err' is always 'nil'
2020-03-18 06:55:30 -05:00
Alex Willmer
5dd0cd12ec
go.mod: update duktape to fix sprintf warnings (#20777)
This revision of go-duktype fixes the following warning

```
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
  184 |  sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
      |                                                                ^
In file included from /usr/include/stdio.h:867,
                 from duk_logging.c:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 25 and 85 bytes into a destination of size 32
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2020-03-18 11:52:07 +02:00
Arpit Agarwal
c69ad1342b
Merge pull request #24 from maticnetwork/dev-test-commit-span
MAT-869: Allow commitSpan/State actions if they are underpriced + Test commit span
2020-03-18 14:58:21 +05:30
atvanguard
bd95198168 Remove Test section from README 2020-03-18 14:56:30 +05:30
atvanguard
de889c13ed Add testify/mock modules and Add make test to circle config 2020-03-18 14:55:00 +05:30
atvanguard
d56c75d90a Test isValidatorAction after span changes 2020-03-18 14:48:57 +05:30
atvanguard
2ea69833dd Cleanup debug statements 2020-03-18 14:48:57 +05:30
atvanguard
e6de60b80e TestCommitSpan finally works 2020-03-18 14:48:57 +05:30
atvanguard
2d0b9ea63d try to use same statedb 2020-03-18 14:48:57 +05:30
atvanguard
9dd4e4b0f9 Refactor HeimdallClient + commitSpan test 🚧 2020-03-18 14:48:57 +05:30
atvanguard
57ccdb5482 Revert unintended changes 2020-03-18 14:48:57 +05:30
atvanguard
f7e58d6030 Test for IsValidatorAction 2020-03-18 14:48:57 +05:30
atvanguard
1d5b263362 WIP 2020-03-18 14:48:57 +05:30
atvanguard
a3e01638a4 Test isValidatorAction 🚧 2020-03-18 14:48:57 +05:30
atvanguard
27fc66ef24 Add bor.isValidatorAction and call it while validating underpriced tx 2020-03-18 14:48:57 +05:30
gary rong
efd92d81a9
cmd/checkpoint-admin: add some documentation (#20697) 2020-03-18 10:18:14 +01:00
Arpit Agarwal
e189cb8215
Switch to using go modules (#28)
* Delete vendor/ and switch to using go modules

* Add circleci config
2020-03-18 14:45:20 +05:30
Péter Szilágyi
8d7aa9078f
params: begin v1.9.13 release cycle 2020-03-16 13:44:58 +02:00
Péter Szilágyi
b6f1c8dcc0
params: release Geth v1.9.12 2020-03-16 13:39:04 +02:00
winsvega
97243f3a76
geth retesteth: increase retesteth default http timeouts (#20767) 2020-03-16 10:33:32 +01:00
Péter Szilágyi
241b283690
Merge pull request #20747 from karalabe/update-crypto-deps
go.mod: update golang.org/x/crypto to fix a Go 1.14 race rejection
2020-03-14 14:23:58 +02:00
Péter Szilágyi
466b009135
go.mod: update golang.org/x/crypto to fix a Go 1.14 race rejection 2020-03-14 14:09:31 +02:00
Péter Szilágyi
68b4b74682
Merge pull request #20762 from karalabe/fix-txprop-leak
eth: fix transaction announce/broadcast goroutine leak
2020-03-14 13:52:46 +02:00
Péter Szilágyi
270fbfba4b
eth: fix transaction announce/broadcast goroutine leak 2020-03-13 23:47:15 +02:00
gary rong
92f3405dae
eth, les: fix time sensitive unit tests (#20741) 2020-03-12 11:25:52 +01:00
Felix Lange
b1efff659e
rpc: improve cancel test (#20752)
This is supposed to fix the occasional failures in 
TestCancel* on Travis CI.
2020-03-12 11:24:36 +01:00
meowsbits
0bdb21f0cb
tests: update tests/testdata@develop, include EIP2384 config (#20746)
Includes difficulty tests for EIP2384 aka MuirGlacier.
2020-03-10 10:55:27 +01:00
Jaynti Kanani
e3f1e51ae6
Merge pull request #23 from maticnetwork/dev-fix-log
Remove unwanted log
2020-03-06 16:04:45 +05:30
atvanguard
5f96b06add Send key while logging error msg 2020-03-06 16:00:04 +05:30
atvanguard
15b162b450 Remove unwanted log 2020-03-06 15:28:13 +05:30
Péter Szilágyi
fab0ee3bfa
core/state/snapshot: fix various iteration issues due to destruct set 2020-03-04 15:06:04 +02:00
Martin Holst Swende
bc5d742c66
core: more blockchain tests 2020-03-04 14:39:27 +02:00
Martin Holst Swende
eff7cfbb03
core/state/snapshot: handle deleted accounts in fast iterator 2020-03-04 14:38:55 +02:00
Péter Szilágyi
328de180a7
core/state: fix resurrection state clearing and access 2020-03-04 10:22:48 +02:00
Péter Szilágyi
dcb22a9f99
core/state: fix account root hash update point 2020-03-03 16:55:06 +02:00
Péter Szilágyi
a4cf279494
core/state: extend snapshotter to handle account resurrections 2020-03-03 15:52:00 +02:00
Péter Szilágyi
6e05ccd845
core/state/snapshot, tests: sync snap gen + snaps in consensus tests 2020-03-03 09:17:13 +02:00
Ali Atiia
556888c4a9
core/vm: fix method doc (#20730)
typo in func name in the comment
2020-03-02 19:20:27 +02:00