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
4 years ago
Peter Chung
74dfd53e0a
[node,cmd] fix test syntax error
4 years ago
Peter Chung
1877d8e610
try to make goimports happy
4 years ago
Peter Chung
9fe7a51efa
[rpc] add hmyv2_getConfig rpc
4 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
Jacky Wang
1770f1a30b
[misc] shut down blockchain at last
4 years ago
Jacky Wang
2d70b2adab
[engine] added additional cache epochCtxCache for engineImpl, also removed shardID in engineImpl (since it's redundant with chainReader.ShardID())
4 years ago
Jacky Wang
b91db85c23
[sync] add commit signature in peer registeration and new block push
4 years ago
Jacky Wang
cd50682097
[engine][stream] updated engine VerifyHeaderWithSignature and fix downloader test
4 years ago
Jacky Wang
b2fe9fe348
[stream] node.IsRunningBeaconChain is refactored to a new method
4 years ago
Jacky Wang
c05e150aa7
[stream] rename dns syncing package to legacysync
4 years ago
Leo Chen
fe2f907adc
[node] increase node message context to 30 seconds
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Jacky Wang
f00c90e3e6
Graceful shutdown - All registered services are shutdown gracefully. ( #3533 )
...
1. Refactored service manager with cleaner interface.
2. Add prometheus to the service manager.
3. Graceful shutdown of the services (including consensus).
4. Some code refactor regarding consensus graceful shutdown.
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
4 years ago
Leo Chen
c1fbc64cef
[log] add additional logs in consensus
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago