Commit graph

160 commits

Author SHA1 Message Date
Daniel Liu
97a5ff616b rpc: Make HTTP server timeout values configurable (#17240) 2024-11-04 12:31:15 +08:00
Mr.P
22c54206bd
add flag rpc-gascap and set RPCGasCap to 50M (#664)
* add gas cap flag

* default gas cap to 50m

* rpc-gascap
2024-10-09 09:28:24 +08:00
Liam
e3df8e55a6
remove legacy testnet validate masternode logic (#603)
* remove legacy testnet validate masternode logic

* remove legacy testnet validate masternode logic

* remove legacy testnet validate masternode logic
2024-08-12 00:13:36 -07:00
wgr523
52077f18f3
support for golang tracers + add golang callTracer (#558)
* feat: rename Tracer interface to EVMLogger;
minor changes in API
refine api_tracer.go
refine Tracer interface

* fix: broken tracer tests

* feat: add BenchmarkTransactionTrace

* feat: tracer CaptureEnter CaptureExit in evm

* feat: upgrade js tracers with geth upstream

* chore: clean test

* feat: eth/tracers: support for golang tracers + add golang callTracer
cf. https://github.com/ethereum/go-ethereum/pull/23708

* chore: clean testdata json

* fix: change test due to IntrinsicGas is not upgraded

* feat: make native Tracer the default Tracer

* fix: update tracers.New in api

* fix: addr prefix in callTracer

* fix: remove `native` in BenchmarkTracers

* fix: return consensus error of InsufficientBalance for tx, instead of vmerr

* chore: drop js tracers: call and noop
2024-08-06 00:14:04 -07:00
JukLee0ira
ad71d706fb all: add global block logs cache (#25459) 2024-08-03 10:03:22 +08:00
Daniel Liu
b2c6191bea cmd/XDC: expose CacheFlag and CacheDatabaseFlag 2024-08-03 08:12:28 +08:00
Daniel Liu
020fac603c cmd/utils: allow file descriptor limit to be set via CLI (#24477) 2024-08-03 08:12:28 +08:00
Daniel Liu
f445196dcf eth/gasprice: add configurable threshold to gas price oracle (#22752) 2024-06-20 15:52:32 +08:00
Daniel Liu
1521b8a663 eth: move eth.Config to a common package (#22205) 2024-06-20 15:52:32 +08:00
Daniel Liu
2125a1afaa eth/gasprice: offer maxprice flag for overwritting price cap (#21531) 2024-06-20 15:52:32 +08:00
Daniel Liu
0063c14ed3 cmd, eth, internal, les: add gasprice cap (#21212) 2024-06-20 15:52:32 +08:00
Wanwiset Peerapatanapokin
328176651c
use 0x address scheme by default and add new enable xdc prefix flag (#518) 2024-04-12 12:27:39 +07:00
Wanwiset Peerapatanapokin
75c8d40399
Ensure DB is close before client exit (#478) 2024-03-08 14:57:15 +04:00
Wanwiset Peerapatanapokin
aaa246f60e
PDF-01 (#397)
* replace deprecated ioutil lib calls

* fix for FileInfo type required

* fix for ioutil.Discard

* fix .Discard

* fix for go-bindata generated files
2024-01-19 15:05:03 +04:00
Daniel Liu
6f06a5638b add flag rpcwritetimeout for rpc http server (#358) 2023-11-27 22:48:56 +08:00
Guillaume Ballet
6743853dca console, internal/jsre: use github.com/dop251/goja (#20470)
This replaces the JavaScript interpreter used by the console with goja,
which is actively maintained and a lot faster than otto. Clef still uses otto
and eth/tracers still uses duktape, so we are currently dependent on three
different JS interpreters. We're looking to replace the remaining uses of otto
soon though.
2023-11-02 00:43:55 +08:00
Daniel Liu
72c51e2bc9 set new MinGasPrice in function makeConfigNode 2023-10-16 11:24:47 +08:00
Liam Lai
69c38ac490 fix broken the tests and one bug 2023-08-02 09:27:46 +10:00
Liam Lai
5623ce8de0 merge from master 2023-07-30 16:50:45 +10:00
Anil Chinchawale
21ae43ac15
Merge pull request #198 from Carry-So/fix-test-error
cmd/XDC: remove redundant newline in bugcmd.go to pass make test
2023-05-27 13:35:19 +05:30
Daniel Liu
87455baf2e init genesis from source if flag --apothem 2023-04-20 16:52:35 +08:00
Daniel Liu
e00e34c79b remove duplicate common.TIPTRC21Fee assignment 2023-04-20 14:51:52 +08:00
Liam
c4f9a552e5
Multi config bug fix (#216)
* refactor multi config
remove pool cleaner
correct message and log level
2022-12-17 20:23:46 +08:00
Daniel Liu
6a768b04f9
add enable-0x-prefix flag (#194) 2022-12-09 19:15:13 +08:00
Liam
6ffbd3e141
Xin 259 support multi v2 config (#210)
* update timeout period and waittime

* remove wrong comment

* update config for preparing test
2022-12-06 20:08:56 +08:00
Daniel Liu
1b3386b60f cmd/XDC: remove redundant newline in bugcmd.go to pass make test 2022-10-18 15:44:02 +08:00
Liam
833f70bdb7
xin-203 fix wrong config hash and update v2 params on mainnet (#109)
* fix wrong config hash and update v2 params on mainnet

* update config and all the test

* hard code binary into code

* add default config for testing

* update test timestamp
2022-07-12 16:56:55 +02:00
Jerome
bcffe1ec16
Give the XDC option to use emit metrics (#89) 2022-06-19 13:42:48 +02:00
wgr523
8fde52c512
Xin 145 (#82)
* add HandleProposedBlock() in procFutureBlocks()

* add proposedBlockHandler for downloader
2022-04-22 00:12:44 +08:00
olumuyiwadad
2b326de485 fix C-[a-m] tests. 2021-09-27 16:50:45 +05:30
olumuyiwadad
c0677f03cb update test C-[a-m] tests. 2021-09-27 12:47:59 +05:30
olumuyiwadad
fb0e9fac89 fix test C-[a-m] tests. 2021-09-27 12:29:05 +05:30
olumuyiwadad
b5abbfed79 new EVM Upgrade
- Solidity Upgraded up to v0.8.0
-  Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891 FIx Bad block error. 2021-09-17 17:59:06 +05:30
Jianrong
0fdab2027c add linting as the first CI task 2021-08-07 14:27:08 +10:00
dev-vadim
dbe8c9d984 upgrade XDC.Network with v1.8.27. 2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036 upgrade codebase with ethereum:v1.8.13 2020-11-23 13:40:30 +05:30
AnilChinchawale
9b13f2279e Update command prompts 2019-03-16 16:13:35 +05:30
AnilChinchawale
a638d2adc0 Minor error fixed. 2019-03-16 16:02:10 +05:30
AnilChinchawale
7de9cee4fb Trezor data updated 2019-03-14 15:59:48 +05:30
AnilChinchawale
a4e35b0a22 Fixed issue | File Modified 2019-01-05 08:32:22 +05:30
AnilChinchawale
52567157ff Fixed issue main | File Modified 2019-01-03 08:31:36 +05:30
AnilChinchawale
15e76b17de Fixed issue Config & consolecmd | File Modified 2018-12-31 23:29:39 +05:30
AnilChinchawale
05a7433768 Fixed issue accountcmd & chaincmd | File Modified 2018-12-31 23:28:15 +05:30
parmarrushabh
68dbddadc0 Using gas from flag 2018-12-07 10:56:50 +05:30
AnilChinchawale
4a6e8c7f5d Won't grasp txs at checkpoint 2018-12-07 10:42:40 +05:30
parmarrushabh
51c88fe8ce create new api get reward 2018-11-19 11:21:42 +05:30
parmarrushabh
ece14048a5 fixed only three MNs making block when --XDC testnet flag enable 2018-11-17 17:10:09 +05:30
parmarrushabh
5501a5707c fixed 2018-11-17 16:15:25 +05:30
AnilChinchawale
f0cf0a9f15 Add annouce-txs, maxpeers 25 2018-11-17 14:18:01 +05:30
parmarrushabh
abd494055b fix err download block on masternode 2018-11-14 11:29:48 +05:30
MestryOmkar
4e1b835434 enable txPool flags 2018-11-12 15:09:35 +05:30
parmarrushabh
0c8315163b extend max peer per node to 200 2018-11-09 17:06:14 +05:30
parmarrushabh
1396b1a10f Fixed unit test for new m2 block header. 2018-11-09 16:29:54 +05:30
AnilChinchwale
551fd57271 Fixed unit test for penalty feature. 2018-11-07 10:46:09 +05:30
AnilChinchawale
deb79f4a23 push Randomization implementation 2018-11-06 17:27:13 +05:30
parmarrushabh
944494f6e4 Revert Randomization implementation 2018-11-06 16:16:29 +05:30
MestryOmkar
20c5123739 Fixed unit test for block randomize. 2018-11-05 11:45:14 +05:30
parmarrushabh
8f319018b3 adjust signed recently condition 2018-11-05 17:52:53 +05:30
parmarrushabh
1857fe3991 remove delay when mine new block 2018-11-03 17:12:18 +05:30
parmarrushabh
5afb844e0a fix option Verbosity in toml file 2018-11-02 12:51:24 +05:30
parmarrushabh
b969dc7790 add some config to toml file 2018-11-02 12:28:39 +05:30
AnilChinchawale
7e7bc37c20 convert update M1 method from async to sync 2018-11-02 12:14:43 +05:30
MestryOmkar
d277d0b444 fix unit tests 2018-11-02 11:45:07 +05:30
MestryOmkar
d281cfb854 remove bootnodes for ETH mainnet 2018-11-02 11:34:25 +05:30
parmarrushabh
b0e95fcc58 fix reduce change code 2018-10-31 11:14:32 +05:30
AnilChinchawale
9bc7680c02 remove rinkby and discovery in bootnode 2018-10-31 10:56:58 +05:30
AnilChinchawale
cb167f9180 move config bootnode to xdc toml file 2018-10-31 10:42:04 +05:30
AnilChinchawale
7597e6ca5e add option set account , password with flag 2018-10-31 10:34:22 +05:30
parmarrushabh
cb5a55a904 change config from flag to toml file; fix tag listenaddr 2018-10-31 10:30:25 +05:30
parmarrushabh
51ef74203a update return error when update M1 2018-10-31 18:58:34 +05:30
parmarrushabh
ce89b6b92d making XDPoS as a separate package 2018-10-28 11:58:50 +05:30
parmmarrushabh
dccf2ca3e9 Add signers and finality to block status rpc api. 2018-10-27 16:28:04 +05:30
MestryOmkar
3f716137db clean up a bit geth versioning 2018-10-24 14:11:41 +05:30
AnilChinchawale
77ac77cdb1 staking not mining 2018-10-21 16:42:10 +05:30
parmarrushabh
264a6dc9db Fixed calculate reward for holders. 2018-10-20 16:20:30 +05:30
AnilChinchawale
706b93b0db get rid of annoying msg if the node is still importing blocks only 2018-10-16 15:14:43 +05:30
MestryOmkar
ac0f04d7fc temporarily bypass 0x00 returned from smc 2018-10-12 14:21:09 +05:30
MestryOmkar
f814908442 get masternodes set from latest checkpoint block header instead of fr… … 2018-10-10 14:15:15 +05:30
parmarrushabh
cd59b922ed skip changes if no candidates found 2018-10-04 12:31:18 +05:30
MestryOmkar
ae9d4ec558 tiny lint thing 2018-10-02 12:27:36 +05:30
MestryOmkar
a7deff5891 minor log cleaning up 2018-10-02 12:23:02 +05:30
parmarrushabh
9f5cba7dc7 update new set of masternodes at end of each epoch (distance = m1Gap) 2018-09-30 12:00:33 +05:30
MestryOmkar
eb8922c652 staking instead of mining 2018-08-12 14:41:12 +05:30
MestryOmkar
b1abaff88e add validator voting smart contract 2018-08-02 12:22:27 +05:30
AnilChinchawale
8fd30116d5 updated main.go 2018-07-18 17:09:38 +05:30
AnilChinchawale
38975a48d4 FIX-IMPORT-CYCLE 2018-07-04 15:47:37 +05:30
AnilChinchawale
6e4c9d9387 added DYNAMIC-VALIDATOR 2018-06-24 14:29:24 +05:30
AnilChinchawale
2cde3e9fe8 added MINING PERMISSION EVERY EPOCH BLOCK +1 2018-06-22 14:14:13 +05:30
AnilChinchawale
2a089900f5 added MINER-VALIDATOR 2018-06-18 10:46:57 +05:30
AnilChinchawale
0cb82cf94f added CHAIN, HEADER PARAMS 2018-06-14 10:28:02 +05:30
AnilChinchawale
c095cc3e6f FIX TYPO 2018-05-28 16:17:11 +05:30
AnilChinchawale
88fe0a6d9d updated USAGE.GO 2018-05-24 15:48:47 +05:30
AnilChinchawale
9b96842bfe updated TESTDATA 2018-05-24 15:46:50 +05:30
AnilChinchawale
a686a3dc05 updated RUN_TEST.GO 2018-05-24 15:44:23 +05:30
AnilChinchawale
5e07884497 updated MONITORCMD.GO 2018-05-24 15:39:43 +05:30
AnilChinchawale
840fcb171c updated MISCCMD.GO 2018-05-24 15:35:58 +05:30
AnilChinchawale
875820f769 updated MAIN.GO 2018-05-24 15:32:23 +05:30
AnilChinchawale
deb0903922 updated GENESIS_TEST.GO 2018-05-24 15:28:59 +05:30
AnilChinchawale
bd58746a7e updated CONSOLECMD.GO 2018-05-24 15:21:10 +05:30