Jaynti Kanani
ae82c4cd37
fix polluted path and check data length for validation action
2020-03-25 18:41:16 +05:30
Martin Holst Swende
39f502329f
internal/ethapi: don't set sender-balance to maxuint, fixes #16999 ( #20783 )
...
Prior to this change, eth_call changed the balance of the sender account in the
EVM environment to 2^256 wei to cover the gas cost of the call execution.
We've had this behavior for a long time even though it's super confusing.
This commit sets the default call gasprice to zero instead of updating the balance,
which is better because it makes eth_call semantics less surprising. Removing
the built-in balance assignment also makes balance overrides work as expected.
2020-03-23 18:21:23 +01:00
Martin Holst Swende
0734c4b820
node, cmd/clef: report actual port used for http rpc ( #20789 )
2020-03-23 16:26:56 +01:00
meowsbits
a75c0610b7
core/blockchain: simplify atomic store after writeBlockWithState ( #20798 )
...
Signed-off-by: meows <b5c6@protonmail.com>
2020-03-23 15:05:15 +01:00
Péter Szilágyi
613af7ceea
Merge pull request #20152 from karalabe/snapshot-5
...
Dynamic state snapshots
2020-03-23 12:57:31 +02:00
Martin Holst Swende
074efe6c8d
core: fix two snapshot iterator flaws, decollide snap storage prefix
...
* core/state/snapshot/iterator: fix two disk iterator flaws
* core/rawdb: change SnapshotStoragePrefix to avoid prefix collision with preimagePrefix
2020-03-23 12:34:27 +02:00
meowsbits
93ffb85b3d
rpc: dont log an error if user configures --rpcapi=rpc... ( #20776 )
...
This just prevents a false negative ERROR warning when, for some unknown
reason, a user attempts to turn on the module rpc even though it's already going
to be on.
2020-03-21 15:28:27 +01:00
Jaynti Kanani
5c4cee9cd8
Merge pull request #36 from maticnetwork/linux-packages
...
Github workflow for linux packages
2020-03-21 19:30:39 +05:30
Jaynti Kanani
dc14f5407d
github workflow for linux packages
2020-03-21 18:11:49 +05:30
Jaynti Kanani
6cc8e625a4
Merge pull request #33 from maticnetwork/fix-build
...
Fix go mod for make all
2020-03-20 20:04:51 +05:30
Jaynti Kanani
e577b684e3
Merge branch 'develop' into fix-build
2020-03-20 20:02:34 +05:30
Jaynti Kanani
8a4e1fb64b
remove unnecessary flag
2020-03-20 19:59:10 +05:30
Jaynti Kanani
fef4f7d52d
fix ci.go
2020-03-20 19:49:16 +05:30
Jaynti Kanani
e69fe6743f
fix test
2020-03-20 19:12:16 +05:30
Jaynti Kanani
1a360aeb9e
fix build once and for all + go mod tidy
2020-03-20 19:09:19 +05:30
Jaynti Kanani
d526099133
Merge branch 'fix-make' into fix-build
2020-03-20 18:49:31 +05:30
Jaynti Kanani
1fd47e6173
Merge pull request #34 from maticnetwork/patch/bor_dockerpuds_ci
...
added github actions workflow for BOR docker push
2020-03-20 16:39:57 +05:30
ramakrishna183
8ee0480294
added github actions workflow for BOR docker push
2020-03-20 16:00:53 +05:30
Guillaume Ballet
e943f07a85
whisper/whisperv6: delete failing tests ( #20788 )
...
These tests occasionally fail on Travis.
2020-03-20 09:37:53 +01:00
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