Konstantin
8ee11600ac
Feature registry ( #4324 )
...
* Registry for services.
* Test.
* Reverted comment.
* Fix.
2 years ago
Danny Willis
fde22107d1
Fix not disable cache in archival mode ( #4322 )
2 years ago
Gheis
0104b1d623
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”>
2 years ago
Gheis
54742e73e1
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”>
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
Casey Gardiner
eaf5d9c701
Rebase dev branch to current main branch ( #4318 )
2 years ago
Konstantin
1c443aee45
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.
2 years ago
Konstantin
8547c8c7b8
Removed legacy syncing peer provider. ( #4260 )
...
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
2 years ago
Konstantin
29bcc0c48b
Consensus accepts blockchain as a parameter. ( #4296 )
...
* Consensus doesn't require anymore `Node` as a circular dependency.
* Proper blockchain initialization.
* Removed double initialization.
2 years ago
Diego Nava
ab4159a1bc
fix: erpc raw transaction error handling ( #4287 )
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
205e641850
[node] fix: do not ignore tx when out of sync ( #4278 )
2 years ago
Max
2b897bc26d
[node] nitpick: move heartbeat validation logic ( #4246 )
2 years ago
Lutty
b2fa3d0e18
rebase
2 years ago
Lutty
601dc166fa
temp code to find and fix problems
2 years ago
lutty
5cd4e764dd
fix travis
...
fix travis
fix travis
fix travis
2 years ago
lutty
720f9a6a02
tested tikv code
2 years ago
Konstantin
0753c94c2b
Epoch syncing - syncing only epoch blocks. ( #4070 )
...
* Epoch syncing - syncing only epoch blocks.
* Fix go test, added command to run.
* Block signature validation.
* Support getting block by height.
* Fix to compile.
* Http method.
* Generate fix.
* Install protoc-gen-go-grpc.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Added limit to avoid abuse, small fixes.
* Fix duplicate code.
* Fix isInSyn.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Add logs.
* Fix msgf call.
* Epoch syncing - syncing only epoch blocks.
* Block signature validation.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Support getting block by height.
* Http method.
* Fix duplicate code.
* Fix isInSyn.
* Added limit to avoid abuse, small fixes.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Small fix.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Fix msgf call.
* Sending crosslinks from beacon to non-beacon chains.
* Receiving crosslinks.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink hardbeat signal receiving.
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Updated with last crosslink heart beat signal.
* Merged crosslink signal.
* Clean up code.
* Add logs for cl debug.
* Stop iterate on receiving result.
* Add logs.
* Fix in sync check.
* Fix reconnect problems.
* Fix tests and reduce dependency.
* Updated with main.
* Fix review comments.
* Changed to compare epochs.
* Fix crosslinks usage.
* Fix initialization.
* Epoch chain implementation.
* Legacy sync by default.
* Revert "Legacy sync by default."
This reverts commit 5fa6ce002a
.
* Epoch sync for downloader.
* Build docker image while tests.
* Fix paths.
* Updated travis.
* Review improvements.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Max
18ba697870
[pool] make GlobalSlots configurable ( #4236 )
2 years ago
PeekPI
7ae12b14b7
[txpool] fix #4215 , support allowed transaction list. ( #4218 )
...
* [txpool] fix #4215 , support allowed transaction list.
* test: fix node tests for allowlist of txs
* add error checking of tx.data
* recover test scripts
* config migration
* add tx.data to error info
* [pool] refactor: log more if `from` in denylist
* reject tx if it does not pass the allowed whiltelist check
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
Konstantin
4eabc120b1
Blockchain interface. ( #4214 )
...
* Blockchain interface.
* Fix comments, remove unused.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
7a8e5d468c
Feature 4160 beacon crosslink signal. ( #4169 )
...
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Fix comments.
* Fix comments.
Co-authored-by: Konstantin <k.potapov@softpro.com>
3 years ago
PeekPI
8b1d7a526a
[consensus] HIP-18: Allowlist for external leaders ( #4146 )
...
* HIP18: support allowlist
* sort allowlist by default order
* fix and add unit test
* simplified calculation of index of leader
* restore code of NthNextHmy()
* rename MaxLimit to MaxLimitPerShard and add comments
* init allowlist of testnet
* update allowlist
* change HIP18 epoch to TBD
* set HIP18 of testnet to 75840
* rename _BLS() to BLS()
* update comment
* add version of allowlist variable
* recover the travis_rpc_checker script
* update HIP18 epoch
3 years ago
Gheis
8bd76f14e1
add new config to set local accounts from harmony config ( #4177 )
...
* add new config to set local accounts from harmony config
* removed extra if for checking flag change and fix format
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
Konstantin
97eb8d972f
Go vet fixed.
3 years ago
Max
649ea56b9a
feat: Add AccountSlots flag for TxPool ( #4071 )
3 years ago
Lutty
93ae61d6b5
opti
3 years ago
Lutty
622c0c6a44
add prune beacon chain feature
3 years ago
Lutty
55f8c769a0
opti
3 years ago
Lutty
3634c43812
add prune beacon chain feature
3 years ago
Leo Chen
739cfa61b2
[log] set adding tx to debug level
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Rongjian Lan
2dcb6c8680
reject old viewid ( #3995 )
3 years ago
Rongjian Lan
3657a1d612
reject old viewid ( #3992 )
3 years ago
Rongjian Lan
d1f3974b34
enable 30 gwei in testnet
3 years ago
Rongjian Lan
92d611c4c5
enable 30 gwei in testnet
3 years ago
Rongjian Lan
9b8d00900f
not update gas price for non-mainnet
3 years ago
Rongjian Lan
4c9546a4d5
Do not process txns if node out of sync ( #3958 )
...
* Do not process txns if node out of sync
* fix rpc test
3 years ago
peekpi
404b861f81
[tracer][explorer] use event to send trace data to explorer
3 years ago
peekpi
054ba5d712
[explorer][tracer] store trace result into explorer db
3 years ago
peekpi
698e363f0a
[tracer][core] call tracer module when insert blocks
3 years ago
Rongjian Lan
404394a48d
a few spam protections ( #3769 )
...
* various spam protections
* remove temporary block txn limit
* remove dup code
* update _gasPrice rpc to have 10gwei
3 years ago
Peter Chung
74dfd53e0a
[node,cmd] fix test syntax error
3 years ago
Peter Chung
1877d8e610
try to make goimports happy
3 years ago
Peter Chung
9fe7a51efa
[rpc] add hmyv2_getConfig rpc
3 years ago
Jacky Wang
f023824bdc
[p2p] lower the debug level when handling spamming message ( #3770 )
4 years ago
Rongjian Lan
9678b7462e
stop invalid beacon block broadcast in shard 0 ( #3768 )
4 years ago
Jacky Wang
bd78e06cc2
P2p filterbeaconmsg ( #3757 )
...
* [p2p] ban beacon node sync message where block height is smaller than current height
* small param change
* small wording fix
* elaborate log message
* fix spelling
4 years ago
Jacky Wang
5be1c10bda
[cmd] more fixes
4 years ago
Jacky Wang
d7f31c5721
[cmd] changed code of dns-port
4 years ago
Leo Chen
ee1644ce06
[sync] fix nil pointer when querying /node-sync
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago