MaxMustermann2
2bd16b8df6
remove default timeouts
2 years ago
MaxMustermann2
bc3aec4ef6
rpc: add configurable http and `eth_call` timeout
2 years ago
frozen
a240abb119
Small fixes.
2 years ago
MaxMustermann2
832d09d9b5
remove default timeouts
2 years ago
MaxMustermann2
a6b3f890e4
rpc: add configurable http and `eth_call` timeout
2 years ago
frozen
ff490bed5b
Small fixes.
2 years ago
Max
4bea48fe10
[rpc] imitate eth_syncing behaviour ( #4345 )
2 years ago
Casey Gardiner
7ab8be3377
Release Candidate: dev -> main ( #4319 )
...
* Rebase dev branch to current main branch (#4318 )
* add openssl compatibility on m2 chips using darwin (#4302 )
Adds support for OpenSSL on MacOS Ventura using m2 chips.
* [dumpdb] ensure each cross link is dumped (#4311 )
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests (#4315 )
* Removed legacy syncing peer provider. (#4260 )
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
* Remove blockchain dependency from engine. (#4310 )
* Consensus doesn't require anymore `Node` as a circular dependency.
* Rebased upon main.
* Removed engine beacon chain dependency.
* Fixed nil error.
* Fixed error.
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests
* fix format, remove wrongly added configs
* add back wrongly deleted comment
* fix travis go checker
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests (#4315 )
* Removed legacy syncing peer provider. (#4260 )
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
* Remove blockchain dependency from engine. (#4310 )
* Consensus doesn't require anymore `Node` as a circular dependency.
* Rebased upon main.
* Removed engine beacon chain dependency.
* Fixed nil error.
* Fixed error.
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests
* fix format, remove wrongly added configs
* add back wrongly deleted comment
* fix travis go checker
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Fix for consensus stuck. (#4307 )
* Added check for block validity.
* Starts new view change if block invalid.
* Revert "Starts new view change if block invalid."
This reverts commit e889fa5da2e0780f087ab7dae5106b96287706db.
* staged dns sync v1.0 (#4316 )
* staged dns sync v1.0
* enabled stream downloader for localnet
* fix code review issues
* remove extra lock
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* add description for closing client and change randomize process to ma… (#4276 )
* add description for closing client and change randomize process to make sure only online nodes are added to sync config
* fix sync test
* fix legacy limitNumPeers test
* add WaitForEachPeerToConnect to node configs to make parallel peer connection optional
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Small fixes and code cleanup for network stack. (#4320 )
* staged dns sync v1.0
* enabled stream downloader for localnet
* fix code review issues
* remove extra lock
* staged dns sync v1.0
* Fixed, code clean up and other.
* Fixed, code clean up and other.
* Fixed, code clean up and other.
* Fix config.
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Fix not disable cache in archival mode (#4322 )
* Feature registry (#4324 )
* Registry for services.
* Test.
* Reverted comment.
* Fix.
* Slash fix (#4284 )
* Implementation of new slashing rate calculation
* Write tests for then new slashing rate calculation
* Add engine.applySlashing tests
* fix #4059
Co-authored-by: Alex Brezas <abresas@gmail.com>
Co-authored-by: Dimitris Lamprinos <pkakelas@gmail.com>
* Bump github.com/aws/aws-sdk-go from 1.30.1 to 1.33.0 (#4325 ) (#4328 )
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.30.1 to 1.33.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.30.1...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump github.com/btcsuite/btcd from 0.21.0-beta to 0.23.2 (#4327 ) (#4329 )
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.21.0-beta to 0.23.2.
- [Release notes](https://github.com/btcsuite/btcd/releases )
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES )
- [Commits](https://github.com/btcsuite/btcd/compare/v0.21.0-beta...v0.23.2 )
---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Max <82761650+MaxMustermann2@users.noreply.github.com>
Co-authored-by: Gheis <36589218+GheisMohammadi@users.noreply.github.com>
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
Co-authored-by: Danny Willis <102543677+dannyposi@users.noreply.github.com>
Co-authored-by: PeekPI <894646171@QQ.COM>
Co-authored-by: Alex Brezas <abresas@gmail.com>
Co-authored-by: Dimitris Lamprinos <pkakelas@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Gheis
8d3be78cc7
bump libp2p to version 0.24.0 and update its dependencies and relevant tests ( #4315 )
...
* Removed legacy syncing peer provider. (#4260 )
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
* Remove blockchain dependency from engine. (#4310 )
* Consensus doesn't require anymore `Node` as a circular dependency.
* Rebased upon main.
* Removed engine beacon chain dependency.
* Fixed nil error.
* Fixed error.
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests
* fix format, remove wrongly added configs
* add back wrongly deleted comment
* fix travis go checker
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
2 years ago
Max
b11800fe3f
[rpc] query node for syncing calls ( #4309 )
...
* [rpc] query node for syncing calls
Resolves #3966
* fix(downloader): do not underflow
2 years ago
Max
d216a51fa6
[rpc] fix: cascade send raw tx error ( #4281 )
...
Temporary patch to be reverted later once error checking is prioritized
on Elastic RPC level
2 years ago
Diego Nava
0425c7c1df
Fix/filter new tikv ( #4275 )
...
* fix: elastic rpc new filters fix
* fix: add a small delay to give readers time to catch up
* fix: run the subscribe in a go routine
* fix: generate the filter id before
* fix: rpl not able to marshal negative big int
* fix: use json to get the message
2 years ago
Max
c022075771
[rpc] add GetValidatorsStakeByBlockNumber ( #4254 )
...
GetValidatorsStakeByBlockNumber calculates each validator's total
delegation at the specified block.
2 years ago
lutty
720f9a6a02
tested tikv code
2 years ago
Konstantin
1445223b5a
Increase suggested gas and reduce block gas limit ( #4222 )
...
* lower gas limit to 30M
* increase suggested gas to 70 percentile and increase max suggested gas to 1000
* Fix race error.
* Increase price limit to 100e9.
* Set 95 percentile.
* Fix rpc response.
* [test] adjust funds for new higher gas price
* [rosetta] use new gas price
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
Co-authored-by: Konstantin <k.potapov@softpro.com>
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
MaxMustermann2
51435046ad
[rpc] fix: catch ErrAddressNotPresent old block
...
The validator list is not per block, while the information being sought
is. Therefore, do not return error if validator address is not present
in state.
Fixes #4202
2 years ago
peekpi
a650164a44
use 'latest' instead of 'pending' as default block
2 years ago
lutty
8e93ea6389
fix log range limit
3 years ago
Gheis
021c4db669
fix config migration issue for newly added rpc filter options ( #4183 )
...
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
PeekPI
2367a0da23
align eip-1898: support block number or hash on state-related methods ( #4181 )
...
* align eip-1898: support block number or hash on state-related methods
* fix compatibility of BlockNumberOrHash
* fix unit test
3 years ago
peekpi
1a3018db1b
return error if call is reverted by EVM
3 years ago
Gheis
ea96987816
Feature/rpc filter ( #4173 )
...
* fix unexpected chain id (https://github.com/harmony-one/harmony/issues/4129 )
* update epoch numbers for ChainId fix
* updated ChainID Epoch for test net
* align comment with other comments
* fix the build using goimports
* added flags to enable/disable rpc for staking and eth
* add feature to be able to feed custom configuration for each single node in testnet
* add method filter
* add rpc method filters file and one new flag for legacy APIs
* fixed tests and improved method filter and added more tests
* fix format and removed extra comments
* fix method_filter comments
* remove extra debug print
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
Konstantin
c733c8395b
Fix comment.
3 years ago
Konstantin
3c8286279d
Fix getAllValidatorInformation.
3 years ago
Konstantin
23d38db744
Remove GetAllDelegationInformation possibility to send all data at once without pagination.
3 years ago
peekpi
a9072795fe
[tracer] fix txhash,blockhash of trace result
3 years ago
Konstantin
97eb8d972f
Go vet fixed.
3 years ago
bbist
18c97e7e40
Make rpc/v1 StakingTxReceipt type field ethereum compatible ( #4111 )
...
* rpc metric identifier for getBlockReceipts
* made rpc response types compatible with ethereum
* implement hmyv2_getBlockReceipts RPC API
* Revert "made rpc response types compatible with ethereum"
This reverts commit 6182c62f45
.
* encode rpc/v1 receipt type field ethereum compatible
3 years ago
Nita Neou
4e290d026f
[rpc] enable publicDebugAPI with config flag
3 years ago
bbist
00cf1003d5
bbist/hmyv2_getBlockReceipts ( #4077 )
...
* rpc metric identifier for getBlockReceipts
* made rpc response types compatible with ethereum
* implement hmyv2_getBlockReceipts RPC API
* Revert "made rpc response types compatible with ethereum"
This reverts commit 6182c62f45
.
3 years ago
peekpi
680f262558
[tracer] fix txhash,blockhash of trace result
3 years ago
Alex Chen
e768dfc57e
[rpc] make PRCs metrics cover all RPCs
3 years ago
sghim
ac770108ac
Fix data type for miner ( #4053 )
3 years ago
Ganesha Upadhyaya
e79a05eeab
add rpc for exposing raw block header information
3 years ago
Leo Chen
a5727c064d
Revert "add GetHeaderByNumberRLPHex and GetProof to rpc ( #3951 )"
...
This reverts commit ede115d81d
.
3 years ago
zhiqiangxu
ede115d81d
add GetHeaderByNumberRLPHex and GetProof to rpc ( #3951 )
...
* add GetHeaderByNumberRLPHex
* mod comment
* fix compile
* fix
* add space
* add GetProof
3 years ago
Rongjian Lan
31a3e129a4
update min gas to 30 gwei
3 years ago
Rongjian Lan
4e0d3ee593
update min gas price to 50gwei
3 years ago
Rongjian Lan
4324729c60
bump min gas price to 100 gwei
3 years ago
Jacky Wang
af5eaa8d0a
[RPC] Replace go-ethereum/rpc module with harmony/eth/rpc ( #3983 )
...
* [rpc] fix some test cases
* fix test cases
* [rpc] use harmony/eth/rpc for customized changes
* [RPC] replace one more use of RPC at accounts module
* [RPC] fix test cases
3 years ago
Rongjian Lan
83402fa3c4
relax rate limit timeout and limit on evm call
3 years ago
Jacky Wang
aa7ebc1f5d
[rpc] replace go-ethereum/ethereum/rpc with harmony-one/harmony/eth/rpc ( #3947 )
...
* [rpc] fix some test cases
* [rpc] last rpc test case fix
* fix test cases
3 years ago
Rongjian Lan
5ac1f4c684
Fix rate limit metrics; add rate limit on Call method
3 years ago
Jacky Wang
d7af5ee9e0
[SYNC] refactor and make sync status check interval smaller ( #3918 )
...
* [sync] further refactor the underlying code of sync rpc, make the sync status update every 6 seconds
* [SYNC] recover some unexpected comment change because of refactoring
* [rpc] add some tolerance of 10 to inSync and beaconInSync
* fix typo
* [sync] better name
* fix the data race under intensive sync status call
* [sync] fix the intensive call with double lock. Fix bug of dead lock
* remove one test message
3 years ago
Rongjian Lan
d0e2e7a302
fix test
3 years ago
Rongjian Lan
c9462c9a0f
reduce limit on rpc
3 years ago
Rongjian Lan
1ad108dc68
add rate limit on more rpcs
3 years ago
Rongjian Lan
326a00b935
fix build ( #3968 )
3 years ago
Rongjian Lan
6210e22b3d
update min gas to 30 gwei
3 years ago
zhiqiangxu
5cfd1d549d
add GetHeaderByNumberRLPHex and GetProof to rpc ( #3951 )
...
* add GetHeaderByNumberRLPHex
* mod comment
* fix compile
* fix
* add space
* add GetProof
3 years ago