Daniel Liu
e18553b855
all: implement eip-1559 ( #22837 )
2024-11-01 11:36:52 +08:00
liam.icheng.lai
59a7eb1f9f
resolve conflict from master
2024-10-30 16:47:26 -07:00
Daniel Liu
dd6822bc3c
internal/ethapi, contracts/trc21issuer: fix staticcheck warning SA1012: pass nil Context
2024-10-25 18:29:08 +08:00
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
Liam Lai
22fc7d0710
fix conflict
2024-10-16 22:42:53 -07:00
benjamin202410
eb6d53adf6
Fix getCandidateStatus API ( #663 )
...
* Fix getCandidateStatus API
* sync vote message and fix test
* update function name
---------
Co-authored-by: Liam Lai <liam@home>
2024-10-09 22:05:14 -07:00
Daniel Liu
edace6ac6c
all: change format 0x%x to %#x ( #25221 )
2024-09-27 15:24:31 +08:00
JukLee0ira
925c20061d
internal/ethapi: support both input and data for personal_sendTransaction ( #23476 )
2024-08-21 15:15:53 +08:00
JukLee0ira
138ac7c967
internal/ethapi: merge CallArgs and SendTxArgs ( #22718 )
2024-08-21 15:15:53 +08:00
Daniel Liu
45e57e41b4
internal/ethapi: refactor func ToMessage for CallArgs
2024-08-21 15:15:53 +08: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
bea4431f6f
eth/filters: avoid block body retrieval when no matching logs ( #25199 )
2024-08-03 10:03:22 +08:00
JukLee0ira
ad71d706fb
all: add global block logs cache ( #25459 )
2024-08-03 10:03:22 +08:00
JukLee0ira
0c9f2fcceb
eth/filters: fix pending for getLogs ( #24949 )
2024-08-03 10:03:22 +08:00
JukLee0ira
83782e5368
eth/filters: remove use of event.TypeMux for pending logs ( #20312 )
2024-08-03 10:03:22 +08:00
Daniel Liu
4976b7cbb3
Fix some panic cuased by nil block, statedb, header ( #578 )
...
* fix panic during rollback
* eth/hooks: check nil stateDB to fix issue #271
* internal/ethapi: fix eth_call crash
* all: check nil statedb
* eth: check nil block for tracer api
* internal/ethapi: check nil header and block
2024-08-02 17:05:53 -07:00
Daniel Liu
824c531324
make MasternodeVotingSMC tx never timeout ( #598 )
2024-08-02 16:20:24 -07:00
Daniel Liu
a0081d998b
make MasternodeVotingSMC tx never timeout ( #595 )
2024-08-02 16:19:22 -07:00
Liam
4b35f33559
Fix crash during reorg for v2.0.0 ( #590 ) ( #593 )
...
* params: fix usage of IsXDCxDisable
* internal/ethapi: fix nil block in function DoCall during reorg
Co-authored-by: Daniel Liu <139250065@qq.com>
2024-07-29 07:19:19 -07:00
Daniel Liu
438341c2ea
Fix crash during reorg for v2.0.0 ( #590 )
...
* params: fix usage of IsXDCxDisable
* internal/ethapi: fix nil block in function DoCall during reorg
2024-07-27 07:16:26 -07:00
Daniel Liu
341ca00b16
internal/ethapi: cap txfee for SignTransaction and Resend ( #21231 )
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
JukLee0ira
2d89951e5b
all: use errrors.New instead of empty fmt.Errorf
2024-06-14 19:19:21 +08:00
JukLee0ira
0aab4ced98
common: add binary variables for system contract
2024-06-06 19:33:59 +08:00
wgr523
65d7e6a060
Merge pull request #548 from XinFinOrg/trie-proof
...
GetTransactionAndReceiptProof API
2024-05-22 15:17:35 +08:00
Gerui Wang
2d70c0c3a1
GetTransactionAndReceiptProof API
...
web3ext.go
2024-05-21 23:06:25 +08:00
JukLee0ira
c928c79d95
ethapi: implement eth_getBlockReceipts ( #27702 )
2024-05-21 18:03:15 +08:00
Gary
0245344338
add TraceCall, backend.StateAtBlock(), RPCGasCap
...
update gen_config.go by tool `gencodec`
2024-05-17 21:34:34 +08:00
Daniel Liu
7a95b4f907
core, eth, internal/ethapi: create access list RPC API ( #22550 )
2024-05-14 23:27:23 +08:00
Daniel Liu
01e1728a94
all: add support for EIP-2718, EIP-2930 transactions ( #21502 )
2024-05-14 23:15:35 +08:00
Daniel Liu
48f9bbed50
core: types: less allocations when hashing and tx handling ( #21265 )
2024-05-13 22:07:03 +08:00
Gerui Wang
0f96fc89aa
feat: extend eth_estimateGas api with state override
2024-05-01 16:27:11 +08:00
Wang Gerui
4178a97560
feat: extend eth_call api with state override;
...
extend statedb and state_object with necessary code
2024-04-30 15:57:42 +08:00
Daniel Liu
9de40946cf
rename function doCall and doEstimateGas
2024-04-07 11:07:40 +08:00
Daniel Liu
1c9f1d8279
all: change TxPreEvent to TxsPreEvent ( #16720 )
2024-03-28 11:16:21 +08:00
Daniel Liu
4616d59935
internal/ethapi: support block number or hash on state-related methods ( #19491 )
...
* Support for EIP-1898.
2024-03-12 10:40:03 +08:00
Daniel Liu
ece58f00b5
ethapi: add method eth_getAccountInfo
2024-03-06 14:11:15 +08:00
Daniel Liu
fa36b1ce66
internal/ethapi: early exit for plain transfer
2024-02-18 11:59:40 +08:00
Daniel Liu
d84e0b5ad2
internal/ethapi: estimate tx gas for EOA and arbitrary data ( #340 )
2024-02-18 11:59:40 +08:00
Liam
47bfdf7635
Move masternode in v2 config ( #372 )
...
* move masternode in v2 config
* update number to meet 7 vote for current setup
* add test
* update all failed test
* fix test
* remove comment
* remove comment
* fix test
2023-11-29 11:11:58 +11:00
Liam
ac404683b3
Merge pull request #365 from XinFinOrg/bump-go-v2
...
Bump go v1.21
2023-11-21 23:44:14 +11:00
Liam Lai
824d7b232f
resolve conflict
2023-11-20 23:53:49 +11:00
Daniel Liu
ce091e7b9c
internal/ethapi: EstimateGas support parameter blockTag ( #326 )
2023-11-16 10:24:42 +08:00
Liam
84994df759
Merge pull request #351 from XinFinOrg/bump-golang-1.21
...
Bump golang 1.21
2023-11-07 10:35:42 +11:00
Banana-J
39f6e6ee56
upgrade the websocket in xdpos ( #349 )
2023-11-06 15:37:14 +11:00
Daniel Liu
f32c66ebc1
check slashed status in GetCandidateStatus
2023-10-24 12:27:06 +08:00
Daniel Liu
e17a0869e5
check masternode before candidate in GetCandidateStatus
2023-10-24 12:27:06 +08:00
Daniel Liu
745e097040
sort candidates in function GetCandidateStatus
2023-10-24 12:27:06 +08:00
Daniel Liu
8ed9a754b2
return more slashed nodes in GetCandidates
2023-10-24 12:27:06 +08:00
Daniel Liu
6e7d7f5002
return non-candidate masternode in GetCandidates
2023-10-24 12:27:06 +08:00
Daniel Liu
5d24dfdf7e
not sort candidates in getCandidatesFromSmartContract
2023-10-24 12:27:06 +08:00
Daniel Liu
7dc5ffe45a
fix topCandidates in function GetCandidates
2023-10-24 12:27:06 +08:00
Daniel Liu
3214bbeeba
sort candidates in function GetCandidates
2023-10-24 12:27:06 +08:00
Daniel Liu
ebf1002c67
fix function GetPreviousCheckpointFromEpoch
2023-10-24 12:27:06 +08:00
Daniel Liu
fbb8c54d86
remove 0x0000000000000000000000000000000000000000
2023-10-24 12:24:34 +08:00
Daniel Liu
e2359d9b8c
filter zero address in function GetCandidates
2023-10-24 12:15:24 +08:00
Daniel Liu
320b358830
replace package sort with common/sort
2023-10-23 22:51:06 +08:00
Daniel Liu
148e2f1699
add parameter number for function NewMessage
2023-10-16 11:24:47 +08:00
Liam
938db0afcc
Bug Fix: V2 getSigner API ( #313 )
2023-08-20 10:56:08 +10:00
Liam Lai
5623ce8de0
merge from master
2023-07-30 16:50:45 +10:00
Liam
7b657f0c4e
API: getMasternode and getPoolStatus ( #258 )
...
* API: getMasternode and getPoolStatus
* fix test
2023-05-01 23:01:39 +10:00
Daniel Liu
3c21125da5
fix EmptyAddress
2023-03-16 11:47:39 +08:00
Daniel Liu
42379f530f
internal/ethapi: EstimateGas and Call handle revert error( #173 ) ( #200 )
...
hot fix for EstimateGas and Call handle revert error https://github.com/XinFinOrg/XDPoSChain/issues/173
2022-10-27 17:25:25 +08:00
Jerome
38c3582841
Add v2 yourturn ( #38 )
...
* Add v2 yourturn
* add isEpochSwitchByRound into YourTurn
Co-authored-by: Gerui Wang <wgr523@gmail.com>
2022-01-16 19:18:01 +11:00
Jerome
f8d3f9f8c6
Xin 113 is epoch switch ( #37 )
...
* add isEpochSwitch function and refactor utils
* fix broken first v2 epoch switch block
* use adaptor epoch switch function to determine v1 v2 epoch swtich block
* add test for the GetMasternodesByNumber and GetCurrentEpochSwitchBlock function
* add v2 test for isAuthroisedAddress
* Use GetCurrentEpochSwitchBlock in findNearestSignedBlock api
2022-01-14 21:38:38 +11:00
Jianrong
0aec2a1e9e
Seperate hooks from XDPoS adaptor
2021-10-10 16:02:19 +11:00
Jianrong
fcbc5a28e1
refactor XDPoS to accommodate multiple consensus engine versions
2021-10-10 16:02:16 +11:00
olumuyiwadad
cf18ceba33
Merge branch 'forking-incident-fix' of https://github.com/hash-laboratories-au/XDPoSChain into hash-laboratories-au-forking-incident-fix
2021-09-23 17:01:19 +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
7b7e34ae00
Fix XDC forking incident with tests
2021-08-29 14:20:01 +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
Sinh Vu
3180921a7f
upgrade increase masternodes
2019-07-23 17:25:55 +07:00
parmarrushabh
3e5f4d54a8
Hot_Fix Bad block Error
2019-04-25 12:11:30 +05:30
Martin Holst Swende
e872ba7a9e
eth, les, geth: implement cli-configurable global gas cap for RPC calls ( #19401 )
...
* eth, les, geth: implement cli-configurable global gas cap for RPC calls
* graphql, ethapi: place gas cap in DoCall
* ethapi: reformat log message
2019-04-08 15:15:13 +03:00
Martin Holst Swende
af401d03a3
all: simplify timestamps to uint64 ( #19372 )
...
* all: simplify timestamps to uint64
* tests: update definitions
* clef, faucet, mobile: leftover uint64 fixups
* ethash: fix tests
* graphql: update schema for timestamp
* ethash: remove unused variable
2019-04-08 12:00:42 +03:00
parmarrushabh
2fa93cdbf2
Fixed randomize for mi and m2
2019-03-25 12:31:54 +05:30
parmarrushabh
85db85cc20
fix eth.getCandidateStatus api
2019-03-25 11:18:54 +05:30
AnilChinchawale
22732d57fb
Minor Changes added
2019-03-12 15:57:12 +05:30
parmarrushabh
147e1f0baf
create new func penalties for hard fork
2019-02-19 17:25:31 +05:30
parmarrushabh
a479343cc7
Implement api eth.getCandidateStatus
2019-02-14 14:59:37 +05:30
AnilChinchawale
c6bbf5a712
api updated
2019-01-24 04:43:45 +05:30
Yondon Fu
e05d468075
internal/ethapi: ask transaction pool for pending nonce ( #15794 )
2019-01-07 10:47:11 +02:00
parmarrushabh
7833a10c16
remove run evm with signing tracsaction
2018-12-28 12:33:35 +05:30
parmarrushabh
973f9d1271
Fixed minor bug for get signers from penalties header.
2018-12-28 12:21:37 +05:30
parmarrushabh
9250beba44
getBlockSigners-getBlockFinality: refactoring after code review
2018-12-24 11:47:18 +05:30
parmarrushabh
ef99b540a4
adding 2 new apis: eth.getBlockSigners and eth.getBlockFinality
2018-12-21 11:30:33 +05:30
Paweł Bylica
de39513ced
core, internal, eth, miner, les: Take VM config from BlockChain ( #17955 )
...
Until this commit, when sending an RPC request that called `NewEVM`, a blank `vm.Config`
would be taken so as to set some options, based on the default configuration. If some extra
configuration switches were passed to the blockchain, those would be ignored.
This PR adds a function to get the config from the blockchain, and this is what is now used
for RPC calls.
Some subsequent changes need to be made, see https://github.com/ethereum/go-ethereum/pull/17955#pullrequestreview-182237244
for the details of the discussion.
2018-12-06 14:34:49 +01:00
parmarrushabh
95041650e8
reduce number sign transaction
2018-12-04 10:24:07 +05:30
AnilChinchawale
1ff0fd2cff
refactor cache BlockSigners
2018-12-02 14:52:54 +05:30
AnilChinchawale
da52e3163e
get blocksigner from cached
2018-11-27 18:20:25 +05:30
parmarrushabh
c2414371ca
fix error read reward
2018-11-24 17:40:36 +05:30
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +05:30
parmarrushabh
51c88fe8ce
create new api get reward
2018-11-19 11:21:42 +05:30
AnilChinchawale
f0cf0a9f15
Add annouce-txs, maxpeers 25
2018-11-17 14:18:01 +05:30
Kenso Trabing
14346e4ef9
internal: fix typo in comments ( #18106 )
...
Changed "signTransactions" to "signTransaction"
2018-11-15 11:11:14 +02:00
parmarrushabh
4ab15c94d3
fix maximum 100 % finality
2018-11-09 18:10:38 +05:30
MestryOmkar
07b4be1284
Add new block header validator for store m2 data.
2018-11-09 16:11:13 +05:30
parmarrushabh
9d6344fbb4
Broadcast special Tx through pairRW
2018-11-09 12:45:18 +05:30