niklr
def0d0028c
Fix pprof service tests
3 years ago
niklr
ef140c0b93
Implement pprof module extension
3 years ago
Jacky Wang
a5e62bc7b2
[rpc] add limitation on GetBlocks and GetLogs. Also some other small changes ( #3830 )
3 years ago
Rongjian Lan
1ce6fe1355
Add logs for elapsed time for block processing; Add bls agg sig benchmark test code. ( #3824 )
...
* Add timing log and agg sig tests
* fix build
* add more logs
3 years ago
Rongjian Lan
8c8675b25e
Add vrf and proof in header and block rpc ( #3820 )
...
* Add vrf and proof in header and block rpc
* Add vrf and proof to rpc v2 and eth rpc
3 years ago
MathxH Chen
b21faa4227
[metrics] Add metrics for RPCs ( #3815 )
3 years ago
Jacky Wang
768a570363
Fix circulating supply ( #3802 )
...
* [rpc] updated rpc to GetCirculationSupply to sub token burnt
* [explorer] add a small fix
* [rpc] fix at getInaccessible tokens
* [rpc] added fix at header.Root
3 years ago
MathxH Chen
da21bd11ec
[p2p] Reduce memory and CPU usage of libp2p ( #3808 ) ( #3812 )
3 years ago
LuttyYang
d79dd7d971
fix issue 3683 ( #3816 )
3 years ago
Jacky Wang
7b0f6ac8d5
[core] fix cache introduced by getHashByNumber ( #3814 )
3 years ago
Jacky Wang
ab5be8f413
[core] Increase caching at HeaderChain ( #3813 )
...
* [core] add a cache to getHeaderByNumber
* [core] adjusted cache params
* [core] added a comment
* [core] fix typo after refactor
3 years ago
Lutty
14ddbd9574
remove IsBackup to GetNodeMetadata API
3 years ago
Lutty
faacc7c091
rebase code
3 years ago
MathxH Chen
1c363c73f4
[DO NOT MERGE] [p2p] Reduce memory and CPU usage of libp2p ( #3808 )
...
* Reduce queryPeer calls frequency
* Fix option_test
3 years ago
peekpi
2a930b28a8
[tracer] optimize CPU usage of trace_block RPC
...
* use single Goroutines to deal trace task
* drop trace task if request is canceld.
3 years ago
MathxH Chen
b8cd520927
[p2p] Try to fix P2P memory issue ( #3795 )
...
* [p2p] Fix context leak in resolveMultiAddr
* [p2p] upgrade go-libp2p-kad-dht to v0.12.1
* [p2p] Upgrade entire libp2p stack
3 years ago
Peter Chung
96d525a36f
[cmd] default Log.VerbosePrints.Config to true
...
fixes #3781
3 years ago
LuttyYang
073a7bcc61
Add public debug api ( #3792 )
...
* add public debug api
* add curl example
* clean code
3 years ago
Rongjian Lan
004a5867e8
launch vrf and 3 governance proposal at epoch 631
3 years ago
Jacky Wang
4bcf251c75
[explorer] set in sync to false when explorer service unavailable ( #3794 )
3 years ago
Jacky Wang
63ffc86bea
Explorer db schema ( #3790 )
...
* [explorer] added a lot of code
* [explorer] added a lot of code
* [explorer] more adding
* [explorer] clean up and more code added
* [explorer] fixes according to test results
* [explorer] changed leveldb params, batch size, and a dirty data fix
* [explorer] fix on dirty data, fix on HasPendingTasks, and increase worker number
* [explorer] fix for contract creation
* [explorer] fixed local travis test
3 years ago
Alex Chen
5f5065f3ea
Improve GetBlockByNumber by latest param
...
Remove ugly branch
3 years ago
Leo Chen
07807c8f2d
[sync] add a tolerance number for node-sync checking
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
MathxH Chen
b88b86fc15
[metrics] Add crosslink messages to metrics ( #3762 )
...
* Replace magic numbers with constants
* Add crosslink message to metrics
4 years ago
Leo Chen
c0414bd105
[go.mod] fixed by go mod tidy
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Jacky Wang
ff3b398158
Explorer db commit performance optimization ( #3775 )
...
* [explorer] added caching fix at flushing db.
* [explorer] fixed all rpc points
* [explorer] small change to refactor storage.Start
* [explorer] fix go test
* [explorer] further increase the batch size
* [explorer] release lock during db writing data
* [explorer] change to rlock/runlock at flushLocked
* [explorer] also add flush time mechanism to trigger flushing
* [explorer] when checking checkpoint, first check memory, then check db
4 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
Leo Chen
53dcdac4d5
Merge pull request #3708 from renlulu/feat/rosettacall
...
[Rosetta]Implement the /call endpoint
4 years ago
peekpi
d1436cc602
[tracer] fix bug of trace suicide opcode
4 years ago
Soph N
5fe2a6f564
[docker][rosetta] fix docker image build error
4 years ago
Leo Chen
0976cc9859
Merge pull request #3734 from touhonoob/bounty-41
...
[feature] expose all configuration variables and values
4 years ago
Peter Chung
eaf70027e8
try to make goimports happy
4 years ago
Peter Chung
84bb6f405d
revert unnecessary upgrade of go-toml
4 years ago
Peter Chung
d8336d677e
removing redundant binary
4 years ago
Peter Chung
fe4361fbf1
[cmd] add config migration 2.1.0
...
- add harmonyconfig.FlagSliceToLogVerbosePrints
- rename --verbose-prints to --log.verbose-prints
- add detailed usage
4 years ago
Peter Chung
1ed07e93d1
[cmd] fix config persist
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
Peter Chung
de603b3b94
[cmd] add --verbose-prints=config flag
4 years ago
Jacky Wang
ba08520b28
[sync] changed param to support low network bandwidth against large block ( #3766 )
...
* [sync] changed param to support low network bandwidth against large block
* [sync] increase the retry limit per process loop
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
Leo Chen
a33bf913f0
[fix] remove double sign checking ( #3763 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6703b7fb34
[vc] print out size of m1 message ( #3761 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
556e62da13
add limit on block size ( #3760 )
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
Rongjian Lan
6ef6580ac0
only broad crosslink if a new block is added to beacon chain ( #3756 )
4 years ago
Rongjian Lan
d9489bdb6e
remove unnecessary db writing for pending crosslinks ( #3751 )
...
* remove unnecessary db writing for crosslinks
* Fix comment and add log
* change comment
4 years ago
Leo Chen
3e851a8cca
[p2p] increase the max size of node message
...
During the p2p message validation, the node will drop the node message if
the size is bigger than the MaxPoolTransactionDataSize.
The initial value was just a heuristic value set during the open staking testnet.
However, the valid node message becomes
bigger now due to the higher tx count in the mainnet. So we need to lift the
upper bound. We have observed the oversized node message from metrics.
Ex,
use `curl http://localhost:9900/metrics | grep ^hmy_p2p` to check the metrics
hmy_p2p_node_msg{type="invalid_oversized"} 3484
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago